Disable viewport height

This commit is contained in:
M66B
2025-01-17 07:27:37 +01:00
parent 06c5f2c714
commit 29851256ee
3 changed files with 3 additions and 9 deletions

View File

@@ -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)) {

View File

@@ -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")))

View File

@@ -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 */)