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

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

Merge "Inline unnecessary helper methods" into main

parents 4fb7be40 faca3a08
Loading
Loading
Loading
Loading
+3 −13
Original line number Diff line number Diff line
@@ -706,7 +706,7 @@ public class HeadsUpManagerImpl
    }

    private void updateHeadsUpFlow() {
        mHeadsUpNotificationRows.setValue(new HashSet<>(getHeadsUpEntryPhoneMap().values()));
        mHeadsUpNotificationRows.setValue(new HashSet<>(mHeadsUpEntryMap.values()));
    }

    @Override
@@ -732,11 +732,6 @@ public class HeadsUpManagerImpl
        return mHeadsUpAnimatingAway.getValue();
    }

    @NonNull
    private ArrayMap<String, HeadsUpEntry> getHeadsUpEntryPhoneMap() {
        return mHeadsUpEntryMap;
    }

    /**
     * Called to notify the listeners that the HUN animating away animation has ended.
     */
@@ -1014,7 +1009,7 @@ public class HeadsUpManagerImpl
    @Override
    public void setRemoteInputActive(
            @NonNull NotificationEntry entry, boolean remoteInputActive) {
        HeadsUpEntry headsUpEntry = getHeadsUpEntryPhone(entry.getKey());
        HeadsUpEntry headsUpEntry = mHeadsUpEntryMap.get(entry.getKey());
        if (headsUpEntry != null && headsUpEntry.mRemoteInputActive != remoteInputActive) {
            headsUpEntry.mRemoteInputActive = remoteInputActive;
            if (ExpandHeadsUpOnInlineReply.isEnabled() && remoteInputActive) {
@@ -1029,11 +1024,6 @@ public class HeadsUpManagerImpl
        }
    }

    @Nullable
    private HeadsUpEntry getHeadsUpEntryPhone(@NonNull String key) {
        return mHeadsUpEntryMap.get(key);
    }

    @Override
    public void setGutsShown(@NonNull NotificationEntry entry, boolean gutsShown) {
        HeadsUpEntry headsUpEntry = getHeadsUpEntry(entry.getKey());
@@ -1125,7 +1115,7 @@ public class HeadsUpManagerImpl
            return true;
        }

        HeadsUpEntry headsUpEntry = getHeadsUpEntryPhone(key);
        HeadsUpEntry headsUpEntry = mHeadsUpEntryMap.get(key);
        HeadsUpEntry topEntry = getTopHeadsUpEntryPhone();

        if (headsUpEntry == null || headsUpEntry != topEntry) {