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

Commit 04fe3260 authored by ChenJean's avatar ChenJean
Browse files

Support caption second UI structure (4/n)

Always show preview text on windows.

Bug: 143502915
Test: manual
Change-Id: I65b48373905fc59a664c51500613f1dc509b5c8f
parent fb85c52c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -122,10 +122,6 @@ public class CaptionAppearanceFragment extends SettingsPreferenceFragment
        refreshPreviewText();
    }

    private void refreshPreferenceViewEnabled(boolean enabled) {
        mPreviewText.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE);
    }

    private void refreshPreviewText() {
        final Context context = getActivity();
        if (context == null) {
@@ -217,8 +213,6 @@ public class CaptionAppearanceFragment extends SettingsPreferenceFragment
        mPreferenceList.add(mFontSize);
        mPreferenceList.add(mPreset);

        refreshPreferenceViewEnabled(mCaptioningManager.isEnabled());

        mCustom = (PreferenceCategory) findPreference(PREF_CUSTOM);
        mShowingCustom = true;