You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix BadTokenException when showing NewAddressBarOptionBottomSheetDialog (#6892)
Task/Issue URL:
https://app.asana.com/1/137249556945/project/488551667048375/task/1211555187913871?focus=true
### Description
- Adds a `isWindowValid` check before displaying the dialog.
### Steps to test this PR
- [x] Fresh install the app
- [x] Complete onboarding (Use "I’ve been here before", **not** “Skip
Onboarding”) and kill the app
- [x] Verify that the New Address Bar Option Dialog is displayed
Copy file name to clipboardExpand all lines: duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/inputscreen/newaddressbaroption/NewAddressBarOptionBottomSheetDialog.kt
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ class NewAddressBarOptionBottomSheetDialog(
175
175
176
176
if (pendingShow) {
177
177
pendingShow =false
178
-
show()
178
+
if (isWindowValid()) { super.show() }
179
179
}
180
180
}
181
181
}
@@ -246,7 +246,7 @@ class NewAddressBarOptionBottomSheetDialog(
0 commit comments