From 05bfb5577829e38f8b5603bbf73c8b7f06a3dd2f Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Tue, 4 Feb 2020 20:58:05 +0800 Subject: [PATCH] opt --- .../module/tanlu/fragment/TanluCardViewFragment.java | 12 +++++++++--- .../main/res/drawable/small_video_seekbar_style.xml | 2 +- .../src/main/res/values-ldpi/dimens.xml | 3 +++ .../mogo-module-tanlu/src/main/res/values/dimens.xml | 3 +++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluCardViewFragment.java b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluCardViewFragment.java index 9313ea55e5..682ec808ad 100644 --- a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluCardViewFragment.java +++ b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluCardViewFragment.java @@ -451,12 +451,12 @@ public class TanluCardViewFragment extends MvpFragment> sendShareReceiver("1"); Logger.d(TAG, "mogoIntentListener 上报路况 ----> "); traceTypeData("1"); - } else if (intentStr.equals(TanluConstants.SHARE_ROAD_CLOSURE)) { //分享封路 --ok + } else if (intentStr.equals(TanluConstants.SHARE_ROAD_CLOSURE)) { //分享封路(封路了) --ok traceData("2"); sendShareReceiver("3"); Logger.d(TAG, "mogoIntentListener 分享封路 ----> "); traceTypeData("4"); - } else if (intentStr.equals(TanluConstants.SHARE_TRAFFIC_CHECK)) { //分享交通检查 --ok + } else if (intentStr.equals(TanluConstants.SHARE_TRAFFIC_CHECK)) { //分享交通检查(交通检查) --ok traceData("2"); sendShareReceiver("2"); Logger.d(TAG, "mogoIntentListener 分享交通检查 ----> "); @@ -504,8 +504,14 @@ public class TanluCardViewFragment extends MvpFragment> private IMogoVoiceCmdCallBack mogoVoiceListener = new IMogoVoiceCmdCallBack() { @Override public void onCmdSelected(String cmd) { + Log.d(TAG, "com.zhidao.tanlu.play ------->"); if (cmd.equals(TanluConstants.PLAY_VIDEO)) { //播放路况 --ok - FullMediaActivity.Companion.launch(getActivity(), mVideoUrl, mImageUrl, mTitle, mGenerateTime); +// FullMediaActivity.Companion.launch(getActivity(), mVideoUrl, mImageUrl, mTitle, mGenerateTime); + //TODO + gsyVideoOptionBuilder.setUrl(mVideoUrl).setCacheWithPlay(false).setPlayTag(TAG) + .build(simpleCoverVideoPlayer); + simpleCoverVideoPlayer.getStartButton().performClick(); + } } diff --git a/modules/mogo-module-tanlu/src/main/res/drawable/small_video_seekbar_style.xml b/modules/mogo-module-tanlu/src/main/res/drawable/small_video_seekbar_style.xml index 05611fb94a..80f30fbb27 100644 --- a/modules/mogo-module-tanlu/src/main/res/drawable/small_video_seekbar_style.xml +++ b/modules/mogo-module-tanlu/src/main/res/drawable/small_video_seekbar_style.xml @@ -15,7 +15,7 @@ - + diff --git a/modules/mogo-module-tanlu/src/main/res/values-ldpi/dimens.xml b/modules/mogo-module-tanlu/src/main/res/values-ldpi/dimens.xml index 960548fd7f..bc10b86561 100644 --- a/modules/mogo-module-tanlu/src/main/res/values-ldpi/dimens.xml +++ b/modules/mogo-module-tanlu/src/main/res/values-ldpi/dimens.xml @@ -40,6 +40,9 @@ 45px 42px + + 6px + 20px 14px diff --git a/modules/mogo-module-tanlu/src/main/res/values/dimens.xml b/modules/mogo-module-tanlu/src/main/res/values/dimens.xml index c6f46c0772..131282c5a1 100644 --- a/modules/mogo-module-tanlu/src/main/res/values/dimens.xml +++ b/modules/mogo-module-tanlu/src/main/res/values/dimens.xml @@ -41,6 +41,9 @@ 90px 80px + + 10px + 38px 26px