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

Commit 0b054d16 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixes a crash when logging

Change-Id: Ie5207ad22a580b88f50b117f3247a045b2dd31b8
Fixes: 123327642
parent 95b6e959
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(