Skip to content

Commit f7c9155

Browse files
committed
optimize some logic
1 parent 7119874 commit f7c9155

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ android {
2121
//noinspection OldTargetApi
2222
targetSdkVersion 31
2323
versionCode mVersionCode
24-
versionName "3.0.1"
24+
versionName "3.0.2"
2525

2626
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2727

app/src/main/java/me/teble/xposed/autodaily/ui/AppUpdateLayout.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fun AppUpdateLayout(dialog: CustomDialog) {
5454
) {
5555
items(updateLog.size) { index ->
5656
Text(
57-
text = "${index + 1}. " + updateLog[index],
57+
text = updateLog[index],
5858
fontSize = 18.sp,
5959
color = Color(0xFF424242),
6060
modifier = Modifier.padding(horizontal = 8.dp)

app/src/main/java/me/teble/xposed/autodaily/utils/TimeUtil.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ object TimeUtil {
4040
val uc = url.openConnection() as HttpURLConnection
4141
uc.connectTimeout = 2000
4242
uc.connect()
43-
uc.date
43+
// 避免时间误差
44+
uc.date + 500
4445
} catch (e: Exception) {
4546
LogUtil.e(e, "get network time error, will used localtime -> ${getCNTime()}:")
4647
ToastUtil.send("获取网络时间失败,将使用本地时间执行任务,可能存在误差")

0 commit comments

Comments
 (0)