Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit cebe56f

Browse files
MortimerGorobluemarvin
authored andcommitted
Handle hardware acceleration switch when reseting dev options (#2398)
1 parent f7e2e23 commit cebe56f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/DeveloperOptionsView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ private void initialize(Context aContext) {
131131
restart = true;
132132
}
133133

134+
if (mBinding.hardwareAccelerationSwitch.isChecked() != SettingsStore.UI_HARDWARE_ACCELERATION_DEFAULT) {
135+
setUIHardwareAcceleration(SettingsStore.UI_HARDWARE_ACCELERATION_DEFAULT, true);
136+
restart = true;
137+
}
138+
134139
if (restart) {
135140
showRestartDialog();
136141
}

0 commit comments

Comments
 (0)