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

Commit 8940b461 authored by Wesley.CW Wang's avatar Wesley.CW Wang Committed by Automerger Merge Worker
Browse files

Fix TB no response after double-tap style options am: 05dd90d6

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/12053076

Change-Id: I1604983474c5f5e2daead69081f2af3153fb8729
parents a822e1d0 05dd90d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -320,6 +320,7 @@ public class OptionSelectorController<T extends CustomizationOption<T>> {


            CharSequence cd = context.getString(id, title);
            CharSequence cd = context.getString(id, title);
            if (labelView != null && !TextUtils.isEmpty(labelView.getText())) {
            if (labelView != null && !TextUtils.isEmpty(labelView.getText())) {
                labelView.setAccessibilityPaneTitle(cd);
                labelView.setContentDescription(cd);
                labelView.setContentDescription(cd);
            } else if (tileView != null) {
            } else if (tileView != null) {
                tileView.setAccessibilityPaneTitle(cd);
                tileView.setAccessibilityPaneTitle(cd);
@@ -329,6 +330,7 @@ public class OptionSelectorController<T extends CustomizationOption<T>> {


        public void resetContentDescription() {
        public void resetContentDescription() {
            if (labelView != null && !TextUtils.isEmpty(labelView.getText())) {
            if (labelView != null && !TextUtils.isEmpty(labelView.getText())) {
                labelView.setAccessibilityPaneTitle(title);
                labelView.setContentDescription(title);
                labelView.setContentDescription(title);
            } else if (tileView != null) {
            } else if (tileView != null) {
                tileView.setAccessibilityPaneTitle(title);
                tileView.setAccessibilityPaneTitle(title);