Merge "Fix QS bluetooth tile accessibility issue" into lmp-mr1-dev

This commit is contained in:
Jason Monk
2015-01-30 18:27:52 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 2 deletions

View File

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

View File

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