From 664c48af0f1c2caa09ce6327fdfb6727686cffa7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 15 Aug 2019 22:44:40 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/constant/AppConst.kt | 7 +++++++ app/src/main/java/io/legado/app/constant/AppUtils.kt | 12 ------------ app/src/main/java/io/legado/app/constant/Status.kt | 3 +++ 3 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 app/src/main/java/io/legado/app/constant/AppUtils.kt 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