Skip to content

Commit

Permalink
Update V1.40
Browse files Browse the repository at this point in the history
Use image/jpeg as default mime type for images
  • Loading branch information
woheller69 committed Jan 5, 2024
1 parent 55b3aa2 commit fb865c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "org.woheller69.gptassist"
minSdk 21
targetSdk 33
versionCode 130
versionName "1.30"
versionCode 140
versionName "1.40"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMen
request.addRequestHeader("Accept-Language", "en-US,en;q=0.7,he;q=0.3");
request.addRequestHeader("Referer", url);
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED); //Notify client once download is completed!
String filename = URLUtil.guessFileName(url, null, null);
String filename = URLUtil.guessFileName(url, null, "image/jpeg");
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);
Toast.makeText(this,getString(R.string.download)+"\n"+filename, Toast.LENGTH_SHORT).show();
DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/140.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use image/jpeg as default mime type for images

0 comments on commit fb865c5

Please sign in to comment.