mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 18:55:35 +08:00
Fix allMethods hooking replace bug
This commit is contained in:
@@ -47,6 +47,10 @@ class MainActivity : AppCompatActivity() {
|
||||
appDemoFourthText.text = getRegularText(string = "Have fun day")
|
||||
appDemoFifthText.text = getDataText()
|
||||
appDemoSixthText.text = getArray(arrayOf("apple", "banana")).let { "${it[0]}, ${it[1]}" }
|
||||
appDemoSeventhText.text = Main().getTestResultFirst()
|
||||
appDemoEighthText.text = Main().getTestResultFirst(string = "Find something interesting")
|
||||
appDemoNinthText.text = Main().getTestResultLast()
|
||||
appDemoTenthText.text = Main().getTestResultLast(string = "This is the last sentence")
|
||||
appDemoButton.setOnClickListener { toast() }
|
||||
}
|
||||
}
|
||||
|
@@ -27,7 +27,15 @@
|
||||
*/
|
||||
package com.highcapable.yukihookapi.demo_app.utils
|
||||
|
||||
class Main(private val string: String) {
|
||||
class Main(private val string: String = "") {
|
||||
|
||||
fun getString() = string
|
||||
|
||||
fun getTestResultFirst() = "The world is beautiful"
|
||||
|
||||
fun getTestResultFirst(string: String) = string
|
||||
|
||||
fun getTestResultLast() = "The world is fantastic"
|
||||
|
||||
fun getTestResultLast(string: String) = string
|
||||
}
|
Reference in New Issue
Block a user