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

Commit 4667c871 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[PM] Fix ADI A11y focus issue" into main

parents 58ab765e d2424abb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.os.Bundle;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ProgressBar;
@@ -278,6 +279,11 @@ public class InstallationFragment extends DialogFragment {
        mAppIcon.setImageDrawable(installStage.getAppIcon());
        mAppLabelTextView.setText(installStage.getAppLabel());

        // Sometimes the A11y focus is on the button E.g. ADI. We should align the other cases.
        // Request the A11y focus on the app label.
        mAppLabelTextView.post(() -> mAppLabelTextView.performAccessibilityAction(
                    AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS, null));

        int titleResId = R.string.title_install_failed_not_installed;
        String positiveButtonText = null;
        View.OnClickListener positiveButtonListener = null;