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

Commit e9f289d5 authored by Jean Chen's avatar Jean Chen Committed by Android (Google) Code Review
Browse files

Merge "Support autoclick secondary action (5/n)"

parents c4a22947 fb85c52c
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -31,12 +31,12 @@
        android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView" />

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical">

        <ImageView
            android:id="@+id/smaller"
            android:id="@+id/shorter"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:background="?android:attr/selectableItemBackgroundBorderless"
@@ -49,12 +49,13 @@

        <SeekBar
            android:id="@+id/autoclick_delay"
            android:layout_width="260dp"
            android:layout_width="0dp"
            android:layout_height="48dp"
            android:layout_weight="1"
            android:contentDescription="@string/accessibility_autoclick_seekbar_desc" />

        <ImageView
            android:id="@+id/larger"
            android:id="@+id/longer"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:background="?android:attr/selectableItemBackgroundBorderless"
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@
        android:key="autoclick_custom_seekbar"
        android:layout="@layout/accessibility_autoclick_custom_seekbar"
        android:selectable="false"
        android:visibility="gone"
        settings:allowDividerBelow="true"
        settings:controller="com.android.settings.accessibility.ToggleAutoclickCustomSeekbarController" />

+2 −2
Original line number Diff line number Diff line
@@ -138,12 +138,12 @@ public class ToggleAutoclickCustomSeekbarController extends BasePreferenceContro
            mDelayLabel = preference.findViewById(R.id.current_label);
            mDelayLabel.setText(delayTimeToString(delayMillis));

            mShorter = preference.findViewById(R.id.smaller);
            mShorter = preference.findViewById(R.id.shorter);
            mShorter.setOnClickListener(v -> {
                minusDelayByImageView();
            });

            mLonger = preference.findViewById(R.id.larger);
            mLonger = preference.findViewById(R.id.longer);
            mLonger.setOnClickListener(v -> {
                plusDelayByImageView();
            });