From bad36c4809f75ebbbad6f0948ca779861d04e486 Mon Sep 17 00:00:00 2001 From: Catfriend1 Date: Sun, 26 Aug 2018 10:47:55 +0200 Subject: [PATCH] Fix override changes button not showing (fixes #38) (#39) --- .../java/com/nutomic/syncthingandroid/views/FoldersAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java b/app/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java index d85f88a9..99757a34 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java @@ -99,7 +99,7 @@ public class FoldersAdapter extends ArrayAdapter { long neededItems = folderStatus.needFiles + folderStatus.needDirectories + folderStatus.needSymlinks + folderStatus.needDeletes; boolean outOfSync = folderStatus.state.equals("idle") && neededItems > 0; - boolean overrideButtonVisible = (folder.type == Constants.FOLDER_TYPE_SEND_ONLY) && outOfSync; + boolean overrideButtonVisible = folder.type.equals(Constants.FOLDER_TYPE_SEND_ONLY) && outOfSync; binding.override.setVisibility(overrideButtonVisible ? VISIBLE : GONE); if (outOfSync) { binding.state.setText(mContext.getString(R.string.status_outofsync));