Merge "Ignore scheduled onDeviceGone call on simulated device if it is already no longer present." into tm-dev am: 534925c288 am: 60b29a5682 am: f1fac7a6fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20612010 Change-Id: Ia212d5ccaa5dbad8c0d0f04ffd06668fcadd52de Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -363,7 +363,9 @@ public class CompanionDevicePresenceMonitor implements AssociationStore.OnChange
|
||||
@Override
|
||||
public void handleMessage(@NonNull Message msg) {
|
||||
final int associationId = msg.what;
|
||||
onDeviceGone(mSimulated, associationId, /* sourceLoggingTag */ "simulated");
|
||||
if (mSimulated.contains(associationId)) {
|
||||
onDeviceGone(mSimulated, associationId, /* sourceLoggingTag */ "simulated");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user