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.")