the display of the variable value does not change when the variable is changed (Jetpack Compose Android Studio)

Issue the application uses mvvm and jetpack compose, the screen (View, compose) shows whether permission has been obtained using the following code: val context = LocalContext.current val access by remember { mutableStateOf( NotificationManagerCompat.getEnabledListenerPackages(context) .contains(context.packageName) ) } Text(if (access) "good" else

Continue reading