mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 03:07:26 +01:00
Fix scroll using volume on multireddit (#834)
This commit is contained in:
parent
12f404246b
commit
5c0addbc91
@ -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;
|
||||
@ -141,6 +142,13 @@ public class ViewMultiRedditDetailActivity extends BaseActivity implements SortT
|
||||
private Call<String> subredditAutocompleteCall;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user