mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 14:21:16 +00:00
parent
54daf43d6f
commit
34faf02e3c
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ public class FoldersAdapter extends ArrayAdapter<Folder> {
|
|||
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue