diff --git a/app/src/main/java/io/nekohasekai/sagernet/ktx/Utils.kt b/app/src/main/java/io/nekohasekai/sagernet/ktx/Utils.kt index 8da7388a..513a7f32 100644 --- a/app/src/main/java/io/nekohasekai/sagernet/ktx/Utils.kt +++ b/app/src/main/java/io/nekohasekai/sagernet/ktx/Utils.kt @@ -262,9 +262,7 @@ fun Context.getColorAttr(@AttrRes resId: Int): Int { }.resourceId) } -var isExpert: Boolean - get() = BuildConfig.DEBUG || DataStore.isExpert - set(value) = TODO() +val isExpert: Boolean by lazy { BuildConfig.DEBUG || DataStore.isExpert } val isExpertFlavor = ((BuildConfig.FLAVOR == "expert") || BuildConfig.DEBUG) const val isOss = BuildConfig.FLAVOR == "oss" diff --git a/app/src/main/res/menu/yacd_menu.xml b/app/src/main/res/menu/yacd_menu.xml index ba1b1fd0..c60ceb60 100644 --- a/app/src/main/res/menu/yacd_menu.xml +++ b/app/src/main/res/menu/yacd_menu.xml @@ -1,12 +1,9 @@ - + + android:title="@string/set_panel_url" /> + android:title="@string/mal_close" />