Skip to content

Commit b07f6e0

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Fix NPE."
2 parents 795a5f0 + d9283b9 commit b07f6e0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ public boolean onTouch(View v, MotionEvent ev) {
112112
};
113113

114114
public void setDisabledFlags(int disabledFlags) {
115-
Slog.d(TAG, "setDisabledFlags: " + disabledFlags);
116115
setDisabledFlags(disabledFlags, false);
117116
}
118117

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ public void disable(int state) {
10911091

10921092
if ((diff & (StatusBarManager.DISABLE_NAVIGATION | StatusBarManager.DISABLE_BACK)) != 0) {
10931093
// the nav bar will take care of DISABLE_NAVIGATION and DISABLE_BACK
1094-
mNavigationBarView.setDisabledFlags(state);
1094+
if (mNavigationBarView != null) mNavigationBarView.setDisabledFlags(state);
10951095

10961096
if ((state & StatusBarManager.DISABLE_NAVIGATION) != 0) {
10971097
// close recents if it's visible

0 commit comments

Comments
 (0)