|
@ -18,7 +18,6 @@ public class PostPreferencesFragment extends BasePreferencesFragment { |
|
|
// generalCategory.addPreference(getAutoPlayVideosPreference(context)); |
|
|
// generalCategory.addPreference(getAutoPlayVideosPreference(context)); |
|
|
screen.addPreference(getBackgroundPlayPreference(context)); |
|
|
screen.addPreference(getBackgroundPlayPreference(context)); |
|
|
screen.addPreference(getAlwaysMuteVideosPreference(context)); |
|
|
screen.addPreference(getAlwaysMuteVideosPreference(context)); |
|
|
screen.addPreference(getShowCaptionPreference(context)); |
|
|
|
|
|
screen.addPreference(getToggleKeywordFilterPreference(context)); |
|
|
screen.addPreference(getToggleKeywordFilterPreference(context)); |
|
|
screen.addPreference(getEditKeywordFilterPreference(context)); |
|
|
screen.addPreference(getEditKeywordFilterPreference(context)); |
|
|
} |
|
|
} |
|
@ -48,15 +47,6 @@ public class PostPreferencesFragment extends BasePreferencesFragment { |
|
|
return preference; |
|
|
return preference; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private Preference getShowCaptionPreference(@NonNull final Context context) { |
|
|
|
|
|
final SwitchPreferenceCompat preference = new SwitchPreferenceCompat(context); |
|
|
|
|
|
preference.setKey(PreferenceKeys.SHOW_CAPTIONS); |
|
|
|
|
|
preference.setDefaultValue(true); |
|
|
|
|
|
preference.setTitle(R.string.post_viewer_show_captions); |
|
|
|
|
|
preference.setIconSpaceReserved(false); |
|
|
|
|
|
return preference; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Preference getToggleKeywordFilterPreference(@NonNull final Context context) { |
|
|
private Preference getToggleKeywordFilterPreference(@NonNull final Context context) { |
|
|
final SwitchPreferenceCompat preference = new SwitchPreferenceCompat(context); |
|
|
final SwitchPreferenceCompat preference = new SwitchPreferenceCompat(context); |
|
|
preference.setKey(PreferenceKeys.TOGGLE_KEYWORD_FILTER); |
|
|
preference.setKey(PreferenceKeys.TOGGLE_KEYWORD_FILTER); |
|
|