Skip to content

Commit

Permalink
Fixed all flags list crash
Browse files Browse the repository at this point in the history
  • Loading branch information
AkosPaha01 committed Oct 10, 2024
1 parent bc6baf8 commit b69fb4a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Build
import android.util.Log
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
Expand Down Expand Up @@ -379,7 +380,7 @@ class Flags(val activity: Activity, private val args: SafeJSON) : AbstractPrefer
filter,
true
)) && onlyDisabled.let { b -> if (b) it.value is Boolean && it.value == false else true }
}.forEach { entry ->
}.filter {it.key.isNotEmpty()}.forEach { entry ->
prefs.edit { remove(entry.key) }
if (entry.value is Boolean) builder.switch(entry.key) {
title = entry.key.split("_").joinToString(" ") {
Expand Down

0 comments on commit b69fb4a

Please sign in to comment.