Merge "Empty message queue on TileService#onDestroy"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fd1ef729ab
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user