Moving the device provisioned callback to the correct thread.
Test: manual Bug: 116479940 Change-Id: I4cfdfac7d949ac177b7bc9da066e7497506c971c (cherry picked from commit 2f6f9984aba0516f3a665d8ad98c79168e05a1b6)
This commit is contained in:
@@ -114,9 +114,16 @@ public class CarStatusBar extends StatusBar implements
|
||||
new DeviceProvisionedController.DeviceProvisionedListener() {
|
||||
@Override
|
||||
public void onDeviceProvisionedChanged() {
|
||||
mDeviceIsProvisioned =
|
||||
mDeviceProvisionedController.isDeviceProvisioned();
|
||||
restartNavBars();
|
||||
mHandler.post(() -> {
|
||||
// on initial boot we are getting a call even though the value
|
||||
// is the same so we are confirming the reset is needed
|
||||
boolean deviceProvisioned =
|
||||
mDeviceProvisionedController.isDeviceProvisioned();
|
||||
if (mDeviceIsProvisioned != deviceProvisioned) {
|
||||
mDeviceIsProvisioned = deviceProvisioned;
|
||||
restartNavBars();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user