diff --git a/.travis.yml b/.travis.yml
index aa62653c59..e60d26ac27 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,11 +12,21 @@ android:
- extra-android-support
- extra-google-google_play_services
+ licenses:
+ - android-sdk-license-.+
+ - '.+'
+
jdk:
- oraclejdk8
before_script:
- - chmod +x gradlew
+ - chmod +x gradlew
+
+before_install:
+ - mkdir "$ANDROID_HOME/licenses" || true
+ - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
+ - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
+
#Build, and run tests
script: "./gradlew clean buildStandardDebug"
sudo: false
diff --git a/app/build.gradle b/app/build.gradle
index 935e5e5e9c..2bc0e4b596 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -110,6 +110,8 @@ dependencies {
compile "com.android.support:support-annotations:$support_library_version"
compile "com.android.support:customtabs:$support_library_version"
+ compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
+
compile 'com.android.support:multidex:1.0.1'
// ReactiveX
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 3481942e49..2d21a2262d 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -53,6 +53,18 @@
android:label="@string/app_name"
android:theme="@style/FilePickerTheme">
+
+
+
+
+
+
+
+
-
>(element.get(CHAPTERS) ?: JsonArray())
- val sync = gson.fromJson>(element.get(MANGA_SYNC) ?: JsonArray())
+ val tracks = gson.fromJson>(element.get(TRACK) ?: JsonArray())
val categories = gson.fromJson>(element.get(CATEGORIES) ?: JsonArray())
// Restore everything related to this manga
restoreManga(manga)
restoreChaptersForManga(manga, chapters)
- restoreSyncForManga(manga, sync)
+ restoreSyncForManga(manga, tracks)
restoreCategoriesForManga(manga, categories)
}
}
@@ -333,35 +333,35 @@ class BackupManager(private val db: DatabaseHelper) {
* Restores the sync of a manga.
*
* @param manga the manga whose sync have to be restored.
- * @param sync the sync to restore.
+ * @param tracks the track list to restore.
*/
- private fun restoreSyncForManga(manga: Manga, sync: List) {
+ private fun restoreSyncForManga(manga: Manga, tracks: List