Forward keyguard showing updated events to global actions panel

Bug: 129342406
Bug: 123881720
Test: manual
Change-Id: I4a8498a6101d22ebaf0d443434adbc26f5b6164e
This commit is contained in:
Steve Elliott
2019-05-06 18:56:40 -04:00
parent 31cf0ff5b7
commit 924750426f

View File

@@ -91,6 +91,7 @@ import com.android.systemui.plugins.ActivityStarter;
import com.android.systemui.plugins.GlobalActions.GlobalActionsManager;
import com.android.systemui.plugins.GlobalActionsPanelPlugin;
import com.android.systemui.statusbar.phone.ScrimController;
import com.android.systemui.statusbar.phone.UnlockMethodCache;
import com.android.systemui.statusbar.policy.ConfigurationController;
import com.android.systemui.util.EmergencyDialerConstants;
import com.android.systemui.util.leak.RotationUtils;
@@ -207,6 +208,14 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
Dependency.get(ConfigurationController.class).addCallback(this);
mActivityStarter = Dependency.get(ActivityStarter.class);
UnlockMethodCache unlockMethodCache = UnlockMethodCache.getInstance(context);
unlockMethodCache.addListener(
() -> {
if (mDialog != null && mDialog.mPanelController != null) {
boolean locked = !unlockMethodCache.canSkipBouncer();
mDialog.mPanelController.onDeviceLockStateChanged(locked);
}
});
}
/**