1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 15:51:17 +00:00
This commit is contained in:
Catfriend1 2019-03-06 01:09:49 +01:00
parent 9ab2f280e0
commit 044404e9f0
3 changed files with 7 additions and 8 deletions

View file

@ -130,14 +130,11 @@ public class FoldersAdapter extends ArrayAdapter<Folder> {
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_blue));
break;
case "error":
binding.state.setText(
mContext.getString(
R.string.state_error) +
(!TextUtils.isEmpty(folderStatus.error)
? " (" + folderStatus.error + ")"
: ""
)
);
if (TextUtils.isEmpty(folderStatus.error)) {
binding.state.setText(mContext.getString(R.string.state_error));
} else {
binding.state.setText(mContext.getString(R.string.state_error_message, folderStatus.error));
}
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_red));
break;
case "unknown":

View file

@ -837,6 +837,7 @@ Bitte melden Sie auftretende Probleme via GitHub.</string>
<string name="state_syncing_general">Synchronisiere</string>
<string name="state_syncing">Synchronisiere (%1$d%%)</string>
<string name="state_error">Fehler</string>
<string name="state_error_message">Fehler (%1$s)</string>
<string name="state_unknown">Unbekannt</string>
<string name="state_paused">Pausiert</string>
<string name="status_outofsync">Nicht synchronisiert</string>

View file

@ -858,6 +858,7 @@ Please report any problems you encounter via Github.</string>
<string name="state_syncing_general">Syncing</string>
<string name="state_syncing">Syncing (%1$d%%)</string>
<string name="state_error">Error</string>
<string name="state_error_message">Error (%1$s)</string>
<string name="state_unknown">Unknown</string>
<string name="state_paused">Paused</string>
<string name="status_outofsync">Out of Sync</string>