Bug 825498: Focus issue on tablets with h/w keyboard. [r=mfinkle]

--HG--
extra : rebase_source : 926d53f94908842a3bbaa1d6d3747b455eaa153d
This commit is contained in:
Sriram Ramasubramanian 2013-01-15 16:03:42 -08:00
parent a15006d7fb
commit a655001930

View File

@ -351,7 +351,9 @@ public class TabsPanel extends TabHost
mCurrentPanel = panel;
int index = panel.ordinal();
setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
setCurrentTab(index);
setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS);
mTabsSpinner.setSelection(index);
mPanel = (PanelView) getTabContentView().getChildAt(index);