Merge "Crash on device controls availability" into sc-qpr1-dev
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user