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

Commit f3f773ad authored by Joel Galenson's avatar Joel Galenson
Browse files

Allow clicking the radio button in the permission filter dialog.

This simply copies the click listener from the entire row to the radio
button.

Fixes: 129348868
Test: Open dialog, click on radio button and permission name.
Change-Id: Ieec743599121e8c3575a29886c23a812bd704329
parent ccf387d6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -845,8 +845,12 @@ public class PermissionUsageFragment extends SettingsWithLargeHeader implements
                    fragment.onPermissionGroupSelected(groupName);
                });

                ((RadioButton) itemView.requireViewById(R.id.radio_button)).setChecked(
                        i == selectedIndex);
                RadioButton radioButton = itemView.requireViewById(R.id.radio_button);
                radioButton.setChecked(i == selectedIndex);
                radioButton.setOnClickListener((v) -> {
                    dismissAllowingStateLoss();
                    fragment.onPermissionGroupSelected(groupName);
                });

                itemsListView.addView(itemView);
            }