am b05c2a2f: am 3c7954e6: NavigationBarView: Fix NPE in Drawable.setVisible()
* commit 'b05c2a2f1cba18c08f52a195ac2bdb4acd631805': NavigationBarView: Fix NPE in Drawable.setVisible()
This commit is contained in:
@@ -507,17 +507,6 @@ public class NavigationBarView extends LinearLayout {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVisibility(int visibility) {
|
||||
super.setVisibility(visibility);
|
||||
boolean visible = visibility == View.VISIBLE;
|
||||
getBackButton().getBackground().setVisible(visible, false /* restart */);
|
||||
getHomeButton().getBackground().setVisible(visible, false /* restart */);
|
||||
getRecentsButton().getBackground().setVisible(visible, false /* restart */);
|
||||
getMenuButton().getBackground().setVisible(visible, false /* restart */);
|
||||
getImeSwitchButton().getBackground().setVisible(visible, false /* restart */);
|
||||
}
|
||||
|
||||
/*
|
||||
@Override
|
||||
protected void onLayout (boolean changed, int left, int top, int right, int bottom) {
|
||||
|
||||
Reference in New Issue
Block a user