Browse Source

Suppressed Uploads in Settings

pull/61/merge
Ezerous 6 years ago
parent
commit
221ff50920
No known key found for this signature in database GPG Key ID: 262B2954BBA319E3
  1. 8
      app/src/main/java/gr/thmmy/mthmmy/activities/settings/SettingsFragment.java
  2. 4
      app/src/main/res/xml/app_preferences.xml

8
app/src/main/java/gr/thmmy/mthmmy/activities/settings/SettingsFragment.java

@ -96,8 +96,8 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Shared
findPreference(POSTING_CATEGORY).setVisible(isLoggedIn); findPreference(POSTING_CATEGORY).setVisible(isLoggedIn);
findPreference(POSTING_APP_SIGNATURE_ENABLE_KEY).setVisible(isLoggedIn); findPreference(POSTING_APP_SIGNATURE_ENABLE_KEY).setVisible(isLoggedIn);
findPreference(UPLOADING_CATEGORY).setVisible(isLoggedIn); //findPreference(UPLOADING_CATEGORY).setVisible(isLoggedIn);
findPreference(UPLOADING_APP_SIGNATURE_ENABLE_KEY).setVisible(isLoggedIn); //findPreference(UPLOADING_APP_SIGNATURE_ENABLE_KEY).setVisible(isLoggedIn);
if (!isLoggedIn && defaultHomeTabEntries.contains("Unread")) { if (!isLoggedIn && defaultHomeTabEntries.contains("Unread")) {
defaultHomeTabEntries.remove("Unread"); defaultHomeTabEntries.remove("Unread");
@ -171,8 +171,8 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Shared
findPreference(POSTING_CATEGORY).setVisible(isLoggedIn); findPreference(POSTING_CATEGORY).setVisible(isLoggedIn);
findPreference(POSTING_APP_SIGNATURE_ENABLE_KEY).setVisible(isLoggedIn); findPreference(POSTING_APP_SIGNATURE_ENABLE_KEY).setVisible(isLoggedIn);
findPreference(UPLOADING_CATEGORY).setVisible(isLoggedIn); //findPreference(UPLOADING_CATEGORY).setVisible(isLoggedIn);
findPreference(UPLOADING_APP_SIGNATURE_ENABLE_KEY).setVisible(isLoggedIn); //findPreference(UPLOADING_APP_SIGNATURE_ENABLE_KEY).setVisible(isLoggedIn);
if (!isLoggedIn && defaultHomeTabEntries.contains("Unread")) { if (!isLoggedIn && defaultHomeTabEntries.contains("Unread")) {
defaultHomeTabEntries.remove("Unread"); defaultHomeTabEntries.remove("Unread");

4
app/src/main/res/xml/app_preferences.xml

@ -38,7 +38,7 @@
android:summary="@string/pref_summary_posting_app_signature_enable" /> android:summary="@string/pref_summary_posting_app_signature_enable" />
</android.support.v7.preference.PreferenceCategory> </android.support.v7.preference.PreferenceCategory>
<android.support.v7.preference.PreferenceCategory <!--<android.support.v7.preference.PreferenceCategory
android:key="pref_category_uploading_key" android:key="pref_category_uploading_key"
android:title="@string/pref_category_uploading"> android:title="@string/pref_category_uploading">
<android.support.v7.preference.SwitchPreferenceCompat <android.support.v7.preference.SwitchPreferenceCompat
@ -46,7 +46,7 @@
android:key="pref_uploading_app_signature_enable_key" android:key="pref_uploading_app_signature_enable_key"
android:title="@string/pref_title_uploading_app_signature_enable" android:title="@string/pref_title_uploading_app_signature_enable"
android:summary="@string/pref_summary_uploading_app_signature_enable" /> android:summary="@string/pref_summary_uploading_app_signature_enable" />
</android.support.v7.preference.PreferenceCategory> </android.support.v7.preference.PreferenceCategory>-->
<android.support.v7.preference.PreferenceCategory <android.support.v7.preference.PreferenceCategory
android:key="pref_category_privacy_key" android:key="pref_category_privacy_key"

Loading…
Cancel
Save