mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-27 06:41:15 +00:00
Support 'unknown' folder state
This commit is contained in:
parent
2de8d391bf
commit
c2a5ecb43e
2 changed files with 3 additions and 0 deletions
|
@ -686,6 +686,8 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
|
||||||
case "scanning": return c.getString(R.string.state_scanning);
|
case "scanning": return c.getString(R.string.state_scanning);
|
||||||
case "cleaning": return c.getString(R.string.state_cleaning);
|
case "cleaning": return c.getString(R.string.state_cleaning);
|
||||||
case "syncing": return c.getString(R.string.state_syncing);
|
case "syncing": return c.getString(R.string.state_syncing);
|
||||||
|
case "unknown": // Fallthrough
|
||||||
|
case "": return c.getString(R.string.state_unknown);
|
||||||
}
|
}
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
throw new AssertionError("Unexpected folder state");
|
throw new AssertionError("Unexpected folder state");
|
||||||
|
|
|
@ -370,5 +370,6 @@ Please report any problems you encounter via Github.</string>
|
||||||
<string name="state_scanning">Scanning</string>
|
<string name="state_scanning">Scanning</string>
|
||||||
<string name="state_cleaning">Cleaning</string>
|
<string name="state_cleaning">Cleaning</string>
|
||||||
<string name="state_syncing">Syncing</string>
|
<string name="state_syncing">Syncing</string>
|
||||||
|
<string name="state_unknown">Unknown</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue