diff options
author | Jason Monk <jmonk@google.com> | 2015-01-30 18:27:52 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-01-30 18:27:53 +0000 |
commit | b2dd5cb900d031acf255bddcbe2f57efb8f43adb (patch) | |
tree | 1ed4c7612696c5f4144954261544b961c5b3a916 /packages/SystemUI | |
parent | 3c68ca2feab6d3cd09c297ddc2e77af67694feec (diff) | |
parent | 8ba572a3277f0c729a7fcce67bbf6e101667d5f9 (diff) | |
download | frameworks_base-b2dd5cb900d031acf255bddcbe2f57efb8f43adb.zip frameworks_base-b2dd5cb900d031acf255bddcbe2f57efb8f43adb.tar.gz frameworks_base-b2dd5cb900d031acf255bddcbe2f57efb8f43adb.tar.bz2 |
Merge "Fix QS bluetooth tile accessibility issue" into lmp-mr1-dev
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSPanel.java | 4 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSTileView.java | 3 |
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) { |