mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-01 16:51:16 +00:00
* res/colors: Add text_orange * strings: Add state_unshared * Imported de translation * Add "folder is unshared" status label (fixes #347)
This commit is contained in:
parent
ce213b9c9e
commit
9ab2f280e0
4 changed files with 11 additions and 2 deletions
|
@ -105,8 +105,14 @@ public class FoldersAdapter extends ArrayAdapter<Folder> {
|
||||||
} else {
|
} else {
|
||||||
switch(folderStatus.state) {
|
switch(folderStatus.state) {
|
||||||
case "idle":
|
case "idle":
|
||||||
binding.state.setText(mContext.getString(R.string.state_idle));
|
if (folder.getDeviceCount() <= 1) {
|
||||||
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_green));
|
// Special case: The folder is IDLE and UNSHARED.
|
||||||
|
binding.state.setText(mContext.getString(R.string.state_unshared));
|
||||||
|
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_orange));
|
||||||
|
} else {
|
||||||
|
binding.state.setText(mContext.getString(R.string.state_idle));
|
||||||
|
binding.state.setTextColor(ContextCompat.getColor(mContext, R.color.text_green));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "scanning":
|
case "scanning":
|
||||||
binding.state.setText(mContext.getString(R.string.state_scanning));
|
binding.state.setText(mContext.getString(R.string.state_scanning));
|
||||||
|
|
|
@ -840,6 +840,7 @@ Bitte melden Sie auftretende Probleme via GitHub.</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>
|
||||||
|
<string name="state_unshared">Ungeteilt</string>
|
||||||
|
|
||||||
<!-- Format string for folder size, eg "500 MiB / 1 GiB" -->
|
<!-- Format string for folder size, eg "500 MiB / 1 GiB" -->
|
||||||
<string name="folder_size_format">%1$s / %2$s</string>
|
<string name="folder_size_format">%1$s / %2$s</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<color name="text_red">#ffff4444</color>
|
<color name="text_red">#ffff4444</color>
|
||||||
<color name="text_blue">#ff33b5e5</color>
|
<color name="text_blue">#ff33b5e5</color>
|
||||||
<color name="text_green">#ff99cc00</color>
|
<color name="text_green">#ff99cc00</color>
|
||||||
|
<color name="text_orange">#f57c00</color>
|
||||||
<color name="light_grey">#cccccc</color>
|
<color name="light_grey">#cccccc</color>
|
||||||
|
|
||||||
<!-- FirstStartActivity welcome wizard start -->
|
<!-- FirstStartActivity welcome wizard start -->
|
||||||
|
|
|
@ -861,6 +861,7 @@ Please report any problems you encounter via Github.</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>
|
||||||
|
<string name="state_unshared">Unshared</string>
|
||||||
|
|
||||||
<!-- Format string for folder size, eg "500 MiB / 1 GiB" -->
|
<!-- Format string for folder size, eg "500 MiB / 1 GiB" -->
|
||||||
<string name="folder_size_format">%1$s / %2$s</string>
|
<string name="folder_size_format">%1$s / %2$s</string>
|
||||||
|
|
Loading…
Reference in a new issue