From 5b1a8305ed1229b7a8a0676a8e1ef83c39b0f556 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Tue, 30 May 2017 23:19:08 +0200 Subject: [PATCH] hide delete button for non-custom folders --- .../android/ui/dialog/SyncedFolderPreferencesDialogFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.java b/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.java index 9c6ba35ba8..4464fee8c2 100644 --- a/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.java +++ b/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.java @@ -140,6 +140,7 @@ public class SyncedFolderPreferencesDialogFragment extends DialogFragment { if (mSyncedFolder.getType() > MediaFolder.CUSTOM) { view.findViewById(R.id.local_folder_container).setVisibility(View.GONE); + view.findViewById(R.id.delete).setVisibility(View.GONE); } // find/saves UI elements