diff options
author | Selim Cinek <cinek@google.com> | 2014-08-26 17:29:20 +0200 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2014-08-27 12:38:15 +0200 |
commit | 06d3bca095aecbb7542ebf4bdaa56b368261dd9d (patch) | |
tree | 87ed508699dcd30cd073eb4ad9df5a8de93db6e8 /packages/SystemUI/src/com/android/systemui/qs/QSTile.java | |
parent | 19c8c708f16546fc75ae12659aa190f5e3dfbb52 (diff) | |
download | frameworks_base-06d3bca095aecbb7542ebf4bdaa56b368261dd9d.zip frameworks_base-06d3bca095aecbb7542ebf4bdaa56b368261dd9d.tar.gz frameworks_base-06d3bca095aecbb7542ebf4bdaa56b368261dd9d.tar.bz2 |
Made quick settings RTL compatible.
The layout is now mirrored correctly and the icons as well.
Bug: 15284805
Change-Id: I3d6fadad0a987adb49f826d4189f9dd58e20d326
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSTile.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSTile.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSTile.java b/packages/SystemUI/src/com/android/systemui/qs/QSTile.java index 876652c..2b071cc 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSTile.java @@ -306,6 +306,7 @@ public abstract class QSTile<TState extends State> implements Listenable { public String label; public String contentDescription; public String dualLabelContentDescription; + public boolean autoMirrorDrawable = true; public boolean copyTo(State other) { if (other == null) throw new IllegalArgumentException(); @@ -315,6 +316,7 @@ public abstract class QSTile<TState extends State> implements Listenable { || !Objects.equals(other.icon, icon) || !Objects.equals(other.label, label) || !Objects.equals(other.contentDescription, contentDescription) + || !Objects.equals(other.autoMirrorDrawable, autoMirrorDrawable) || !Objects.equals(other.dualLabelContentDescription, dualLabelContentDescription); other.visible = visible; @@ -323,6 +325,7 @@ public abstract class QSTile<TState extends State> implements Listenable { other.label = label; other.contentDescription = contentDescription; other.dualLabelContentDescription = dualLabelContentDescription; + other.autoMirrorDrawable = autoMirrorDrawable; return changed; } @@ -339,6 +342,7 @@ public abstract class QSTile<TState extends State> implements Listenable { sb.append(",label=").append(label); sb.append(",contentDescription=").append(contentDescription); sb.append(",dualLabelContentDescription=").append(dualLabelContentDescription); + sb.append(",autoMirrorDrawable=").append(autoMirrorDrawable); return sb.append(']'); } } |