Handle security exception
Этот коммит содержится в:
@@ -83,7 +83,10 @@ class BatteryOptimizationHelper {
|
|||||||
}
|
}
|
||||||
} else if (!sharedPreferences.getBoolean(KEY_AUTOSTART_REQUESTED, false)) {
|
} else if (!sharedPreferences.getBoolean(KEY_AUTOSTART_REQUESTED, false)) {
|
||||||
sharedPreferences.edit().putBoolean(KEY_AUTOSTART_REQUESTED, true).apply()
|
sharedPreferences.edit().putBoolean(KEY_AUTOSTART_REQUESTED, true).apply()
|
||||||
AutoStartPermissionHelper.getInstance().getAutoStartPermission(context)
|
try {
|
||||||
|
AutoStartPermissionHelper.getInstance().getAutoStartPermission(context)
|
||||||
|
} catch (e: SecurityException) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user