Browse Source

codacy: use local variable

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

+ 1 - 2
src/main/java/com/owncloud/android/ui/activity/Preferences.java

@@ -115,7 +115,6 @@ public class Preferences extends PreferenceActivity
 
     private ListPreference mLock;
     private SwitchPreference mShowHiddenFiles;
-    private SwitchPreference mShowMediaScanNotifications;
     private AppCompatDelegate mDelegate;
 
     private ListPreference mPrefStoragePath;
@@ -525,7 +524,7 @@ public class Preferences extends PreferenceActivity
 
     private void setupShowMediaScanNotifications(PreferenceCategory preferenceCategoryDetails,
                                                  boolean fShowMediaScanNotifications) {
-        mShowMediaScanNotifications = (SwitchPreference) findPreference(PREFERENCE_SHOW_MEDIA_SCAN_NOTIFICATIONS);
+        SwitchPreference mShowMediaScanNotifications = (SwitchPreference) findPreference(PREFERENCE_SHOW_MEDIA_SCAN_NOTIFICATIONS);
 
         if (fShowMediaScanNotifications) {
             preferenceCategoryDetails.removePreference(mShowMediaScanNotifications);