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

Commit 76b1ff40 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 0661f71a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -148,10 +148,10 @@ public class KeyguardServiceDelegate {
                mKeyguardService.onScreenTurnedOn(new KeyguardShowDelegate(
                        mShowListenerWhenConnect));
                mShowListenerWhenConnect = null;
                sendStateChangeBroadcast(true);
            }
            if (mKeyguardState.bootCompleted) {
                mKeyguardService.onBootCompleted();
                sendStateChangeBroadcast(true);
            }
        }

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

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

    public void onActivityDrawn() {