aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorPatrick Demers <patrickdemers6@gmail.com>2022-07-17 14:48:42 +0000
committerGitHub <noreply@github.com>2022-07-17 14:48:42 +0000
commit5c0addbc9138de4a42af8dbf73a58aff14175373 (patch)
treecca41cb22ff031e812f8ae9e5ca13c8225ad457b /app/src
parent12f404246bf95e69b7baab49f1798e725d07eead (diff)
downloadinfinity-for-reddit-5c0addbc9138de4a42af8dbf73a58aff14175373.tar
infinity-for-reddit-5c0addbc9138de4a42af8dbf73a58aff14175373.tar.gz
infinity-for-reddit-5c0addbc9138de4a42af8dbf73a58aff14175373.tar.bz2
infinity-for-reddit-5c0addbc9138de4a42af8dbf73a58aff14175373.tar.lz
infinity-for-reddit-5c0addbc9138de4a42af8dbf73a58aff14175373.tar.xz
infinity-for-reddit-5c0addbc9138de4a42af8dbf73a58aff14175373.tar.zst
infinity-for-reddit-5c0addbc9138de4a42af8dbf73a58aff14175373.zip
Fix scroll using volume on multireddit (#834)
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java
index 9be74816..9dad1ebc 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java
@@ -9,6 +9,7 @@ import android.os.Handler;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Gravity;
+import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
@@ -142,6 +143,13 @@ public class ViewMultiRedditDetailActivity extends BaseActivity implements SortT
private NavigationWrapper navigationWrapper;
@Override
+ public boolean onKeyDown(int keyCode, KeyEvent event) {
+ if (mFragment instanceof PostFragment)
+ return ((PostFragment) mFragment).handleKeyDown(keyCode);
+ return super.onKeyDown(keyCode, event);
+ }
+
+ @Override
protected void onCreate(Bundle savedInstanceState) {
((Infinity) getApplication()).getAppComponent().inject(this);
super.onCreate(savedInstanceState);