Alex

Results 16 comments of Alex

和楼上的同问,如何保证关闭界面后注册的订阅者能被回收?

07-02 20:10:28.130 E/CrashReport(26443): android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3521) 07-02 20:10:28.130 E/CrashReport(26443): ...... 07-02 20:10:28.130 E/CrashReport(26443): cause by: 07-02 20:10:28.130 E/CrashReport(26443): java.lang.NullPointerException: 07-02 20:10:28.130 E/CrashReport(26443): org.simple.eventbus.SubsciberMethodHunter.removeMethodsFromMap(SubsciberMethodHunter.java:133) 07-02 20:10:28.130 E/CrashReport(26443): org.simple.eventbus.EventBus.unregister(EventBus.java:176)

是最新的版本,是在onDestory方法里

My solution is to customize a webview container and get touch events in the container ` public boolean dispatchTouchEvent(MotionEvent ev) { int x = (int) ev.getX(); int y = (int)...

@manosKas I didn't use react-native-webview 。This library does not meet my needs,I am using the webview packaged by my own project