summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-01-30 19:57:25 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-30 19:57:25 +0000
commit8df98bb8028573ecf856600482ac75281b6d9775 (patch)
tree4ab7a93eea25397f106bb136ae113b17b3756ffd
parent402e5bc69e8749bedcdaaf74c8fe88766265f366 (diff)
parentb2dd5cb900d031acf255bddcbe2f57efb8f43adb (diff)
downloadframeworks_base-8df98bb8028573ecf856600482ac75281b6d9775.zip
frameworks_base-8df98bb8028573ecf856600482ac75281b6d9775.tar.gz
frameworks_base-8df98bb8028573ecf856600482ac75281b6d9775.tar.bz2
am b2dd5cb9: Merge "Fix QS bluetooth tile accessibility issue" into lmp-mr1-dev
* commit 'b2dd5cb900d031acf255bddcbe2f57efb8f43adb': Fix QS bluetooth tile accessibility issue
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/QSPanel.java4
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/QSTileView.java3
2 files changed, 5 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
index 974235e..4dacacf 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
@@ -423,7 +423,9 @@ public class QSPanel extends ViewGroup {
}
for (TileRecord record : mRecords) {
- record.tileView.setDual(record.tile.supportsDualTargets());
+ if (record.tileView.setDual(record.tile.supportsDualTargets())) {
+ record.tileView.handleStateChanged(record.tile.getState());
+ }
if (record.tileView.getVisibility() == GONE) continue;
final int cw = record.row == 0 ? mLargeCellWidth : mCellWidth;
final int ch = record.row == 0 ? mLargeCellHeight : mCellHeight;
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSTileView.java b/packages/SystemUI/src/com/android/systemui/qs/QSTileView.java
index bb353d5..16ae6b4 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSTileView.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSTileView.java
@@ -172,7 +172,7 @@ public class QSTileView extends ViewGroup {
}
}
- public void setDual(boolean dual) {
+ public boolean setDual(boolean dual) {
final boolean changed = dual != mDual;
mDual = dual;
if (changed) {
@@ -199,6 +199,7 @@ public class QSTileView extends ViewGroup {
setFocusable(!dual);
mDivider.setVisibility(dual ? VISIBLE : GONE);
postInvalidate();
+ return changed;
}
private void setRipple(RippleDrawable tileBackground) {