From df65bae4c17afcffae66425a2e8d396c8a7b8534 Mon Sep 17 00:00:00 2001 From: jinliu9508 Date: Wed, 30 Oct 2024 11:57:21 -0700 Subject: [PATCH] clean up --- .../permissions/AlertDialogPrepromptForAndroidSettings.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/permissions/AlertDialogPrepromptForAndroidSettings.kt b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/permissions/AlertDialogPrepromptForAndroidSettings.kt index e0f2820b8..ac6d3b4db 100644 --- a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/permissions/AlertDialogPrepromptForAndroidSettings.kt +++ b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/permissions/AlertDialogPrepromptForAndroidSettings.kt @@ -55,9 +55,6 @@ object AlertDialogPrepromptForAndroidSettings { val messageTemplate = activity.getString(R.string.permission_not_available_message) val message = messageTemplate.format(previouslyDeniedPostfix) - // simulate showing a dialog in a finishing activity - activity.finish() - // ensure the activity that will be showing the dialog is available if (activity == null || activity.isDestroyed || activity.isFinishing) { Logging.log(LogLevel.ERROR, "Alert dialog for Android settings was skipped because the activity was unavailable to display it.")