Commit e69baab0 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 04862c7d
......@@ -70,9 +70,9 @@ class SplashActivity : BaseActivity() {
}
private fun initData() {
if(!TextUtils.isEmpty(UserManager.getInstance().userID)){
TrackManager.getInstance().firstShowVedio()
}
// if(!TextUtils.isEmpty(UserManager.getInstance().userID)){
// TrackManager.getInstance().firstShowVedio()
// }
val firstSplash = get().getBoolean(Constant.FIRST_SPLASH, true)
if (!firstSplash) {
......
......@@ -99,11 +99,12 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
// homePresenter.getSoltVedio()
// }
if (UserManager.getInstance().newFlag && !UserManager.getInstance().vipFlag) {
val bundle = Bundle()
bundle.putBoolean(VipActivity.IS_MAIN, true)
readyGo(VipActivity::class.java, bundle)
}
// if (UserManager.getInstance().newFlag && !UserManager.getInstance().vipFlag) {
// val bundle = Bundle()
// bundle.putBoolean(VipActivity.IS_MAIN, true)
// readyGo(VipActivity::class.java, bundle)
// }
homePresenter.getSoltVedio()
}
override fun onDestroy() {
......@@ -134,7 +135,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
homePresenter.topTabs()
homePresenter.orders()
TrackManager.getInstance().getMyInfo()
showRecommendAct()
// showRecommendAct()
}
}
}
......@@ -335,7 +336,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
LocalVedioManager.startVedioDetailActivityForType(requireActivity(), data.vedioMsg)
} else {
if (UserManager.getInstance().newFlag && !UserManager.getInstance().vipFlag) {
homePresenter.getRecommendVedio()
// homePresenter.getRecommendVedio()
val bundle = Bundle()
bundle.putBoolean(VipActivity.IS_MAIN, true)
......
......@@ -126,7 +126,7 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
fm_bottom.visibility = View.VISIBLE
val readIndex = getRealIndex(it)
showVipCountDialog(readIndex)
// showVipCountDialog(readIndex)
localShowLucky(readIndex)
// videoIndex -> seeIndex
......
......@@ -115,7 +115,7 @@
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:gravity="center"
android:text="Copyright © 2020 Inc."
android:text="津ICP备2023001076号-3A\n\nCopyright © 2024 Inc."
android:textColor="#454A69"
android:textSize="12sp" />
</LinearLayout>
......
......@@ -51,6 +51,15 @@
android:gravity="center"
android:text="试看已结束" />
<Button
android:id="@+id/vip"
android:layout_width="230dp"
android:layout_height="40dp"
android:layout_marginBottom="10dp"
android:background="@mipmap/bg_detail_bottom"
android:textColor="@color/white"
android:visibility="gone" />
<Button
android:id="@+id/unlock"
android:layout_width="230dp"
......@@ -61,14 +70,7 @@
android:text="看广告解锁1集"
android:textColor="@color/white" />
<Button
android:id="@+id/vip"
android:layout_width="230dp"
android:layout_height="40dp"
android:layout_marginBottom="10dp"
android:background="@mipmap/bg_detail_bottom"
android:textColor="@color/white"
android:visibility="gone" />
</LinearLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment