зеркало из https://github.com/mozilla/gecko-dev.git
Bug 856252 - Explicitly set next focused view when arrowing down from BrowserToolBar. r=kats r=sriram
This commit is contained in:
Родитель
c9a860fa96
Коммит
f1d1fcab9d
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче