Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
Closes #42.
  • Loading branch information
Goooler committed Dec 22, 2023
1 parent edc256e commit bf10368
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/com/android/launcher3/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ private void restoreState(Bundle savedState) {
LauncherState[] stateValues = LauncherState.values();
LauncherState state = stateValues[stateOrdinal];

NonConfigInstance lastInstance = (NonConfigInstance) getLastNonConfigurationInstance();
NonConfigInstance lastInstance = (NonConfigInstance) getLastCustomNonConfigurationInstance();
boolean forceRestore = lastInstance != null
&& (lastInstance.config.diff(mOldConfig) & CONFIG_UI_MODE) != 0;
if (forceRestore || !state.shouldDisableRestore()) {
Expand Down Expand Up @@ -1608,6 +1608,14 @@ public void onDetachedFromWindow() {
closeContextMenu();
}

@Nullable
@Override
public Object onRetainCustomNonConfigurationInstance() {
NonConfigInstance instance = new NonConfigInstance();
instance.config = new Configuration(mOldConfig);
return instance;
}

public AllAppsTransitionController getAllAppsController() {
return mAllAppsController;
}
Expand Down

0 comments on commit bf10368

Please sign in to comment.