mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-19 02:10:54 +02:00
add buildFlavor for accrescent
This commit is contained in:
parent
fa0c880342
commit
f08f357bb3
3 changed files with 41 additions and 1 deletions
|
@ -4,6 +4,7 @@ import android.content.Context
|
|||
import android.os.Build
|
||||
import android.widget.Button
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import de.jrpie.android.launcher.BuildConfig
|
||||
import de.jrpie.android.launcher.R
|
||||
import de.jrpie.android.launcher.preferences.LauncherPreferences
|
||||
|
||||
|
@ -36,7 +37,8 @@ enum class LockMethod(
|
|||
|
||||
companion object {
|
||||
fun chooseMethod(context: Context) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P ||
|
||||
! BuildConfig.USE_ACCESSIBILITY_SERVICE) {
|
||||
// only device admin is available
|
||||
setMethod(context, DEVICE_ADMIN)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue