mirror of
				https://github.com/KokaKiwi/BarInsta
				synced 2025-10-30 19:15:35 +00:00 
			
		
		
		
	remove SHOW_CAPTION setting
This commit is contained in:
		
							parent
							
								
									cdeedc3784
								
							
						
					
					
						commit
						cade09aceb
					
				| @ -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); | ||||||
|  | |||||||
| @ -32,7 +32,7 @@ object PreferenceKeys { | |||||||
|     const val PLAY_IN_BACKGROUND = "play_in_background" |     const val PLAY_IN_BACKGROUND = "play_in_background" | ||||||
|     const val AUTOPLAY_VIDEOS_STORIES = "autoplay_videos" |     const val AUTOPLAY_VIDEOS_STORIES = "autoplay_videos" | ||||||
|     const val MUTED_VIDEOS = "muted_videos" |     const val MUTED_VIDEOS = "muted_videos" | ||||||
|     const val SHOW_CAPTIONS = "show_captions" | //    const val SHOW_CAPTIONS = "show_captions" | ||||||
|     const val CUSTOM_DATE_TIME_FORMAT_ENABLED = "data_time_custom_enabled" |     const val CUSTOM_DATE_TIME_FORMAT_ENABLED = "data_time_custom_enabled" | ||||||
|     const val SWAP_DATE_TIME_FORMAT_ENABLED = "swap_date_time_enabled" |     const val SWAP_DATE_TIME_FORMAT_ENABLED = "swap_date_time_enabled" | ||||||
|     const val MARK_AS_SEEN = "mark_as_seen" |     const val MARK_AS_SEEN = "mark_as_seen" | ||||||
|  | |||||||
| @ -119,7 +119,7 @@ class SettingsHelper(context: Context) { | |||||||
|         PreferenceKeys.DOWNLOAD_PREPEND_USER_NAME, |         PreferenceKeys.DOWNLOAD_PREPEND_USER_NAME, | ||||||
|         PreferenceKeys.AUTOPLAY_VIDEOS_STORIES, |         PreferenceKeys.AUTOPLAY_VIDEOS_STORIES, | ||||||
|         PreferenceKeys.MUTED_VIDEOS, |         PreferenceKeys.MUTED_VIDEOS, | ||||||
|         PreferenceKeys.SHOW_CAPTIONS, | //        PreferenceKeys.SHOW_CAPTIONS, | ||||||
|         PreferenceKeys.CUSTOM_DATE_TIME_FORMAT_ENABLED, |         PreferenceKeys.CUSTOM_DATE_TIME_FORMAT_ENABLED, | ||||||
|         PreferenceKeys.MARK_AS_SEEN, |         PreferenceKeys.MARK_AS_SEEN, | ||||||
|         PreferenceKeys.DM_MARK_AS_SEEN, |         PreferenceKeys.DM_MARK_AS_SEEN, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user