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

Commit bda73ed2 authored by Jason Hsu's avatar Jason Hsu Committed by Android (Google) Code Review
Browse files

Merge "Accessibility shortcut secondary action - auto hide divider in shortcutPreference"

parents d889dec4 a2cf6a13
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@
    </LinearLayout>

    <View
        android:id="@+id/divider"
        android:layout_width="1dp"
        android:layout_height="match_parent"
        android:layout_marginTop="16dp"
+3 −1
Original line number Diff line number Diff line
@@ -73,9 +73,11 @@ public class ShortcutPreference extends Preference {
        }

        final View settings = holder.itemView.findViewById(android.R.id.widget_frame);
        if (settings != null) {
        final View divider = holder.itemView.findViewById(R.id.divider);
        if (settings != null && divider != null) {
            settings.setOnClickListener(view -> callOnSettingsClicked());
            settings.setVisibility(mSettingsVisibility);
            divider.setVisibility(mSettingsVisibility);
        }
    }