Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7224b3c8 authored by Danesh M's avatar Danesh M
Browse files

ApnSettings : Ensure default apn dialog isn't shown twice

There can be cases where while a device is restoring default apns,
ACTION_ANY_DATA_CONNECTION_STATE_CHANGED is broadcasted and mobileDataState
becomes CONNECTED. Current logic is to throw up another dialog blindly in a
case where this broadcast is received and we are in the middle of restoring.
This can result in multiple dialogs and losing reference to the first dialog,
hence not being able to dismiss it.

Resolve this by keeping a reference to the dialogs, and ensuring one
isn't showing before throwing another one.

issue-id: CYNGNOS-882

Change-Id: I9e93f2a165ba40d36c85976960a5b5a19a3815d3
(cherry picked from commit 94926222)
parent 4ef4f440
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment