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

Commit 2b0851c4 authored by Weng Su's avatar Weng Su
Browse files

Override Internet Dialog's TalkBack description

- Override the TalkBack description from "System UI" to "Quick Settings"

Bug: 246426091
Test: manual test
atest -c InternetDialogTest

Change-Id: Ib1f27d8f70012ed758b1bbc51f28e18916254cae
parent 306edcd6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -197,6 +197,8 @@ public class InternetDialog extends SystemUIDialog implements
        mUiEventLogger.log(InternetDialogEvent.INTERNET_DIALOG_SHOW);
        mDialogView = LayoutInflater.from(mContext).inflate(R.layout.internet_connectivity_dialog,
                null);
        mDialogView.setAccessibilityPaneTitle(
                mContext.getText(R.string.accessibility_desc_quick_settings));
        final Window window = getWindow();
        window.setContentView(mDialogView);

+6 −0
Original line number Diff line number Diff line
@@ -142,6 +142,12 @@ public class InternetDialogTest extends SysuiTestCase {
        mMockitoSession.finishMocking();
    }

    @Test
    public void createInternetDialog_setAccessibilityPaneTitleToQuickSettings() {
        assertThat(mDialogView.getAccessibilityPaneTitle())
                .isEqualTo(mContext.getText(R.string.accessibility_desc_quick_settings));
    }

    @Test
    public void hideWifiViews_WifiViewsGone() {
        mInternetDialog.hideWifiViews();