Commit 82920b72 authored by mengcuiguang's avatar mengcuiguang

代码优化

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