Skip to content

Commit

Permalink
Fix crashed on boot in A12
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSluffy authored and nulldrf committed Aug 24, 2024
1 parent 094fcbe commit 636d177
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions quickstep/src/com/android/quickstep/TouchInteractionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,17 @@ private void resetHomeBounceSeenOnQuickstepEnabledFirstTime() {
return;
}

// Reset home bounce seen on quick step enabled for first time
SharedPreferences sharedPrefs = LauncherPrefs.getPrefs(this);
if (!sharedPrefs.getBoolean(HAS_ENABLED_QUICKSTEP_ONCE, true)) {
sharedPrefs.edit()
.putBoolean(HAS_ENABLED_QUICKSTEP_ONCE, true)
.putBoolean(OnboardingPrefs.HOME_BOUNCE_SEEN, false)
.apply();
try {
// Reset home bounce seen on quick step enabled for first time
SharedPreferences sharedPrefs = LauncherPrefs.getPrefs(this);
if (!sharedPrefs.getBoolean(HAS_ENABLED_QUICKSTEP_ONCE, true)) {
sharedPrefs.edit()
.putBoolean(HAS_ENABLED_QUICKSTEP_ONCE, true)
.putBoolean(OnboardingPrefs.HOME_BOUNCE_SEEN, false)
.apply();
}
} catch (Throwable t) {
// Ignore
}
}

Expand Down

0 comments on commit 636d177

Please sign in to comment.