Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 1923b83

Browse files
committed
Compat fix & optimize
1 parent 49a8ccb commit 1923b83

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/desugar-rules.pro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
-keepclassmembers class ** { *; }
1+
# 此文件用于L8 Desugar Shrinking
2+
# 包含整个Desugar Library, 以防止加载desugar的插件时已被加载的desugar class缺少方法
3+
4+
-keep class * { *; }
5+
-dontobfuscate

app/src/main/java/io/github/mzdluo123/mirai/android/ui/console/ConsoleFragment.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ class ConsoleFragment : Fragment() {
184184
} else {
185185
Toast.makeText(context, "您已授权忽略电池优化", Toast.LENGTH_SHORT).show()
186186
}
187+
} else {
188+
Toast.makeText(context, "你的设备无需执行此操作", Toast.LENGTH_SHORT).show()
187189
}
188190
}
189191

0 commit comments

Comments
 (0)