NTP-63234 | dont keep activity event (#16252)
This commit is contained in:
@@ -507,4 +507,18 @@ object BaseUtils {
|
||||
calendar.get(Calendar.YEAR),
|
||||
)
|
||||
}
|
||||
|
||||
fun isDontKeepActivitiesEnabled(context: Context): Boolean {
|
||||
return try {
|
||||
val value =
|
||||
Settings.Global.getInt(
|
||||
context.contentResolver,
|
||||
Settings.Global.ALWAYS_FINISH_ACTIVITIES,
|
||||
)
|
||||
value == 1
|
||||
} catch (e: Exception) {
|
||||
e.log()
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user