Merge "Fix scanning settings link clickability in Talkback mode." into oc-dev am: 2ba8f10717

am: 638a864cd5

Change-Id: I3a58f97a7a43902b90af33c265f079c756eead51
This commit is contained in:
Sundeep Ghuman
2017-04-20 01:16:57 +00:00
committed by android-build-merger
2 changed files with 77 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ import android.support.annotation.Nullable;
import android.support.v7.preference.Preference;
import android.support.v7.preference.PreferenceViewHolder;
import android.text.Spannable;
import android.text.method.LinkMovementMethod;
import android.text.style.TextAppearanceSpan;
import android.util.AttributeSet;
import android.widget.TextView;
@@ -81,6 +82,7 @@ public class LinkablePreference extends Preference {
mContentTitle.length(),
Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
textView.setText(boldSpan);
textView.setMovementMethod(new LinkMovementMethod());
}
}