diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-05-22 15:19:51 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-05-22 15:19:51 +0000 |
commit | e4f25cc8281f1033c2aad49f44c5ad7062d666d2 (patch) | |
tree | 2e2bcfe02037ba4c8d47b17d98d99ccebbe1be9c /app/src/main/java/ml/docilealligator/infinityforreddit | |
parent | 7cac39e14e6d31a7a16a9e9c81d5397469f42b5c (diff) | |
download | infinity-for-reddit-e4f25cc8281f1033c2aad49f44c5ad7062d666d2.tar infinity-for-reddit-e4f25cc8281f1033c2aad49f44c5ad7062d666d2.tar.gz infinity-for-reddit-e4f25cc8281f1033c2aad49f44c5ad7062d666d2.tar.bz2 infinity-for-reddit-e4f25cc8281f1033c2aad49f44c5ad7062d666d2.tar.lz infinity-for-reddit-e4f25cc8281f1033c2aad49f44c5ad7062d666d2.tar.xz infinity-for-reddit-e4f25cc8281f1033c2aad49f44c5ad7062d666d2.tar.zst infinity-for-reddit-e4f25cc8281f1033c2aad49f44c5ad7062d666d2.zip |
Version 4.3.1. Restore changes in ViewVideoActivity to fix a bug that video continues playing in the background after exiting. Rename Swipe Vertically to Go Back From Media to Swipe Vertically to Go Back From Image and Gif.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java index 7e44ba9f..61a12366 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java @@ -204,15 +204,11 @@ public class ViewVideoActivity extends AppCompatActivity { } } - if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SWIPE_VERTICALLY_TO_GO_BACK_FROM_MEDIA, true)) { - haulerView.setOnDragDismissedListener(dragDirection -> { - int slide = dragDirection == DragDirection.UP ? R.anim.slide_out_up : R.anim.slide_out_down; - finish(); - overridePendingTransition(0, slide); - }); - } else { - haulerView.setDragEnabled(false); - } + haulerView.setOnDragDismissedListener(dragDirection -> { + int slide = dragDirection == DragDirection.UP ? R.anim.slide_out_up : R.anim.slide_out_down; + finish(); + overridePendingTransition(0, slide); + }); Intent intent = getIntent(); postTitle = intent.getStringExtra(EXTRA_POST_TITLE); |