mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-02 01:01:17 +00:00
parent
a9ad589a95
commit
bad36c4809
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;
|
long neededItems = folderStatus.needFiles + folderStatus.needDirectories + folderStatus.needSymlinks + folderStatus.needDeletes;
|
||||||
boolean outOfSync = folderStatus.state.equals("idle") && neededItems > 0;
|
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);
|
binding.override.setVisibility(overrideButtonVisible ? VISIBLE : GONE);
|
||||||
if (outOfSync) {
|
if (outOfSync) {
|
||||||
binding.state.setText(mContext.getString(R.string.status_outofsync));
|
binding.state.setText(mContext.getString(R.string.status_outofsync));
|
||||||
|
|
Loading…
Reference in a new issue