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:
@@ -204,13 +204,15 @@ 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) {
|
||||||
boolean available = !serviceInfos.isEmpty();
|
post(() -> {
|
||||||
|
boolean available = !serviceInfos.isEmpty();
|
||||||
|
|
||||||
if (available != mControlServicesAvailable) {
|
if (available != mControlServicesAvailable) {
|
||||||
mControlServicesAvailable = available;
|
mControlServicesAvailable = available;
|
||||||
updateControlsVisibility();
|
updateControlsVisibility();
|
||||||
updateAffordanceColors();
|
updateAffordanceColors();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user