mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 22:50:05 +08:00
refactor: Improve Code Conformance
This commit is contained in:
parent
8f4a02ae93
commit
a82e5b4f2c
@ -262,9 +262,7 @@ fun Context.getColorAttr(@AttrRes resId: Int): Int {
|
|||||||
}.resourceId)
|
}.resourceId)
|
||||||
}
|
}
|
||||||
|
|
||||||
var isExpert: Boolean
|
val isExpert: Boolean by lazy { BuildConfig.DEBUG || DataStore.isExpert }
|
||||||
get() = BuildConfig.DEBUG || DataStore.isExpert
|
|
||||||
set(value) = TODO()
|
|
||||||
|
|
||||||
val isExpertFlavor = ((BuildConfig.FLAVOR == "expert") || BuildConfig.DEBUG)
|
val isExpertFlavor = ((BuildConfig.FLAVOR == "expert") || BuildConfig.DEBUG)
|
||||||
const val isOss = BuildConfig.FLAVOR == "oss"
|
const val isOss = BuildConfig.FLAVOR == "oss"
|
||||||
|
|||||||
@ -1,12 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
xmlns:app="http://schemas.android.com/apk/reyas-auto">
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_set_url"
|
android:id="@+id/action_set_url"
|
||||||
android:title="@string/set_panel_url"
|
android:title="@string/set_panel_url" />
|
||||||
app:showAsAction="false" />
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/close"
|
android:id="@+id/close"
|
||||||
android:title="@string/mal_close"
|
android:title="@string/mal_close" />
|
||||||
app:showAsAction="false" />
|
|
||||||
</menu>
|
</menu>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user