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

Commit f120cf3d authored by Jason Monk's avatar Jason Monk
Browse files

resolve merge conflicts of 9600df03 to stage-aosp-master

Change-Id: I139c64bb2440d64312d7e763e53bdb13dcb9f1aa
parents 1abe6def 9600df03
Loading
Loading
Loading
Loading
+16 −8
Original line number Original line Diff line number Diff line
@@ -332,19 +332,27 @@ public class QSTileHost implements QSTile.Host, Tunable {
            QSTile<?> tile = mTiles.get(tileSpec);
            QSTile<?> tile = mTiles.get(tileSpec);
            if (tile != null && (!(tile instanceof CustomTile)
            if (tile != null && (!(tile instanceof CustomTile)
                    || ((CustomTile) tile).getUser() == currentUser)) {
                    || ((CustomTile) tile).getUser() == currentUser)) {
                if (tile.isAvailable()) {
                    if (DEBUG) Log.d(TAG, "Adding " + tile);
                    if (DEBUG) Log.d(TAG, "Adding " + tile);
                    tile.removeCallbacks();
                    tile.removeCallbacks();
                    if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) {
                    if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) {
                        tile.userSwitch(currentUser);
                        tile.userSwitch(currentUser);
                    }
                    }
                    newTiles.put(tileSpec, tile);
                    newTiles.put(tileSpec, tile);
                } else {
                    tile.destroy();
                }
            } else {
            } else {
                if (DEBUG) Log.d(TAG, "Creating tile: " + tileSpec);
                if (DEBUG) Log.d(TAG, "Creating tile: " + tileSpec);
                try {
                try {
                    tile = createTile(tileSpec);
                    tile = createTile(tileSpec);
                    if (tile != null && tile.isAvailable()) {
                    if (tile != null) {
                        if (tile.isAvailable()) {
                            tile.setTileSpec(tileSpec);
                            tile.setTileSpec(tileSpec);
                            newTiles.put(tileSpec, tile);
                            newTiles.put(tileSpec, tile);
                        } else {
                            tile.destroy();
                        }
                    }
                    }
                } catch (Throwable t) {
                } catch (Throwable t) {
                    Log.w(TAG, "Error creating tile for spec: " + tileSpec, t);
                    Log.w(TAG, "Error creating tile for spec: " + tileSpec, t);