Fix accessibility ghosts in quick settings detail

Fixes a bug where the tile that was just clicked on
to go to the detail view would become visible and cause
confusion to accessibility services.

Bug: 20209718
Change-Id: I1678a4fc35e8d739b7c657e868b02a25eddcba1d
This commit is contained in:
Adrian Roos
2015-06-15 17:27:01 -07:00
parent 2d4dc8db64
commit d366cb130d

View File

@@ -242,6 +242,9 @@ public class QSPanel extends ViewGroup {
}
private void handleSetTileVisibility(View v, int visibility) {
if (visibility == VISIBLE && !mGridContentVisible) {
visibility = INVISIBLE;
}
if (visibility == v.getVisibility()) return;
v.setVisibility(visibility);
}