Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80513162 authored by Jason Monk's avatar Jason Monk
Browse files

Announce title of QS detail views

When entering a QS detail view announce the title of the view for
accessibility.

Bug: 17578404
Change-Id: I4cfd1bc85604af822b4f5fce852b39687f71cbae
parent ee3ef2b8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -748,7 +748,9 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
            transition(mQsDetailHeader, showingDetail);
            mShowingDetail = showingDetail;
            if (showingDetail) {
                mQsDetailHeaderTitle.setText(detail.getTitle());
                String title = mContext.getString(detail.getTitle());
                mQsDetailHeaderTitle.setText(title);
                announceForAccessibility(title);
                final Boolean toggleState = detail.getToggleState();
                if (toggleState == null) {
                    mQsDetailHeaderSwitch.setVisibility(INVISIBLE);