Prevent opening the keyboard from changing the tab.
diff --git a/src/com/android/browser/TitleBarSet.java b/src/com/android/browser/TitleBarSet.java
index 03e309d..ba8c300 100644
--- a/src/com/android/browser/TitleBarSet.java
+++ b/src/com/android/browser/TitleBarSet.java
@@ -154,9 +154,11 @@
*/
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
+ int selection = getSelectedItemPosition();
// Need to make sure getView gets called again
- // FIXME: This didn't seem to work
setAdapter(mTitleAdapter);
+ // Stay on the same tab
+ setCurrentTab(selection);
}
/**