mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 11:21:18 +08:00
Update XSPUtils.kt
This commit is contained in:
@@ -18,4 +18,10 @@ object XSPUtils {
|
|||||||
}
|
}
|
||||||
return prefs.getInt(key, defValue)
|
return prefs.getInt(key, defValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline fun hasEnable(key: String, default: Boolean = false, crossinline block: () -> Unit) {
|
||||||
|
if (XSPUtils.getBoolean(key, default)) {
|
||||||
|
block()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user