|
@@ -126,9 +126,6 @@ public class APIModuleGis extends UZModule {
|
|
public ModuleResult jsmethod_startCeditongIntent_sync(final UZModuleContext context){
|
|
public ModuleResult jsmethod_startCeditongIntent_sync(final UZModuleContext context){
|
|
JSONObject res = new JSONObject();
|
|
JSONObject res = new JSONObject();
|
|
try {
|
|
try {
|
|
- if (myReceiver!=null){
|
|
|
|
- this.context().unregisterReceiver(myReceiver);
|
|
|
|
- }
|
|
|
|
myReceiver=new ReceiveLocationBroadcastReceiver();
|
|
myReceiver=new ReceiveLocationBroadcastReceiver();
|
|
IntentFilter intentFilter=new IntentFilter();
|
|
IntentFilter intentFilter=new IntentFilter();
|
|
intentFilter.addAction("com.huace.landstar.api.action");
|
|
intentFilter.addAction("com.huace.landstar.api.action");
|