mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 19:15:58 +00:00
fix some problems of AppControlDialog
use state to control SwitchItem
This commit is contained in:
@@ -195,7 +195,7 @@ private fun UserRestrictionItem(
|
||||
val receiver = context.getReceiver()
|
||||
Box(modifier = Modifier.padding(start = 22.dp, end = 16.dp)) {
|
||||
SwitchItem(
|
||||
itemName,restrictionDescription,leadIcon,
|
||||
itemName, restrictionDescription, leadIcon,
|
||||
{ dpm.getUserRestrictions(receiver).getBoolean(restriction) },
|
||||
{
|
||||
try{
|
||||
|
||||
Reference in New Issue
Block a user