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.

This commit is contained in:
Alex Ning 2021-05-22 23:19:51 +08:00
parent 7cac39e14e
commit e4f25cc828
3 changed files with 8 additions and 12 deletions

View File

@ -6,8 +6,8 @@ android {
applicationId "ml.docilealligator.infinityforreddit" applicationId "ml.docilealligator.infinityforreddit"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 30 targetSdkVersion 30
versionCode 66 versionCode 67
versionName "4.3.0" versionName "4.3.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions { javaCompileOptions {
annotationProcessorOptions { annotationProcessorOptions {

View File

@ -204,15 +204,11 @@ public class ViewVideoActivity extends AppCompatActivity {
} }
} }
if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SWIPE_VERTICALLY_TO_GO_BACK_FROM_MEDIA, true)) { haulerView.setOnDragDismissedListener(dragDirection -> {
haulerView.setOnDragDismissedListener(dragDirection -> { int slide = dragDirection == DragDirection.UP ? R.anim.slide_out_up : R.anim.slide_out_down;
int slide = dragDirection == DragDirection.UP ? R.anim.slide_out_up : R.anim.slide_out_down; finish();
finish(); overridePendingTransition(0, slide);
overridePendingTransition(0, slide); });
});
} else {
haulerView.setDragEnabled(false);
}
Intent intent = getIntent(); Intent intent = getIntent();
postTitle = intent.getStringExtra(EXTRA_POST_TITLE); postTitle = intent.getStringExtra(EXTRA_POST_TITLE);

View File

@ -398,7 +398,7 @@
<string name="settings_swap_tap_and_long_title">Swap Tap and Long Press in Comments</string> <string name="settings_swap_tap_and_long_title">Swap Tap and Long Press in Comments</string>
<string name="settings_swipe_to_go_back_title">Swipe Right to Go Back</string> <string name="settings_swipe_to_go_back_title">Swipe Right to Go Back</string>
<string name="settings_swipe_to_go_back_summary">Does Not Apply to All Pages</string> <string name="settings_swipe_to_go_back_summary">Does Not Apply to All Pages</string>
<string name="settings_swipe_vertically_to_go_back_from_media_title">Swipe Vertically to Go Back From Media</string> <string name="settings_swipe_vertically_to_go_back_from_media_title">Swipe Vertically to Go Back From Image and Gif</string>
<string name="settings_lock_jump_to_next_top_level_comment_button_title">Lock Jump to Next Top-level Comment Button</string> <string name="settings_lock_jump_to_next_top_level_comment_button_title">Lock Jump to Next Top-level Comment Button</string>
<string name="settings_lock_bottom_app_bar_title">Lock Bottom Navigation Bar</string> <string name="settings_lock_bottom_app_bar_title">Lock Bottom Navigation Bar</string>
<string name="settings_swipe_up_to_hide_jump_to_next_top_level_comment_button_title">Swipe Up to Hide Jump to Next Top-level Comment Button</string> <string name="settings_swipe_up_to_hide_jump_to_next_top_level_comment_button_title">Swipe Up to Hide Jump to Next Top-level Comment Button</string>