diff options
author | Winson Chung <winsonc@google.com> | 2011-07-25 11:53:08 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-08-17 10:48:01 -0700 |
commit | 5afbf7bdd6f6879124c9b8283e005fe57f310d02 (patch) | |
tree | 1c3052f33fc3a569a59a49e8d5955ba5ad61ccaf /src/com/android/launcher2/Launcher.java | |
parent | c273c5814d7b312628107ad4a7bff9cc64e89eae (diff) | |
download | packages_apps_trebuchet-5afbf7bdd6f6879124c9b8283e005fe57f310d02.zip packages_apps_trebuchet-5afbf7bdd6f6879124c9b8283e005fe57f310d02.tar.gz packages_apps_trebuchet-5afbf7bdd6f6879124c9b8283e005fe57f310d02.tar.bz2 |
Saving/restoring current page in AppsCustomize. (5050168)
Change-Id: Ib868033a2b71383abc4569082675f391d3e4cc76
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 7ab41bc..216ce40 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -672,8 +672,8 @@ public final class Launcher extends Activity mAppsCustomizeTabHost.setCurrentTabByTag(curTab); } - // 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); } } @@ -1132,6 +1132,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); } } |