Reduced thread keyboard scroll distance

pull/200/head
M66B 4 years ago
parent fb7f68d34d
commit 4bade08af8

@ -6196,8 +6196,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
} }
private boolean onScroll(Context context, boolean up) { private boolean onScroll(Context context, boolean up) {
rvMessage.scrollBy(0, (up ? -1 : 1) * int h = context.getResources().getDisplayMetrics().heightPixels;
context.getResources().getDisplayMetrics().heightPixels / 2); h = h / (viewType == AdapterMessage.ViewType.THREAD ? 8 : 2);
rvMessage.scrollBy(0, (up ? -1 : 1) * h);
return true; return true;
} }
}; };

Loading…
Cancel
Save