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

Commit 0ebc2862 authored by Danny Baumann's avatar Danny Baumann Committed by Steve Kondik
Browse files

Don't broadcast before boot is completed.

system_server otherwise is unhappy and throws a stack trace.

Change-Id: I6463c6a1c26e57a0102a9a8cdaae2e5a36d52497
parent 946e1a90
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -140,10 +140,10 @@ public class KeyguardServiceDelegate {
                mKeyguardService.onSystemReady();
                mKeyguardService.onSystemReady();
                // This is used to hide the scrim once keyguard displays.
                // This is used to hide the scrim once keyguard displays.
                mKeyguardService.onScreenTurnedOn(new KeyguardShowDelegate(null));
                mKeyguardService.onScreenTurnedOn(new KeyguardShowDelegate(null));
                sendStateChangeBroadcast(true);
            }
            }
            if (mKeyguardState.bootCompleted) {
            if (mKeyguardState.bootCompleted) {
                mKeyguardService.onBootCompleted();
                mKeyguardService.onBootCompleted();
                sendStateChangeBroadcast(true);
            }
            }
        }
        }


@@ -267,7 +267,6 @@ public class KeyguardServiceDelegate {
        } else {
        } else {
            mKeyguardState.systemIsReady = true;
            mKeyguardState.systemIsReady = true;
        }
        }
        sendStateChangeBroadcast(true);
    }
    }


    public void doKeyguardTimeout(Bundle options) {
    public void doKeyguardTimeout(Bundle options) {
@@ -348,6 +347,7 @@ public class KeyguardServiceDelegate {
            mKeyguardService.onBootCompleted();
            mKeyguardService.onBootCompleted();
        }
        }
        mKeyguardState.bootCompleted = true;
        mKeyguardState.bootCompleted = true;
        sendStateChangeBroadcast(true);
    }
    }


    public void onActivityDrawn() {
    public void onActivityDrawn() {