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

Commit bb10c9f4 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix IndexOutOfBoundsException

Test: none, MonkeyComboTest_StabilityMonkey
Fixes: 341614935
Flag: EXEMPT bugfix
Change-Id: Id52bcbc40145d7dca477425322e317abc2268a59
parent 0037dfe9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ class AppNotificationsListModel(

    override fun getSpinnerOptions(recordList: List<AppNotificationsRecord>): List<SpinnerOption> {
        val options = mutableListOf(SpinnerItem.AllApps, SpinnerItem.TurnedOff)
        if (repository.isUserUnlocked(recordList[0].app.userId)) {
        if (recordList.isNotEmpty() && repository.isUserUnlocked(recordList[0].app.userId)) {
            options.add(0, SpinnerItem.MostRecent)
            options.add(1, SpinnerItem.MostFrequent)
        }