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

Unverified Commit 0bb7a757 authored by Yoshinori Hirano's avatar Yoshinori Hirano Committed by Michael Bestas
Browse files

Avoid automatically mirroring Drawable of CustomTile

Developers of custom tiles should decide whether
the Drawable of their own tiles should be automatically mirrored.
So State#autoMirrorDrawable should be false by default.

Bug: 30930145
Test: manual - change to RTL language and open Quick Settings

Change-Id: Ia3fd8c2aeddb4a27b9ecfaaf52edbcce01fd7f48
parent 36a1e6b7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@ public class TileQueryHelper {
        state.label = label;
        state.contentDescription = label;
        state.icon = new DrawableIcon(drawable);
        state.autoMirrorDrawable = false;
        addTile(spec, appLabel, state, false);
    }

+3 −1
Original line number Diff line number Diff line
@@ -221,7 +221,9 @@ public class CustomTile extends QSTile<QSTile.State> implements TileChangeListen

    @Override
    public State newTileState() {
        return new State();
        State state = new State();
        state.autoMirrorDrawable = false;
        return state;
    }

    @Override