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
This commit is contained in:
Yoshinori Hirano
2016-08-17 14:09:58 +09:00
parent 2fbf30d3fe
commit eb09362c72
2 changed files with 4 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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