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

Commit c40e0799 authored by Alan Viverette's avatar Alan Viverette
Browse files

Added accessibility tutorial-specific class name for instructions.

Bug: 5087316
Change-Id: Ia41e9c73af189f36dd6b92b21fcbc5e9bcf408f3
parent bb33bdce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -57,7 +57,8 @@
        <View
            style="@style/AccessibilityTutorialDivider" />

        <TextView
        <view
            class="com.android.settings.AccessibilityTutorialActivity$TutorialTextView"
            android:id="@+id/instructions"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
+2 −1
Original line number Diff line number Diff line
@@ -47,7 +47,8 @@
            android:focusable="false"
            android:clickable="false" />

        <TextView
        <view
            class="com.android.settings.AccessibilityTutorialActivity$TutorialTextView"
            android:id="@+id/instructions"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
+10 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.Settings;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
@@ -655,4 +656,13 @@ public class AccessibilityTutorialActivity extends Activity {
            mFinish.setVisibility(visible ? VISIBLE : GONE);
        }
    }

    /**
     * Provides a tutorial-specific class name for fired accessibility events.
     */
    public static class TutorialTextView extends TextView {
        public TutorialTextView(Context context, AttributeSet attrs) {
            super(context, attrs);
        }
    }
}