mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 10:47:28 +00:00
Android is odd
This commit is contained in:
parent
0c8206ddc9
commit
c5622c8a86
1 changed files with 8 additions and 0 deletions
|
@ -331,10 +331,18 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isZoomedY() {
|
public boolean isZoomedY() {
|
||||||
|
/*
|
||||||
DisplayMetrics dm = getResources().getDisplayMetrics();
|
DisplayMetrics dm = getResources().getDisplayMetrics();
|
||||||
int ch = Math.round(getContentHeight() * dm.density);
|
int ch = Math.round(getContentHeight() * dm.density);
|
||||||
int dp6 = Math.round(6 * dm.density);
|
int dp6 = Math.round(6 * dm.density);
|
||||||
return (ch - dp6 > getHeight());
|
return (ch - dp6 > getHeight());
|
||||||
|
*/
|
||||||
|
int ytend = computeVerticalScrollExtent();
|
||||||
|
if (ytend == 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
float yscale = computeVerticalScrollRange() / (float) ytend;
|
||||||
|
return (yscale > 1.01);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isFeatureSupported(String feature) {
|
public static boolean isFeatureSupported(String feature) {
|
||||||
|
|
Loading…
Reference in a new issue