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

Commit c1745e85 authored by Dou,lilix's avatar Dou,lilix Committed by Steve Kondik
Browse files

Fix system_server crash issue.



Do not show mScrim if has not attached to Window.
As mScrim was created by system_server main thread.
If it has not been attached to Window, Calling this method may cause that
refreshing the View in ActivityManager thread.
Then CalledFromWrongThreadException is throwed.

Change-Id: Id22da7c769751a4b2869e3b59a90f1841513c6b7
Signed-off-by: default avatarDou,lilix <lilix.dou@intel.com>
Signed-off-by: default avatarZhiquan Liu <zhiquan.liu@intel.com>
parent 1bb0a456
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ public class KeyguardServiceDelegate {

    public void showScrim() {
        synchronized (mKeyguardState) {
            if (!mKeyguardState.deviceHasKeyguard) return;
            if (!mKeyguardState.deviceHasKeyguard || !mScrim.isAttachedToWindow()) return;
            mScrimHandler.post(new Runnable() {
                @Override
                public void run() {