mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-11-16 19:33:31 +00:00
Fix superuser snackbar text
This commit is contained in:
@@ -115,8 +115,8 @@ class SuperuserViewModel(
|
|||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
db.update(item.item)
|
db.update(item.item)
|
||||||
val res = when {
|
val res = when {
|
||||||
item.item.logging -> R.string.su_snack_log_on
|
item.item.notification -> R.string.su_snack_notif_on
|
||||||
else -> R.string.su_snack_log_off
|
else -> R.string.su_snack_notif_off
|
||||||
}
|
}
|
||||||
itemsPolicies.forEach {
|
itemsPolicies.forEach {
|
||||||
if (it.item.uid == item.item.uid) {
|
if (it.item.uid == item.item.uid) {
|
||||||
@@ -131,8 +131,8 @@ class SuperuserViewModel(
|
|||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
db.update(item.item)
|
db.update(item.item)
|
||||||
val res = when {
|
val res = when {
|
||||||
item.item.notification -> R.string.su_snack_notif_on
|
item.item.logging -> R.string.su_snack_log_on
|
||||||
else -> R.string.su_snack_notif_off
|
else -> R.string.su_snack_log_off
|
||||||
}
|
}
|
||||||
itemsPolicies.forEach {
|
itemsPolicies.forEach {
|
||||||
if (it.item.uid == item.item.uid) {
|
if (it.item.uid == item.item.uid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user