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

Commit 161ccb5d authored by Jason Monk's avatar Jason Monk
Browse files

Small fixes in TileService

Change-Id: I4d10c43d8e40697d144802067fcd4f95d866e4e0
parent 9719fdba
Loading
Loading
Loading
Loading
+11 −2
Original line number Original line Diff line number Diff line
@@ -77,6 +77,15 @@ public class TileService extends Service {
    private Tile mTile;
    private Tile mTile;
    private IBinder mToken;
    private IBinder mToken;


    @Override
    public void onDestroy() {
        if (mListening) {
            onStopListening();
            mListening = false;
        }
        super.onDestroy();
    }

    /**
    /**
     * Called when the user adds this tile to Quick Settings.
     * Called when the user adds this tile to Quick Settings.
     * <p/>
     * <p/>
@@ -197,10 +206,10 @@ public class TileService extends Service {
                    mTile = (Tile) msg.obj;
                    mTile = (Tile) msg.obj;
                    break;
                    break;
                case MSG_TILE_ADDED:
                case MSG_TILE_ADDED:
                    TileService.this.onTileRemoved();
                    TileService.this.onTileAdded();
                    break;
                    break;
                case MSG_TILE_REMOVED:
                case MSG_TILE_REMOVED:
                    TileService.this.onTileAdded();
                    TileService.this.onTileRemoved();
                    break;
                    break;
                case MSG_STOP_LISTENING:
                case MSG_STOP_LISTENING:
                    if (mListening) {
                    if (mListening) {