Merge "Crash on device controls availability" into sc-qpr1-dev am: ba2546df4c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15533188

Change-Id: I50b4231250e7476a0117f31f46a1a3b731dce88b
This commit is contained in:
Matt Pietal
2021-08-23 18:49:28 +00:00
committed by Automerger Merge Worker

View File

@@ -203,6 +203,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
private ControlsListingController.ControlsListingCallback mListingCallback = private ControlsListingController.ControlsListingCallback mListingCallback =
new ControlsListingController.ControlsListingCallback() { new ControlsListingController.ControlsListingCallback() {
public void onServicesUpdated(List<ControlsServiceInfo> serviceInfos) { public void onServicesUpdated(List<ControlsServiceInfo> serviceInfos) {
post(() -> {
boolean available = !serviceInfos.isEmpty(); boolean available = !serviceInfos.isEmpty();
if (available != mControlServicesAvailable) { if (available != mControlServicesAvailable) {
@@ -210,6 +211,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
updateControlsVisibility(); updateControlsVisibility();
updateAffordanceColors(); updateAffordanceColors();
} }
});
} }
}; };