Add defaults for caption colors and edge type, fix preview size

BUG: 15116066
BUG: 8151470
Change-Id: Ieca00f0da209138bdfa691715720263ef5406773
This commit is contained in:
Alan Viverette
2014-06-05 13:51:14 -07:00
parent bf088b5f5d
commit a83a532dde
7 changed files with 46 additions and 12 deletions

View File

@@ -49,10 +49,11 @@ public class PresetPreference extends ListDialogPreference {
@Override
protected void onBindListItem(View view, int index) {
final View previewViewport = view.findViewById(R.id.preview_viewport);
final SubtitleView previewText = (SubtitleView) view.findViewById(R.id.preview);
final int value = getValueAt(index);
CaptionPropertiesFragment.applyCaptionProperties(
mCaptioningManager, previewText, value);
mCaptioningManager, previewText, previewViewport, value);
final float density = getContext().getResources().getDisplayMetrics().density;
previewText.setTextSize(DEFAULT_FONT_SIZE * density);