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

Commit db0b01e6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixes a crash when logging"

parents 147cfc3a 0b054d16
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -167,13 +167,10 @@ public class NotificationLogger implements StateListener {
     */
    public static NotificationVisibility.NotificationLocation getNotificationLocation(
            NotificationEntry entry) {
        ExpandableNotificationRow row = entry.getRow();
        ExpandableViewState childViewState = row.getViewState();

        if (childViewState == null) {
        if (entry == null || entry.getRow() == null || entry.getRow().getViewState() == null) {
            return NotificationVisibility.NotificationLocation.LOCATION_UNKNOWN;
        }
        return convertNotificationLocation(childViewState.location);
        return convertNotificationLocation(entry.getRow().getViewState().location);
    }

    private static NotificationVisibility.NotificationLocation convertNotificationLocation(