mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-05 18:25:28 +08:00
Update demo
This commit is contained in:
@@ -82,7 +82,7 @@ class MainActivity : ModuleAppCompatActivity() {
|
|||||||
moduleDemoButton.setOnClickListener { _ ->
|
moduleDemoButton.setOnClickListener { _ ->
|
||||||
moduleEnvironment {
|
moduleEnvironment {
|
||||||
if (it.text.toString().isNotEmpty()) {
|
if (it.text.toString().isNotEmpty()) {
|
||||||
modulePrefs.put(DataConst.TEST_KV_DATA, it.text.toString())
|
modulePrefs.edit { put(DataConst.TEST_KV_DATA, it.text.toString()) }
|
||||||
Toast.makeText(applicationContext, "Saved", Toast.LENGTH_SHORT).show()
|
Toast.makeText(applicationContext, "Saved", Toast.LENGTH_SHORT).show()
|
||||||
} else Toast.makeText(applicationContext, "Please enter the text", Toast.LENGTH_SHORT).show()
|
} else Toast.makeText(applicationContext, "Please enter the text", Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user