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

Commit 66328268 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Fix IndexOutOfBoundsException" into main

parents 903976cd bb10c9f4
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)
        }