Merge "Empty message queue on TileService#onDestroy"

This commit is contained in:
Fabian Kozynski
2020-11-20 14:49:07 +00:00
committed by Android (Google) Code Review

View File

@@ -176,6 +176,9 @@ public class TileService extends Service {
@Override
public void onDestroy() {
// As this call will come asynchronously in the main thread, prevent calls from the binder
// being processed after this.
mHandler.removeCallbacksAndMessages(null);
if (mListening) {
onStopListening();
mListening = false;