优化 #5618
This commit is contained in:
Vendored
+7
@@ -100,6 +100,13 @@ cn.hutool.core.util.**{*;}
|
||||
*** mNavButtonView;
|
||||
}
|
||||
|
||||
# MenuExtensions applyOpenTint
|
||||
-keep,allowobfuscation class androidx.appcompat.view.menu.SubMenuBuilder
|
||||
-keep class androidx.appcompat.view.menu.MenuBuilder {
|
||||
*** setOptionalIconsVisible(...);
|
||||
*** getNonActionItems();
|
||||
}
|
||||
|
||||
# FileDocExtensions.kt treeDocumentFileConstructor
|
||||
-keep class androidx.documentfile.provider.TreeDocumentFile {
|
||||
<init>(...);
|
||||
|
||||
@@ -18,6 +18,7 @@ import io.legado.app.lib.theme.primaryTextColor
|
||||
import java.lang.reflect.Method
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
@Suppress("UsePropertyAccessSyntax")
|
||||
fun Menu.applyTint(context: Context, theme: Theme = Theme.Auto): Menu = this.let { menu ->
|
||||
if (menu is MenuBuilder) {
|
||||
menu.setOptionalIconsVisible(true)
|
||||
|
||||
Reference in New Issue
Block a user