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

Commit eb09362c authored by Yoshinori Hirano's avatar Yoshinori Hirano
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 2fbf30d3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -131,6 +131,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
@@ -214,7 +214,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