1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-30 08:11:17 +00:00

Support 'unknown' folder state

This commit is contained in:
Lode Hoste 2015-03-23 23:44:29 +01:00
parent 2de8d391bf
commit c2a5ecb43e
2 changed files with 3 additions and 0 deletions

View file

@ -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");

View file

@ -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>