From e6a061c090243bb0380d6a2c87ef44b5aea274dd Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Fri, 7 Jul 2017 22:05:23 +0200 Subject: [PATCH] Use a single config to define the download path There's no point in using a bool, just define the path. --- res/values/config.xml | 4 ---- res/values/strings.xml | 3 +-- src/org/lineageos/updater/misc/Utils.java | 4 +--- 3 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 res/values/config.xml diff --git a/res/values/config.xml b/res/values/config.xml deleted file mode 100644 index bf2857a..0000000 --- a/res/values/config.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - false - diff --git a/res/values/strings.xml b/res/values/strings.xml index 1e915b3..cec618d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -18,8 +18,7 @@ Updater Updater - /cache/ota_package/ - /data/ota_package/ + /data/ota_package/ https://download.lineageos.org/api Verification failed diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java index 04f7cac..0eb76e5 100644 --- a/src/org/lineageos/updater/misc/Utils.java +++ b/src/org/lineageos/updater/misc/Utils.java @@ -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) {