diff --git a/app/src/main/java/awais/instagrabber/fragments/settings/SettingsPreferencesFragment.java b/app/src/main/java/awais/instagrabber/fragments/settings/SettingsPreferencesFragment.java index 444c33fc..6dbbe5d5 100644 --- a/app/src/main/java/awais/instagrabber/fragments/settings/SettingsPreferencesFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/settings/SettingsPreferencesFragment.java @@ -84,15 +84,17 @@ public class SettingsPreferencesFragment extends BasePreferencesFragment { loggedInUsersPreferenceCategory.setIconSpaceReserved(false); loggedInUsersPreferenceCategory.setTitle(R.string.login_settings); loggedInUsersPreferenceCategory.addPreference(getMarkStoriesSeenPreference()); + loggedInUsersPreferenceCategory.addPreference(getMarkDMSeenPreference()); loggedInUsersPreferenceCategory.addPreference(getEnableActivityNotificationsPreference()); } - - final PreferenceCategory anonUsersPreferenceCategory = new PreferenceCategory(requireContext()); - screen.addPreference(anonUsersPreferenceCategory); - anonUsersPreferenceCategory.setIconSpaceReserved(false); - anonUsersPreferenceCategory.setTitle(R.string.anonymous_settings); - anonUsersPreferenceCategory.addPreference(getUseInstaDpPreference()); - anonUsersPreferenceCategory.addPreference(getUseStoriesIgPreference()); + else { + final PreferenceCategory anonUsersPreferenceCategory = new PreferenceCategory(requireContext()); + screen.addPreference(anonUsersPreferenceCategory); + anonUsersPreferenceCategory.setIconSpaceReserved(false); + anonUsersPreferenceCategory.setTitle(R.string.anonymous_settings); + anonUsersPreferenceCategory.addPreference(getUseInstaDpPreference()); + anonUsersPreferenceCategory.addPreference(getUseStoriesIgPreference()); + } } @@ -233,6 +235,15 @@ public class SettingsPreferencesFragment extends BasePreferencesFragment { return preference; } + private Preference getMarkDMSeenPreference() { + final SwitchPreferenceCompat preference = new SwitchPreferenceCompat(requireContext()); + preference.setKey(Constants.DM_MARK_AS_SEEN); + preference.setTitle(R.string.dm_mark_as_seen_setting); + preference.setSummary(R.string.dm_mark_as_seen_setting_summary); + preference.setIconSpaceReserved(false); + return preference; + } + private Preference getEnableActivityNotificationsPreference() { final SwitchPreferenceCompat preference = new SwitchPreferenceCompat(requireContext()); preference.setKey(Constants.CHECK_ACTIVITY); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 641cd5f1..e647a454 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -39,7 +39,7 @@ Auto-load all posts from user Mark stories as seen after viewing Story author will know you viewed it - Automatically mark DM as seen after viewing + Mark DM as seen after viewing Other members will know you viewed it Enable activity notifications Error loading profile!\nTry logging in and search again.