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

Commit e6fecb2e authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Added accessibility tutorial-specific class name for instructions."

parents 87deb741 c40e0799
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;
@@ -661,4 +662,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);
        }
    }
}