diff --git a/app/src/common/shared/com/igalia/wolvic/browser/SettingsStore.java b/app/src/common/shared/com/igalia/wolvic/browser/SettingsStore.java index 3bf43a72d8..8b7f524a51 100644 --- a/app/src/common/shared/com/igalia/wolvic/browser/SettingsStore.java +++ b/app/src/common/shared/com/igalia/wolvic/browser/SettingsStore.java @@ -161,7 +161,7 @@ public static WindowSizePreset fromValues(int width, int height) { public final static int POINTER_COLOR_DEFAULT_DEFAULT = Color.parseColor("#FFFFFF"); public final static String ENV_DEFAULT = "cyberpunk"; public final static int MSAA_DEFAULT_LEVEL = 1; - public final static boolean AUDIO_ENABLED = BuildConfig.FLAVOR_backend == "chromium"; + public final static boolean AUDIO_ENABLED = BuildConfig.FLAVOR_backend.equals("chromium"); public final static boolean LATIN_AUTO_COMPLETE_ENABLED = false; public final static boolean WINDOW_MOVEMENT_DEFAULT = false; public final static @TabsLocation int TABS_LOCATION_DEFAULT = TABS_LOCATION_TRAY; diff --git a/app/src/common/shared/com/igalia/wolvic/browser/engine/Session.java b/app/src/common/shared/com/igalia/wolvic/browser/engine/Session.java index b391501eec..29dbb13213 100644 --- a/app/src/common/shared/com/igalia/wolvic/browser/engine/Session.java +++ b/app/src/common/shared/com/igalia/wolvic/browser/engine/Session.java @@ -669,7 +669,7 @@ public CompletableFuture captureBackgroundBitmap(int displayWidth, int dis // FIXME: calling acquireDisplay() is not well supported in the Chromium backend because // that method incorrectly does some extra work handling widgets. Disable the bitmap // capture in the meantime (it was not working anyway yet). - if (mState.mSession == null || !mFirstContentfulPaint || BuildConfig.FLAVOR_backend == "chromium") { + if (mState.mSession == null || !mFirstContentfulPaint || BuildConfig.FLAVOR_backend.equals("chromium")) { return CompletableFuture.completedFuture(null); } Surface captureSurface = BitmapCache.getInstance(mContext).acquireCaptureSurface(displayWidth, displayHeight);