parent
c9cc8e23c1
commit
9bd4433942
|
@ -588,10 +588,10 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
||||||
scrollView.post(() -> {
|
scrollView.post(() -> {
|
||||||
int bottom = scrollView.getChildAt(0).getBottom();
|
int bottom = scrollView.getChildAt(0).getBottom();
|
||||||
int delta = bottom - (scrollView.getScrollY() + scrollView.getHeight());
|
int delta = bottom - (scrollView.getScrollY() + scrollView.getHeight());
|
||||||
int space = GlobalUserPreferences.reduceMotion ? 0 : Math.min(V.dp(120), delta);
|
int space = GlobalUserPreferences.reduceMotion ? 0 : Math.min(V.dp(70), delta);
|
||||||
scrollView.scrollBy(0, delta - space);
|
scrollView.scrollBy(0, delta - space);
|
||||||
if (!GlobalUserPreferences.reduceMotion) {
|
if (!GlobalUserPreferences.reduceMotion) {
|
||||||
scrollView.postDelayed(() -> scrollView.smoothScrollBy(0, space), 100);
|
scrollView.postDelayed(() -> scrollView.smoothScrollBy(0, space), 130);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue