Fix cannot go back from ViewMultiRedditDetailActivity.

This commit is contained in:
Docile-Alligator 2022-07-17 22:57:34 +08:00
parent 5c0addbc91
commit ce04d2bd77

View File

@ -145,7 +145,7 @@ public class ViewMultiRedditDetailActivity extends BaseActivity implements SortT
@Override @Override
public boolean onKeyDown(int keyCode, KeyEvent event) { public boolean onKeyDown(int keyCode, KeyEvent event) {
if (mFragment instanceof PostFragment) if (mFragment instanceof PostFragment)
return ((PostFragment) mFragment).handleKeyDown(keyCode); return ((PostFragment) mFragment).handleKeyDown(keyCode) || super.onKeyDown(keyCode, event);
return super.onKeyDown(keyCode, event); return super.onKeyDown(keyCode, event);
} }