mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-01 16:51:16 +00:00
Fix lint
This commit is contained in:
parent
9ab2f280e0
commit
044404e9f0
3 changed files with 7 additions and 8 deletions
|
@ -130,14 +130,11 @@ public class FoldersAdapter extends ArrayAdapter<Folder> {
|
||||||
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_blue));
|
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_blue));
|
||||||
break;
|
break;
|
||||||
case "error":
|
case "error":
|
||||||
binding.state.setText(
|
if (TextUtils.isEmpty(folderStatus.error)) {
|
||||||
mContext.getString(
|
binding.state.setText(mContext.getString(R.string.state_error));
|
||||||
R.string.state_error) +
|
} else {
|
||||||
(!TextUtils.isEmpty(folderStatus.error)
|
binding.state.setText(mContext.getString(R.string.state_error_message, folderStatus.error));
|
||||||
? " (" + folderStatus.error + ")"
|
}
|
||||||
: ""
|
|
||||||
)
|
|
||||||
);
|
|
||||||
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_red));
|
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_red));
|
||||||
break;
|
break;
|
||||||
case "unknown":
|
case "unknown":
|
||||||
|
|
|
@ -837,6 +837,7 @@ Bitte melden Sie auftretende Probleme via GitHub.</string>
|
||||||
<string name="state_syncing_general">Synchronisiere</string>
|
<string name="state_syncing_general">Synchronisiere</string>
|
||||||
<string name="state_syncing">Synchronisiere (%1$d%%)</string>
|
<string name="state_syncing">Synchronisiere (%1$d%%)</string>
|
||||||
<string name="state_error">Fehler</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_unknown">Unbekannt</string>
|
||||||
<string name="state_paused">Pausiert</string>
|
<string name="state_paused">Pausiert</string>
|
||||||
<string name="status_outofsync">Nicht synchronisiert</string>
|
<string name="status_outofsync">Nicht synchronisiert</string>
|
||||||
|
|
|
@ -858,6 +858,7 @@ Please report any problems you encounter via Github.</string>
|
||||||
<string name="state_syncing_general">Syncing</string>
|
<string name="state_syncing_general">Syncing</string>
|
||||||
<string name="state_syncing">Syncing (%1$d%%)</string>
|
<string name="state_syncing">Syncing (%1$d%%)</string>
|
||||||
<string name="state_error">Error</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_unknown">Unknown</string>
|
||||||
<string name="state_paused">Paused</string>
|
<string name="state_paused">Paused</string>
|
||||||
<string name="status_outofsync">Out of Sync</string>
|
<string name="status_outofsync">Out of Sync</string>
|
||||||
|
|
Loading…
Reference in a new issue