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

Commit a23c53c9 authored by Chaohui Wang's avatar Chaohui Wang
Browse files

Fix Talkback can focus on blank area

By hiding radio button frame instead of just radio button.

Fix: 347185801
Flag: EXEMPT bug fix
Test: manual - on ApnSettings
Change-Id: I7a2ba536f037a6cd014989bba1374d034169d90b
parent ffcb87da
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -85,10 +85,11 @@ public class ApnPreference extends Preference
        final RelativeLayout textArea = (RelativeLayout) view.findViewById(R.id.text_layout);
        textArea.setOnClickListener(this);

        final View radioButtonFrame = view.itemView.requireViewById(R.id.apn_radio_button_frame);
        final RadioButton rb = view.itemView.requireViewById(R.id.apn_radiobutton);
        mRadioButton = rb;
        if (mDefaultSelectable) {
            view.itemView.requireViewById(R.id.apn_radio_button_frame).setOnClickListener((v) -> {
            radioButtonFrame.setOnClickListener((v) -> {
                rb.performClick();
            });
            rb.setOnCheckedChangeListener(this);
@@ -96,9 +97,9 @@ public class ApnPreference extends Preference
            mProtectFromCheckedChange = true;
            rb.setChecked(mIsChecked);
            mProtectFromCheckedChange = false;
            rb.setVisibility(View.VISIBLE);
            radioButtonFrame.setVisibility(View.VISIBLE);
        } else {
            rb.setVisibility(View.GONE);
            radioButtonFrame.setVisibility(View.GONE);
        }
    }