diff options
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java | 8 |
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); |