From f411ef7cce54ac4a0e71dc268f2fc49555b62193 Mon Sep 17 00:00:00 2001 From: ALin Date: Sat, 27 Aug 2022 20:12:19 -0700 Subject: [PATCH] fix: using SimpleDateFormat from java.text instead of android.icu.text to be compatible with api less than 24 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 项目设置里最低api要求为21,但android.icu.text.SimpleDateFormat要求最低api24,更换为了java.text.SimpleDateFormat来支持21~23版本API --- app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt b/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt index f323789a6..3984fbdda 100644 --- a/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt +++ b/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt @@ -1,7 +1,7 @@ package io.legado.app.ui.about +import java.text.SimpleDateFormat import android.content.Context -import android.icu.text.SimpleDateFormat import android.os.Bundle import android.view.Menu import android.view.MenuItem