From 7f1523c458ca763583ef30bd9c35cf06e3757aaa 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 604221f56..9eaf3a596 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 @@ -53,9 +53,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.isFinishing) { AlertDialog.Builder(activity)