Skip to content

Commit

Permalink
Handle hardware acceleration switch when reseting dev options (Mozill…
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and Alexandre Lissy committed Jan 21, 2020
1 parent e87cd52 commit ebec3a6
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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();
}
Expand Down

0 comments on commit ebec3a6

Please sign in to comment.