mirror of https://github.com/M66B/FairEmail.git
Up/down for WebView too
This commit is contained in:
parent
9d5acdd823
commit
400f6d1a79
|
@ -2184,6 +2184,15 @@ public class FragmentMessages extends FragmentBase
|
|||
else
|
||||
llm.scrollToPositionWithOffset(pos, -child.getPaddingTop());
|
||||
|
||||
View wvBody = child.findViewById(R.id.wvBody);
|
||||
if (wvBody instanceof WebView) {
|
||||
if (bottom) {
|
||||
int ch = ((WebView) wvBody).getContentHeight();
|
||||
wvBody.scrollTo(0, Helper.dp2pixels(wvBody.getContext(), ch));
|
||||
} else
|
||||
wvBody.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue