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

Commit

Permalink
Handle hardware acceleration switch when reseting dev options (#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Dec 2, 2019
1 parent f7e2e23 commit cebe56f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
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 cebe56f

Please sign in to comment.