Update caption preferences to use SubtitleView

Change-Id: I02230669c5e7be36006e04bb7110446265f122d9
This commit is contained in:
Alan Viverette
2013-08-21 13:58:07 -07:00
parent 821496bf4a
commit e873aeb3a6
6 changed files with 11 additions and 379 deletions

View File

@@ -22,6 +22,7 @@ import android.view.View;
import android.view.accessibility.CaptioningManager.CaptionStyle;
import android.widget.TextView;
import com.android.internal.widget.SubtitleView;
import com.android.settings.R;
public class PresetPreference extends ListDialogPreference {
@@ -40,8 +41,7 @@ public class PresetPreference extends ListDialogPreference {
@Override
protected void onBindListItem(View view, int index) {
final CaptioningTextView previewText = (CaptioningTextView) view.findViewById(
R.id.preview);
final SubtitleView previewText = (SubtitleView) view.findViewById(R.id.preview);
final int value = getValueAt(index);
ToggleCaptioningPreferenceFragment.applyCaptionProperties(previewText, value);