Merge "Fix NPE in NotificationRemoteInputManager logging" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cc40644676
@@ -181,11 +181,11 @@ public class NotificationRemoteInputManager implements Dumpable {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ViewParent parent = view.getParent();
|
ViewParent parent = view.getParent();
|
||||||
StatusBarNotification statusBarNotification = entry.getSbn();
|
if (entry == null) {
|
||||||
if (statusBarNotification == null) {
|
|
||||||
Log.w(TAG, "Couldn't determine notification for click.");
|
Log.w(TAG, "Couldn't determine notification for click.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
StatusBarNotification statusBarNotification = entry.getSbn();
|
||||||
String key = statusBarNotification.getKey();
|
String key = statusBarNotification.getKey();
|
||||||
int buttonIndex = -1;
|
int buttonIndex = -1;
|
||||||
// If this is a default template, determine the index of the button.
|
// If this is a default template, determine the index of the button.
|
||||||
|
|||||||
Reference in New Issue
Block a user