Skip to content

Commit

Permalink
refactor: Improve Code Conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
purofle committed Oct 31, 2023
1 parent 8f4a02a commit a82e5b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions app/src/main/java/io/nekohasekai/sagernet/ktx/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 3 additions & 6 deletions app/src/main/res/menu/yacd_menu.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/reyas-auto">
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/action_set_url"
android:title="@string/set_panel_url"
app:showAsAction="false" />
android:title="@string/set_panel_url" />
<item
android:id="@+id/close"
android:title="@string/mal_close"
app:showAsAction="false" />
android:title="@string/mal_close" />
</menu>

0 comments on commit a82e5b4

Please sign in to comment.