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: Ibe3f2ae861dae47224e4beb8d3de8bdd78032bf7
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user