swap the action order
This commit is contained in:
+13
-13
@@ -50,19 +50,6 @@ object IntentBlockNotifier {
|
|||||||
.setShowWhen(true)
|
.setShowWhen(true)
|
||||||
.setTimeoutAfter(TIMEOUT_MS)
|
.setTimeoutAfter(TIMEOUT_MS)
|
||||||
|
|
||||||
builder.addAction(
|
|
||||||
0,
|
|
||||||
"Allow once",
|
|
||||||
buildActionIntent(
|
|
||||||
context = appCtx,
|
|
||||||
action = GatekeeperNotificationActionReceiver.ACTION_ALLOW_ONCE,
|
|
||||||
packageName = packageName,
|
|
||||||
blockedIntent = blockedIntent,
|
|
||||||
notificationId = notificationId,
|
|
||||||
requestCode = notificationId + 1,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
builder.addAction(
|
builder.addAction(
|
||||||
0,
|
0,
|
||||||
"Always allow",
|
"Always allow",
|
||||||
@@ -76,6 +63,19 @@ object IntentBlockNotifier {
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
builder.addAction(
|
||||||
|
0,
|
||||||
|
"Allow once",
|
||||||
|
buildActionIntent(
|
||||||
|
context = appCtx,
|
||||||
|
action = GatekeeperNotificationActionReceiver.ACTION_ALLOW_ONCE,
|
||||||
|
packageName = packageName,
|
||||||
|
blockedIntent = blockedIntent,
|
||||||
|
notificationId = notificationId,
|
||||||
|
requestCode = notificationId + 1,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
val manager = ContextCompat.getSystemService(appCtx, NotificationManager::class.java)
|
val manager = ContextCompat.getSystemService(appCtx, NotificationManager::class.java)
|
||||||
?: return
|
?: return
|
||||||
manager.notify(notificationId, builder.build())
|
manager.notify(notificationId, builder.build())
|
||||||
|
|||||||
Reference in New Issue
Block a user