diff --git a/app/build.gradle b/app/build.gradle index e5fb768ae1..3b6a6e5fc7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,8 +17,8 @@ android { defaultConfig { minSdkVersion deps.android.build.minSdkVersion targetSdkVersion deps.android.build.targetSdkVersion - versionCode 3000 - versionName "3.0.0" + versionCode 3001 + versionName "3.0.0-p1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true } diff --git a/app/src/main/java/com/quran/labs/androidquran/common/QariItem.kt b/app/src/main/java/com/quran/labs/androidquran/common/QariItem.kt index 39d5d2c85a..853226ba2e 100644 --- a/app/src/main/java/com/quran/labs/androidquran/common/QariItem.kt +++ b/app/src/main/java/com/quran/labs/androidquran/common/QariItem.kt @@ -1,6 +1,7 @@ package com.quran.labs.androidquran.common import android.os.Parcelable +import kotlinx.android.parcel.IgnoredOnParcel import kotlinx.android.parcel.Parcelize @Parcelize @@ -9,9 +10,11 @@ data class QariItem( val name: String, val url: String, val path: String, - val databaseName: String? = null + val db: String? = null ) : Parcelable { + @IgnoredOnParcel + val databaseName = if (db.isNullOrEmpty()) null else db val isGapless: Boolean - get() = !databaseName.isNullOrEmpty() + get() = databaseName != null }