Commit 82920b72 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 47e43179
......@@ -25,6 +25,7 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
private static ForegroundOrBackground instance;
private int count = 0;
private long activityStoppedTime = 0;
private int tempAlipay=0;
//获取当前最上层的activity
private static WeakReference<Activity> app_activity;
......@@ -101,7 +102,10 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
// if (diffInSeconds >= 10 && SplashManager.INSTANCE.isSuccessStatus()) {
//支付宝授权时不弹
if (AppConfig.alipayBackFalg) {
AppConfig.alipayBackFalg = false;
tempAlipay=tempAlipay+1;
if(tempAlipay==2){
AppConfig.alipayBackFalg = false;
}
} else {
activity.startActivity(new Intent(activity, SplashBackActivity.class));
}
......
......@@ -524,6 +524,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
SpanUtils()
.append("解锁")
.append(" $lockSet ")
.setFontSize(BubbleUtils.sp2px(32))
.setForegroundColor(ContextCompat.getColor(this, R.color.red))
.append("集剧情")
.create(),
......
......@@ -28,7 +28,7 @@
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="136dp"
android:layout_marginTop="126dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:textSize="22sp"
......@@ -37,7 +37,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp">
android:layout_marginBottom="12dp">
<ImageView
android:id="@+id/iv_tips"
......@@ -64,7 +64,7 @@
android:layout_height="wrap_content"
android:text=" 10 "
android:textColor="@color/red"
android:textSize="20sp"
android:textSize="26sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/tv_info3"
app:layout_constraintStart_toEndOf="@id/tv_info1"
......
......@@ -49,10 +49,10 @@
android:id="@+id/ry_draw"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"/>
android:minHeight="130dp"
android:layout_gravity="center"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"/>
<TextView
android:layout_width="wrap_content"
......
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