Skip to content

Commit

Permalink
hide notification option only during preference screen creation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyScherzinger committed Jan 15, 2019
1 parent ef70211 commit 21d1c2d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/java/com/owncloud/android/ui/activity/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -529,20 +529,7 @@ private void setupShowMediaScanNotifications(PreferenceCategory preferenceCatego

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,
Expand Down

0 comments on commit 21d1c2d

Please sign in to comment.