mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
fix: demo bugs
This commit is contained in:
@@ -154,7 +154,7 @@ object HookEntry : IYukiHookXposedInit {
|
||||
}
|
||||
}
|
||||
|
||||
@LegacyResourcesHook
|
||||
@OptIn(LegacyResourcesHook::class)
|
||||
override fun onHook() {
|
||||
// Start your hook
|
||||
// Can be shortened to encase {}
|
||||
|
@@ -31,6 +31,7 @@ import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.highcapable.yukihookapi.YukiHookAPI;
|
||||
import com.highcapable.yukihookapi.hook.core.api.priority.YukiHookPriority;
|
||||
import com.highcapable.yukihookapi.hook.factory.ReflectionFactoryKt;
|
||||
import com.highcapable.yukihookapi.hook.log.YLog;
|
||||
import com.highcapable.yukihookapi.hook.xposed.bridge.event.YukiXposedEvent;
|
||||
@@ -83,7 +84,7 @@ public class HookEntry implements IYukiHookXposedInit {
|
||||
m.param(Bundle.class);
|
||||
return Unit.INSTANCE;
|
||||
});
|
||||
l.hook(result, h -> {
|
||||
l.hook(result, YukiHookPriority.DEFAULT, h -> {
|
||||
h.after(a -> {
|
||||
Activity instance = ((Activity) a.getInstance());
|
||||
instance.setTitle(instance.getTitle() + " [Active]");
|
||||
|
Reference in New Issue
Block a user