Browse Source

hide notification option only during preference screen creation

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 6 years ago
parent
commit
a97f46b442
1 changed files with 0 additions and 13 deletions
  1. 0 13
      src/main/java/com/owncloud/android/ui/activity/Preferences.java

+ 0 - 13
src/main/java/com/owncloud/android/ui/activity/Preferences.java

@@ -529,20 +529,7 @@ public class Preferences extends PreferenceActivity
 
         if (fShowMediaScanNotifications) {
             preferenceCategoryDetails.removePreference(mShowMediaScanNotifications);
-        } else {
-            mShowMediaScanNotifications = (SwitchPreference) findPreference(PREFERENCE_SHOW_MEDIA_SCAN_NOTIFICATIONS);
-
-            mShowMediaScanNotifications.setOnPreferenceClickListener(preference -> {
-                com.owncloud.android.db.PreferenceManager.setShowMediaScanNotifications(
-                    this,
-                    mShowMediaScanNotifications.isChecked()
-                );
-                preferenceCategoryDetails.removePreference(mShowMediaScanNotifications);
-
-                return true;
-            });
         }
-
     }
 
     private void setupHiddenFilesPreference(PreferenceCategory preferenceCategoryDetails,