swap the action order

This commit is contained in:
Fabian Freund
2026-05-04 18:32:27 +02:00
parent 3401d2cc8c
commit e945f9928b
@@ -50,19 +50,6 @@ object IntentBlockNotifier {
.setShowWhen(true)
.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(
0,
"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)
?: return
manager.notify(notificationId, builder.build())