From cc5313d64dc3a53bf094e6b2406c2ce8699f07f5 Mon Sep 17 00:00:00 2001 From: wangcongtao Date: Mon, 1 Mar 2021 14:45:41 +0800 Subject: [PATCH] add mock intent --- .../module/service/intent/MockIntentHandler.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/intent/MockIntentHandler.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/intent/MockIntentHandler.java index 0cdd291e14..479fadaf8a 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/intent/MockIntentHandler.java +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/intent/MockIntentHandler.java @@ -5,6 +5,8 @@ import android.content.Intent; import android.graphics.BitmapFactory; import android.graphics.Color; import android.net.Uri; +import android.os.Handler; +import android.os.Message; import android.text.TextUtils; import android.view.View; import android.widget.TextView; @@ -570,4 +572,15 @@ public class MockIntentHandler implements IntentHandler { } } + private Handler mLocationMockHandler = new Handler(WorkThreadHandler.newInstance( "loc-mock-thread" ).getLooper()){ + @Override + public void handleMessage( Message msg ) { + super.handleMessage( msg ); + } + }; + + private void handleMockLocationIntent(){ + + } + }