From a815dd0c0c6e8ce7fc8c82be6e59eb4f58a517d5 Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Fri, 29 Nov 2019 17:30:41 +0100 Subject: [PATCH] Handle hardware acceleration switch when reseting dev options --- .../vrbrowser/ui/widgets/settings/DeveloperOptionsView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/DeveloperOptionsView.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/DeveloperOptionsView.java index 9325ba31d..a8bc41403 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/DeveloperOptionsView.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/DeveloperOptionsView.java @@ -131,6 +131,11 @@ private void initialize(Context aContext) { restart = true; } + if (mBinding.hardwareAccelerationSwitch.isChecked() != SettingsStore.UI_HARDWARE_ACCELERATION_DEFAULT) { + setUIHardwareAcceleration(SettingsStore.UI_HARDWARE_ACCELERATION_DEFAULT, true); + restart = true; + } + if (restart) { showRestartDialog(); }