Skip to content

Commit a82e5b4

Browse files
committed
refactor: Improve Code Conformance
1 parent 8f4a02a commit a82e5b4

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

app/src/main/java/io/nekohasekai/sagernet/ktx/Utils.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,7 @@ fun Context.getColorAttr(@AttrRes resId: Int): Int {
262262
}.resourceId)
263263
}
264264

265-
var isExpert: Boolean
266-
get() = BuildConfig.DEBUG || DataStore.isExpert
267-
set(value) = TODO()
265+
val isExpert: Boolean by lazy { BuildConfig.DEBUG || DataStore.isExpert }
268266

269267
val isExpertFlavor = ((BuildConfig.FLAVOR == "expert") || BuildConfig.DEBUG)
270268
const val isOss = BuildConfig.FLAVOR == "oss"
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<menu xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:app="http://schemas.android.com/apk/reyas-auto">
2+
<menu xmlns:android="http://schemas.android.com/apk/res/android">
43
<item
54
android:id="@+id/action_set_url"
6-
android:title="@string/set_panel_url"
7-
app:showAsAction="false" />
5+
android:title="@string/set_panel_url" />
86
<item
97
android:id="@+id/close"
10-
android:title="@string/mal_close"
11-
app:showAsAction="false" />
8+
android:title="@string/mal_close" />
129
</menu>

0 commit comments

Comments
 (0)