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

Commit fb85c52c authored by ChenJean's avatar ChenJean
Browse files

Support autoclick secondary action (5/n)

Seekbar UI show complete on all of devices.

Bug: 146019277
Test: manual
Change-Id: I18227db46ba5040082b9a4a691ad8e5233e3e269
parent 6a7b2378
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();
            });