diff options
author | Winson Chung <winsonc@google.com> | 2011-08-18 10:55:17 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-18 10:55:17 -0700 |
commit | ed718b18a9c9633be9543b59c0a81ca12c509550 (patch) | |
tree | bf07125078062744c647fbc9c2cc5f52b223ff7d /src/com/android/launcher2/Launcher.java | |
parent | b0fa3529edf7c4f6ce088d23d80461dcad43aa15 (diff) | |
parent | 5afbf7bdd6f6879124c9b8283e005fe57f310d02 (diff) | |
download | packages_apps_trebuchet-ed718b18a9c9633be9543b59c0a81ca12c509550.zip packages_apps_trebuchet-ed718b18a9c9633be9543b59c0a81ca12c509550.tar.gz packages_apps_trebuchet-ed718b18a9c9633be9543b59c0a81ca12c509550.tar.bz2 |
Merge "Saving/restoring current page in AppsCustomize. (5050168)"
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index dc0120b..a0601e0 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -673,8 +673,8 @@ public final class Launcher extends Activity mAppsCustomizeContent.getCurrentPage()); } - // Note: currently we do not restore the page for the AppsCustomize pane because the - // change in layout can drastically affect the saved page index + int currentIndex = savedState.getInt("apps_customize_currentIndex"); + mAppsCustomizeContent.restorePageForIndex(currentIndex); } } @@ -1145,6 +1145,8 @@ public final class Launcher extends Activity if (currentTabTag != null) { outState.putString("apps_customize_currentTab", currentTabTag); } + int currentIndex = mAppsCustomizeContent.getSaveInstanceStateIndex(); + outState.putInt("apps_customize_currentIndex", currentIndex); } } |