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

Commit cde5574f authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Automerger Merge Worker
Browse files

Merge "Add logging when tile cannot be found" into udc-dev am: 53466c00 am: 7589dd22

parents 687f40fc 7589dd22
Loading
Loading
Loading
Loading
+17 −0
Original line number Original line Diff line number Diff line
@@ -344,9 +344,26 @@ public class TileServices extends IQSService.Stub {
            verifyCaller(customTile);
            verifyCaller(customTile);
            return customTile.getQsTile();
            return customTile.getQsTile();
        }
        }
        Log.e(TAG, "Tile for token " + token + "not found. "
                + "Tiles in map: " + availableTileComponents());
        return null;
        return null;
    }
    }


    private String availableTileComponents() {
        StringBuilder sb = new StringBuilder("[");
        synchronized (mServices) {
            mTokenMap.forEach((iBinder, customTile) ->
                    sb.append(iBinder.toString())
                    .append(":")
                    .append(customTile.getComponent().flattenToShortString())
                    .append(":")
                    .append(customTile.getUser())
                    .append(","));
        }
        sb.append("]");
        return sb.toString();
    }

    @Override
    @Override
    public void startUnlockAndRun(IBinder token) {
    public void startUnlockAndRun(IBinder token) {
        CustomTile customTile = getTileForToken(token);
        CustomTile customTile = getTileForToken(token);