diff --git a/foudations/mogo-commons/src/main/java/com/mogo/commons/mvp/MvpFragment.java b/foudations/mogo-commons/src/main/java/com/mogo/commons/mvp/MvpFragment.java index be7f2bac04..0e788e140a 100644 --- a/foudations/mogo-commons/src/main/java/com/mogo/commons/mvp/MvpFragment.java +++ b/foudations/mogo-commons/src/main/java/com/mogo/commons/mvp/MvpFragment.java @@ -83,6 +83,10 @@ public abstract class MvpFragment> exten @NonNull protected abstract P createPresenter(); + public P getPresenter() { + return mPresenter; + } + @Nullable protected T findViewById(int id) { if (mRootView == null) { diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XEventPanelFragment.kt b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XEventPanelFragment.kt index ff0cfbf53c..016d087b53 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XEventPanelFragment.kt +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XEventPanelFragment.kt @@ -29,12 +29,16 @@ class V2XEventPanelFragment : MvpFragment? = null private var mediator: TabLayoutMediator? = null private var mV2XEventPanelHistoryCountView: V2XEventPanelHistoryCountView? = null + private val mV2XScenarioHistoryFragment = V2XScenarioHistoryFragment() + companion object { private val fragment = V2XEventPanelFragment() fun getInstance(): V2XEventPanelFragment { @@ -86,7 +90,7 @@ class V2XEventPanelFragment : MvpFragment - + android:layout_height="match_parent" + android:background="#10121E" + android:clickable="true" + android:paddingStart="@dimen/dp_30" + android:paddingEnd="@dimen/dp_30" + android:visibility="gone" + app:roundLayoutRadius="@dimen/dp_40" + tools:visibility="visible"> - + android:layout_height="@dimen/dp_154" + android:gravity="center_vertical" + android:orientation="horizontal"> - + - + - + - + - + + - - + - + - - - - - \ No newline at end of file +