GlobalActions: Fix Airplane mode toggle
* This is a squash of
Author: Cristoforo Cataldo <cristoforo.cataldo@gmail.com>
Date: Fri Jan 31 07:36:29 2014 +0100
GlobalActions: Set the initial status of airplane mode toggle
Actually, the initial status of airplane mode toggle is set to false
when the power menu dialog is initialized.
This causes an issue if you set airplane mode and then reboot.
After the reboot, the dialog displays the wrong airplane mode status,
eg. "Airplane mode is not active", and if you toggle that option, a wrong
intent is sent again to put ON the airplane mode, instead of OFF, the
toggle (that is in transition state) will be set disabled.
This commit fixes this issue.
Change-Id: Id30355c1e090355645c437086c79ab59093c27a8
Author: Roman Birg <roman@cyngn.com>
Date: Fri Apr 8 11:37:45 2016 -0700
GlobalActions: Fix airplane mode switch for MSIM
MSIM devices are not reporting state changes for SIM slots without SIMs,
so when toggling airplane mode it would get stuck in the intermediate
state because a phone state callback would never happen.
Now we dynamically add phone state listeners for each active SIM slot.
If there is no active SIM slot, we immediately fall back to the
setting-based behavior. When a subscription update occurs (such as
inserting or removing SIM cards, we'll reinitialize the listener and
use the proper mechanism).
Ticket: CYNGNOS-989
Change-Id: Ifa4f418dd11fda6f67ba31f3847bed225187b95c
Signed-off-by:
Roman Birg <roman@cyngn.com>
Author: Michael W <baddaemon87@gmail.com>
Date: Thu Apr 23 11:54:30 2020 +0200
GlobalActions: Prepare for Q
* The constructor for PhoneStateListener that takes a subId will not
be supported after P, so adapt by going via subId-specific telephony
managers
* Need to store the subId and the listener in order to be able to properly
unlisten
Change-Id: I78b842ce17a1ce2c42877b3c32331142e07fefa2
Change-Id: I2199a847d3cf23c8cfff9570fc419b1727fe5e6e
Loading
Please register or sign in to comment