Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd1ef729 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Empty message queue on TileService#onDestroy"

parents d67c2044 83be4ae5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;