mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-27 11:16:51 +02:00
Disable viewport height
This commit is contained in:
@@ -168,14 +168,8 @@ public class ApplicationEx extends Application
|
||||
ex.getMessage() != null &&
|
||||
ex.getMessage().contains("Unable to create layer for WebView")) {
|
||||
int viewport_height = prefs.getInt("viewport_height", WebViewEx.DEFAULT_VIEWPORT_HEIGHT);
|
||||
if (viewport_height > WebViewEx.DEFAULT_VIEWPORT_HEIGHT) {
|
||||
if (viewport_height > WebViewEx.DEFAULT_VIEWPORT_HEIGHT)
|
||||
prefs.edit().putInt("viewport_height", WebViewEx.DEFAULT_VIEWPORT_HEIGHT).apply();
|
||||
|
||||
Log.setCrashReporting(true);
|
||||
Log.e(ex);
|
||||
System.exit(1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!crash_reports && Log.isOwnFault(ex)) {
|
||||
|
||||
@@ -1053,7 +1053,7 @@ public class Log {
|
||||
if (ex.getMessage() != null &&
|
||||
(ex.getMessage().startsWith("Bad notification posted") ||
|
||||
ex.getMessage().contains("ActivityRecord not found") ||
|
||||
ex.getMessage().startsWith("Unable to create layer") ||
|
||||
//ex.getMessage().startsWith("Unable to create layer") ||
|
||||
ex.getMessage().startsWith("Illegal meta data value") ||
|
||||
ex.getMessage().startsWith("Context.startForegroundService") ||
|
||||
ex.getMessage().startsWith("PARAGRAPH span must start at paragraph boundary")))
|
||||
|
||||
@@ -481,7 +481,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
||||
}
|
||||
|
||||
static int getDefaultViewportHeight(Context context) {
|
||||
if (!Helper.isPlayStoreInstall())
|
||||
if (true)
|
||||
return 0;
|
||||
|
||||
if (Helper.isGoogle() && Build.VERSION.SDK_INT > Build.VERSION_CODES.UPSIDE_DOWN_CAKE /* Android 14 */)
|
||||
|
||||
Reference in New Issue
Block a user