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

Commit 055c490f authored by Julia Tuttle's avatar Julia Tuttle
Browse files

Move AlertingNotificationManager constructor after all fields

Bug: 315192399
Test: atest AlertingNotificationManagerTest
Test: atest HeadsUpManagerTest
Test: atest HeadsUpManagerPhoneTest
Flag: NA
Change-Id: I0864b8f210b93f63e17e76e43fb8015527f98eea
parent bf70bb64
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -43,17 +43,17 @@ public abstract class AlertingNotificationManager {
    protected final ArrayMap<String, AlertEntry> mAlertEntries = new ArrayMap<>();
    protected final HeadsUpManagerLogger mLogger;

    public AlertingNotificationManager(HeadsUpManagerLogger logger, @Main Handler handler) {
        mLogger = logger;
        mHandler = handler;
    }

    protected int mMinimumDisplayTime;
    protected int mStickyForSomeTimeAutoDismissTime;
    protected int mAutoDismissTime;
    @VisibleForTesting
    public Handler mHandler;

    public AlertingNotificationManager(HeadsUpManagerLogger logger, @Main Handler handler) {
        mLogger = logger;
        mHandler = handler;
    }

    /**
     * Called when posting a new notification that should alert the user and appear on screen.
     * Adds the notification to be managed.