GlobalActionsDialog: Remove broken PhoneStateListener for airplane mode toggle
The Airplane Mode toggle in GlobalActions is completely broken,
being stuck in TurningOn transition state when pressing it when
Airplane Mode is off. This happens because the PhoneStateListener
doesn't trigger onServiceStateChanged when Airplane Mode turns on.
This commit removes the redundant PhoneStateListener and makes the
logic work for Telephony and non-Telephony devices pretty much the
same way by allowing onAirplaneModeChanged() to handle both cases.
Change-Id: Ifd1e06ff144addf8dd2c8494769b2d646599ae0a
Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Loading
Please register or sign in to comment