mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 981614 - Do a null check when handling toolbar focus change in HomePager (r=jdover)
This commit is contained in:
parent
a43c9b13b1
commit
bfab5d4467
@ -254,6 +254,10 @@ public class HomePager extends ViewPager {
|
||||
}
|
||||
|
||||
public void onToolbarFocusChange(boolean hasFocus) {
|
||||
if (mHomeBanner == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
// We should only make the banner active if the toolbar is not focused and we are on the default page
|
||||
final boolean active = !hasFocus && getCurrentItem() == mDefaultPageIndex;
|
||||
mHomeBanner.setActive(active);
|
||||
|
Loading…
Reference in New Issue
Block a user