Use a single config to define the download path

There's no point in using a bool, just define the path.
This commit is contained in:
Gabriele M
2017-07-07 22:05:23 +02:00
parent 89cb51e3dd
commit e6a061c090
3 changed files with 2 additions and 9 deletions
+1 -3
View File
@@ -49,9 +49,7 @@ public class Utils {
}
public static File getDownloadPath(Context context) {
boolean useCache = context.getResources().getBoolean(R.bool.download_in_cache);
int id = useCache ? R.string.download_path_cache : R.string.download_path_data;
return new File(context.getString(id));
return new File(context.getString(R.string.download_path));
}
public static File getCachedUpdateList(Context context) {