opt
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.mogo.map.impl.amap.hook;
|
||||
|
||||
import com.amap.api.maps.AMap;
|
||||
import com.autonavi.amap.mapcore.interfaces.IAMap;
|
||||
import com.autonavi.base.amap.api.mapcore.IAMapDelegate;
|
||||
import com.autonavi.base.amap.mapcore.interfaces.IAMapListener;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
@@ -33,7 +34,12 @@ public class BnHooker implements InvocationHandler {
|
||||
host = field.get( map );
|
||||
Object object = Proxy.newProxyInstance(
|
||||
BnHooker.class.getClassLoader(),
|
||||
new Class[]{com.amap.api.col.n3.ft.a.class, IAMapDelegate.class, IAMapListener.class},
|
||||
new Class[]{
|
||||
com.amap.api.col.n3.ft.a.class,
|
||||
IAMapDelegate.class,
|
||||
IAMapListener.class,
|
||||
IAMap.class
|
||||
},
|
||||
this
|
||||
);
|
||||
field.set( map, object );
|
||||
@@ -45,7 +51,7 @@ public class BnHooker implements InvocationHandler {
|
||||
return method.invoke( host, 10 );
|
||||
}
|
||||
if ( method.getName().equals( "drawFrame" ) ) {
|
||||
Logger.d(TAG, "drawFrame");
|
||||
Logger.d( TAG, "drawFrame" );
|
||||
}
|
||||
return method.invoke( host, args );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user