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

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

Change-Id: Id8827e5fd3903e66788c12ecae84e4cacc172885
This commit is contained in:
Matt Pietal
2021-08-23 20:19:07 +00:00
committed by Automerger Merge Worker

View File

@@ -204,6 +204,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) {
@@ -211,6 +212,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
updateControlsVisibility(); updateControlsVisibility();
updateAffordanceColors(); updateAffordanceColors();
} }
});
} }
}; };