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

Skip to content
Commit 5ce924dc authored by Gegham Zakaryan's avatar Gegham Zakaryan Committed by Bruno Martins
Browse files

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: default avatarGegham Zakaryan <zakaryan.2004@outlook.com>
parent d68b0efb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment