diff --git a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java index 997975b4f03e6..1709135156f9b 100644 --- a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +++ b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java @@ -1643,10 +1643,8 @@ public class NavigationBar implements View.OnAttachStateChangeListener, private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { - // This receiver is unregistered when the view is detached, but on devices with multiple - // displays, it can sometimes still receive an ACTION_SCREEN_ON/ACTION_SCREEN_OFF on - // display switch, after it was detached, so this null check ensures no crash in that - // scenario. + // TODO(193941146): Currently unregistering a receiver through BroadcastDispatcher is + // async, but we've already cleared the fields. Just return early in this case. if (mNavigationBarView == null) { return; }