Added keypad scrolling

pull/183/head
M66B 5 years ago
parent 9b2b044337
commit b608fad90d

@ -4891,6 +4891,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
break;
case KeyEvent.KEYCODE_R:
return (up && onReply(context));
case KeyEvent.KEYCODE_PAGE_UP:
case KeyEvent.KEYCODE_DPAD_UP:
if (up)
rvMessage.scrollBy(0, -context.getResources().getDisplayMetrics().heightPixels / 2);
return up;
case KeyEvent.KEYCODE_PAGE_DOWN:
case KeyEvent.KEYCODE_DPAD_DOWN:
if (up)
rvMessage.scrollBy(0, context.getResources().getDisplayMetrics().heightPixels / 2);
return up;
}
if (!up)

Loading…
Cancel
Save