Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c948c02 authored by Dan Sandler's avatar Dan Sandler Committed by Android Git Automerger
Browse files

am 3c7954e6: NavigationBarView: Fix NPE in Drawable.setVisible()

* commit '3c7954e6d6045c377a72b4d10f72602c84845b77':
  NavigationBarView: Fix NPE in Drawable.setVisible()
parents 207283ad 8cd9e2db
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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) {