Bug 856252 - Explicitly set next focused view when arrowing down from BrowserToolBar. r=kats r=sriram

This commit is contained in:
Eitan Isaacson 2013-04-01 10:55:24 -07:00
Родитель c9a860fa96
Коммит f1d1fcab9d
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -1180,8 +1180,10 @@ abstract public class BrowserApp extends GeckoApp
AboutHomeContent.UpdateFlags.REMOTE_TABS));
}
mAboutHomeContent.setVisibility(View.VISIBLE);
mBrowserToolbar.setNextFocusDownId(R.id.abouthome_content);
} else {
findViewById(R.id.abouthome_content).setVisibility(View.GONE);
mBrowserToolbar.setNextFocusDownId(R.id.layer_view);
}
// Refresh margins to possibly restore the toolbar padding

Просмотреть файл

@ -558,6 +558,18 @@ public class BrowserToolbar implements ViewSwitcher.ViewFactory,
return mVisibility == ToolbarVisibility.VISIBLE;
}
public void setNextFocusDownId(int nextId) {
mAwesomeBar.setNextFocusDownId(nextId);
mTabs.setNextFocusDownId(nextId);
mBack.setNextFocusDownId(nextId);
mForward.setNextFocusDownId(nextId);
mFavicon.setNextFocusDownId(nextId);
mStop.setNextFocusDownId(nextId);
mSiteSecurity.setNextFocusDownId(nextId);
mReader.setNextFocusDownId(nextId);
mMenu.setNextFocusDownId(nextId);
}
@Override
public void onAnimationStart(Animation animation) {
if (animation.equals(mLockFadeIn)) {