diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-06-02 14:05:28 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-06-02 14:05:28 +0000 |
commit | d278bd873debaf4bdaf9f5183b013286383d3e71 (patch) | |
tree | 9699d7b4c74a675d712b24e089b7aa887e36a964 | |
parent | f9858ccaa9c829e75fe9751aa7809341e1054936 (diff) | |
download | infinity-for-reddit-d278bd873debaf4bdaf9f5183b013286383d3e71.tar infinity-for-reddit-d278bd873debaf4bdaf9f5183b013286383d3e71.tar.gz infinity-for-reddit-d278bd873debaf4bdaf9f5183b013286383d3e71.tar.bz2 infinity-for-reddit-d278bd873debaf4bdaf9f5183b013286383d3e71.tar.lz infinity-for-reddit-d278bd873debaf4bdaf9f5183b013286383d3e71.tar.xz infinity-for-reddit-d278bd873debaf4bdaf9f5183b013286383d3e71.tar.zst infinity-for-reddit-d278bd873debaf4bdaf9f5183b013286383d3e71.zip |
Version 7.2.4-beta1.
4 files changed, 8 insertions, 8 deletions
diff --git a/app/build.gradle b/app/build.gradle index d4b80faf..0ec708f1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "ml.docilealligator.infinityforreddit" minSdk 21 targetSdk 33 - versionCode 169 - versionName "7.2.3" + versionCode 170 + versionName "7.2.4-beta1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java index 895d0b77..88668712 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java @@ -418,7 +418,7 @@ public class ViewImageOrGifActivity extends AppCompatActivity implements SetAsWa public boolean onResourceReady(GifDrawable resource, Object model, Target<GifDrawable> target, DataSource dataSource, boolean isFirstResource) { if (getExternalCacheDir() != null) { SaveGIFToFile.saveGifToFile(mExecutor, handler, resource, getExternalCacheDir().getPath(), mImageFileName, - new SaveGIFToFile.SaveGIFToFileAsyncTaskListener() { + new SaveGIFToFile.SaveGIFToFileListener() { @Override public void saveSuccess(File imageFile) { Uri uri = FileProvider.getUriForFile(ViewImageOrGifActivity.this, diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/SaveGIFToFile.java b/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/SaveGIFToFile.java index e4b61364..a1fb16e5 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/SaveGIFToFile.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/SaveGIFToFile.java @@ -15,7 +15,7 @@ public class SaveGIFToFile { public static void saveGifToFile(Executor executor, Handler handler, GifDrawable resource, String cacheDirPath, String fileName, - SaveGIFToFileAsyncTaskListener saveImageToFileAsyncTaskListener) { + SaveGIFToFileListener saveImageToFileListener) { executor.execute(() -> { try { File imageFile = new File(cacheDirPath, fileName); @@ -26,14 +26,14 @@ public class SaveGIFToFile { outputStream.write(bytes, 0, bytes.length); outputStream.close(); - handler.post(() -> saveImageToFileAsyncTaskListener.saveSuccess(imageFile)); + handler.post(() -> saveImageToFileListener.saveSuccess(imageFile)); } catch (IOException e) { - handler.post(saveImageToFileAsyncTaskListener::saveFailed); + handler.post(saveImageToFileListener::saveFailed); } }); } - public interface SaveGIFToFileAsyncTaskListener { + public interface SaveGIFToFileListener { void saveSuccess(File imageFile); void saveFailed(); } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java index 9e3f72d1..cb60df38 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java @@ -437,7 +437,7 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment { public boolean onResourceReady(GifDrawable resource, Object model, Target<GifDrawable> target, DataSource dataSource, boolean isFirstResource) { if (activity.getExternalCacheDir() != null) { SaveGIFToFile.saveGifToFile(mExecutor, new Handler(), resource, activity.getExternalCacheDir().getPath(), media.fileName, - new SaveGIFToFile.SaveGIFToFileAsyncTaskListener() { + new SaveGIFToFile.SaveGIFToFileListener() { @Override public void saveSuccess(File imageFile) { Uri uri = FileProvider.getUriForFile(activity, |