Fix timeout pref

This commit is contained in:
Andrew Rabert 2020-04-30 13:13:25 -04:00
parent 4fd53e74c5
commit d1f1331f35
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ public final class Util {
public static int getNetworkTimeoutMs(Context context) {
SharedPreferences prefs = getPreferences(context);
return prefs.getInt(Constants.PREFERENCES_KEY_NETWORK_TIMEOUT, 30000);
return Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_NETWORK_TIMEOUT, "30000"));
}
public static boolean isScreenLitOnDownload(Context context) {