Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jinliu9508 committed Oct 31, 2024
1 parent 95b0d90 commit df65bae
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit df65bae

Please sign in to comment.