Merge "Fix QS bluetooth tile accessibility issue" into lmp-mr1-dev
This commit is contained in:
@@ -423,7 +423,9 @@ public class QSPanel extends ViewGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (TileRecord record : mRecords) {
|
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;
|
if (record.tileView.getVisibility() == GONE) continue;
|
||||||
final int cw = record.row == 0 ? mLargeCellWidth : mCellWidth;
|
final int cw = record.row == 0 ? mLargeCellWidth : mCellWidth;
|
||||||
final int ch = record.row == 0 ? mLargeCellHeight : mCellHeight;
|
final int ch = record.row == 0 ? mLargeCellHeight : mCellHeight;
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ public class QSTileView extends ViewGroup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDual(boolean dual) {
|
public boolean setDual(boolean dual) {
|
||||||
final boolean changed = dual != mDual;
|
final boolean changed = dual != mDual;
|
||||||
mDual = dual;
|
mDual = dual;
|
||||||
if (changed) {
|
if (changed) {
|
||||||
@@ -199,6 +199,7 @@ public class QSTileView extends ViewGroup {
|
|||||||
setFocusable(!dual);
|
setFocusable(!dual);
|
||||||
mDivider.setVisibility(dual ? VISIBLE : GONE);
|
mDivider.setVisibility(dual ? VISIBLE : GONE);
|
||||||
postInvalidate();
|
postInvalidate();
|
||||||
|
return changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setRipple(RippleDrawable tileBackground) {
|
private void setRipple(RippleDrawable tileBackground) {
|
||||||
|
|||||||
Reference in New Issue
Block a user