diff options
| author | James Cook <jamescook@google.com> | 2015-06-03 20:58:50 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-03 20:58:52 +0000 |
| commit | 8fd48ca377956e434819ade33a9970cd66a2fda7 (patch) | |
| tree | 0e2be51bb5544d507dc0e43781729ac3a3524587 /core/java/android | |
| parent | 1b54fb27ac48495ed0b33868fda5776fb49fe0f3 (diff) | |
| parent | d8b7d2ce2da68cd1853dd1d734eae6fb9f6323d4 (diff) | |
Merge "Fix TabHost stealing focus on hardware keyboard keypress" into mnc-dev
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/widget/TabHost.java | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/core/java/android/widget/TabHost.java b/core/java/android/widget/TabHost.java index c521f72d7ad0..27fa3b91dfe8 100644 --- a/core/java/android/widget/TabHost.java +++ b/core/java/android/widget/TabHost.java @@ -188,32 +188,9 @@ mTabHost.addTab(TAB_TAG_1, "Hello, world!", "Tab 1"); mLocalActivityManager = activityGroup; } - - @Override - protected void onAttachedToWindow() { - super.onAttachedToWindow(); - final ViewTreeObserver treeObserver = getViewTreeObserver(); - treeObserver.addOnTouchModeChangeListener(this); - } - @Override - protected void onDetachedFromWindow() { - super.onDetachedFromWindow(); - final ViewTreeObserver treeObserver = getViewTreeObserver(); - treeObserver.removeOnTouchModeChangeListener(this); - } - - /** - * {@inheritDoc} - */ public void onTouchModeChanged(boolean isInTouchMode) { - if (!isInTouchMode) { - // leaving touch mode.. if nothing has focus, let's give it to - // the indicator of the current tab - if (mCurrentView != null && (!mCurrentView.hasFocus() || mCurrentView.isFocused())) { - mTabWidget.getChildTabViewAt(mCurrentTab).requestFocus(); - } - } + // No longer used, but kept to maintain API compatibility. } /** |
