mirror of
https://github.com/seemoo-lab/AirGuard.git
synced 2026-04-25 15:35:49 +03:00
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AirGuard#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/seemoo-lab/AirGuard/pull/21
Author: @CampbellMG
Created: 12/23/2021
Status: ✅ Merged
Merged: 1/3/2022
Merged by: @Trup3s
Base:
main← Head:main📝 Commits (2)
f0f460b(fix #20) Dismissed dialog rather closing activity when dismissing dialogdad4615(fix #20) Prevented showing duplicate dialogs📊 Changes
1 file changed (+9 additions, -6 deletions)
View changed files
📝
app/src/main/java/de/seemoo/at_tracking_detection/ui/OnboardingActivity.kt(+9 -6)📄 Description
Issue 1
This is fixed by dismissing the dialog rather than closing the activity entirely. I am assuming this is the intended flow, however, we can also dismiss the activity. We just need to ensure the fix for issue 2 is in place as I believe opening the second dialog after killing the activity is the root cause.
Issue 2
To fix duplicate dialogs I've just stored a reference to a dialog once it's opened. If the dialog is still showing we don't show another. This is necessary as onUserDeniedPermission seems to be called several times when dismissing a permission prompt.
Please let me know what you think.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.