summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2017-04-26 04:06:45 +0900
committervolzhs <volzhs@gmail.com>2017-04-26 04:06:45 +0900
commit889ce29fc248f5d9aea5dc0adc6b08418f778655 (patch)
treec428e1cc607f3744d4cfabdf7746bb662159132d /platform/android
parentb6e0eaf3ca74d9777c6869d8519db6264866d1e6 (diff)
Fix error or download again if use obb for Android
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/java/src/com/google/android/vending/expansion/downloader/Helpers.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/android/java/src/com/google/android/vending/expansion/downloader/Helpers.java b/platform/android/java/src/com/google/android/vending/expansion/downloader/Helpers.java
index ae3fe957cb..fb56f917be 100644
--- a/platform/android/java/src/com/google/android/vending/expansion/downloader/Helpers.java
+++ b/platform/android/java/src/com/google/android/vending/expansion/downloader/Helpers.java
@@ -221,7 +221,11 @@ public class Helpers {
static public String getSaveFilePath(Context c) {
File root = Environment.getExternalStorageDirectory();
- String path = Build.VERSION.SDK_INT >= 23 ? Constants.EXP_PATH_API23 : Constants.EXP_PATH;
+ // this makes several issues with Android SDK >= 23 devices.
+ // https://github.com/danikula/Google-Play-Expansion-File/commit/93a03bd34acad67c6ea34cfb6c3f02c93bdcea85
+ // https://issuetracker.google.com/issues/37075181
+ //String path = Build.VERSION.SDK_INT >= 23 ? Constants.EXP_PATH_API23 : Constants.EXP_PATH;
+ String path = Constants.EXP_PATH;
return root.toString() + path + c.getPackageName();
}