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

Commit bdbd9813 authored by Sungmin Choi's avatar Sungmin Choi Committed by Vineeta Srivastava
Browse files

Get display manager state after registering with DisplayManager

RSSI bar and Signal Strength are not changed when power up.
In booting time, RILJ does not receive any onDisplayChanged().
Thus ScreenState send false in updateScreenState() even if screen on.
So get display manager state after registering with DisplayManager.
As a result, mDefaultDisplayState set proper value.

Bug: 24748088
Change-Id: I8a56810a2a1e6b294d2ce2f3bc5837114312fc49
parent 14282b8f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -668,6 +668,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
                    Context.DISPLAY_SERVICE);
            mDefaultDisplay = dm.getDisplay(Display.DEFAULT_DISPLAY);
            dm.registerDisplayListener(mDisplayListener, null);
            mDefaultDisplayState = mDefaultDisplay.getState();

            IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
            Intent batteryStatus = context.registerReceiver(mBatteryStateListener, filter);