diff options
author | Michael Kolb <kolby@google.com> | 2011-05-11 09:30:34 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-05-12 15:20:51 -0700 |
commit | c831b63308dd1f8ef71808db8344ca2566ba4ed4 (patch) | |
tree | 00d447b01b488a1975db08aee05dc594ff419d00 /src/com/android/browser/NavScreen.java | |
parent | 386a098b7cbd6ad1d6f02e0a6668ffa50dd653c1 (diff) | |
download | packages_apps_Browser-c831b63308dd1f8ef71808db8344ca2566ba4ed4.zip packages_apps_Browser-c831b63308dd1f8ef71808db8344ca2566ba4ed4.tar.gz packages_apps_Browser-c831b63308dd1f8ef71808db8344ca2566ba4ed4.tar.bz2 |
introduce tab IDs
Tabs are identified by IDs now, instead of their position
Refactored the save/restore code
Change-Id: I7133d55831201d097dc19ec938a85e7085f36749
Diffstat (limited to 'src/com/android/browser/NavScreen.java')
-rw-r--r-- | src/com/android/browser/NavScreen.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/browser/NavScreen.java b/src/com/android/browser/NavScreen.java index 9f2d4ae..a5090fa 100644 --- a/src/com/android/browser/NavScreen.java +++ b/src/com/android/browser/NavScreen.java @@ -206,7 +206,7 @@ public class NavScreen extends LinearLayout implements OnClickListener { : R.drawable.ic_forward_disabled_holo_dark); } if (updateFlipper) { - mFlipper.setSelection(mUiController.getTabControl().getTabIndex(tab)); + mFlipper.setSelection(mUiController.getTabControl().getTabPosition(tab)); } } @@ -249,7 +249,7 @@ public class NavScreen extends LinearLayout implements OnClickListener { if (tab != null) { // set tab as the selected in flipper, then hide - final int tix = mUi.mTabControl.getTabIndex(tab); + final int tix = mUi.mTabControl.getTabPosition(tab); post(new Runnable() { public void run() { if (tix != -1) { |