diff --git a/app/src/main/java/io/legado/app/constant/AppConst.kt b/app/src/main/java/io/legado/app/constant/AppConst.kt index bc2b8d4b3..b414786c6 100644 --- a/app/src/main/java/io/legado/app/constant/AppConst.kt +++ b/app/src/main/java/io/legado/app/constant/AppConst.kt @@ -1,5 +1,7 @@ package io.legado.app.constant +import com.google.gson.Gson +import com.google.gson.GsonBuilder import io.legado.app.App import io.legado.app.R import javax.script.ScriptEngine @@ -19,4 +21,9 @@ object AppConst { val NOT_AVAILABLE = App.INSTANCE.getString(R.string.not_available) + val GSON_CONVERTER: Gson = GsonBuilder() + .disableHtmlEscaping() + .setPrettyPrinting() + .setDateFormat("yyyy-MM-dd HH:mm:ssZ") + .create() } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/constant/AppUtils.kt b/app/src/main/java/io/legado/app/constant/AppUtils.kt deleted file mode 100644 index 4910553be..000000000 --- a/app/src/main/java/io/legado/app/constant/AppUtils.kt +++ /dev/null @@ -1,12 +0,0 @@ -package io.legado.app.constant - -import com.google.gson.Gson -import com.google.gson.GsonBuilder - -object AppUtils { - val GSON_CONVERTER: Gson = GsonBuilder() - .disableHtmlEscaping() - .setPrettyPrinting() - .setDateFormat("yyyy-MM-dd HH:mm:ssZ") - .create() -} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/constant/Status.kt b/app/src/main/java/io/legado/app/constant/Status.kt index 605b37e51..0f1bff978 100644 --- a/app/src/main/java/io/legado/app/constant/Status.kt +++ b/app/src/main/java/io/legado/app/constant/Status.kt @@ -1,5 +1,8 @@ package io.legado.app.constant object Status { + const val STOP = 0 + const val PLAY = 1 const val NEXT = 2 + } \ No newline at end of file