Commit be1e9913 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent ca565b98
......@@ -10,6 +10,7 @@ public class AppConfig {
public static boolean app_updateing = false;
public static boolean mainShowHalfAd = false;
public static boolean mainMusicRefresh = false;
public static boolean alipayBackFalg = false;
public static int fragmentClickFlag = 0;
public static int riskPercentage = 0;
......
......@@ -7,6 +7,7 @@ import android.os.Message
import android.text.TextUtils
import com.alipay.sdk.app.AuthTask
import com.duben.dayplaylet.MintsApplication
import com.duben.dayplaylet.common.AppConfig
import com.duben.dayplaylet.mvp.model.AuthResult
import com.duben.dayplaylet.mvp.model.BaseResponse
import com.duben.dayplaylet.utils.ToastUtil
......@@ -75,6 +76,8 @@ object AlipayAuthManager {
* 支付宝账户授权业务示例
*/
fun authV2(activity: Activity, listener: AuthListener?) {
AppConfig.alipayBackFalg = true
authListener = listener
val weakReference = WeakReference(activity)
println("mcg -->>>>> 开始授权")
......
......@@ -314,7 +314,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
// 签到信息
if (data != null) {
if (data != null && data.signMsg != null) {
signMsg = data.signMsg
}
if (signMsg == null) {
......
......@@ -278,6 +278,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
Constant.CARRIERTYPE_TASK_YUANBAO -> {
Handler(Looper.getMainLooper()).postDelayed({
ConsumerToastUtil.showAwardText(requireContext(), 0, AppConfig.awardYuanbao)
myPresenter.rdUserHallList()
}, 800)
}
}
......
......@@ -99,7 +99,12 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
// long diffInSeconds = diff / 1000;
// System.out.println("mcg -->>>>>:: diffInSeconds=" + diffInSeconds + " adSuccessStatus=" + SplashManager.INSTANCE.isSuccessStatus());
// if (diffInSeconds >= 10 && SplashManager.INSTANCE.isSuccessStatus()) {
//支付宝授权时不弹
if (AppConfig.alipayBackFalg) {
AppConfig.alipayBackFalg = false;
} else {
activity.startActivity(new Intent(activity, SplashBackActivity.class));
}
// }
}
count++;
......
......@@ -195,7 +195,10 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
override fun onDestroy() {
dpWidget?.destroy()
MyExpressManager.instance.destroy()
if (mTimer != null) {
mTimer?.stop()
mTimer = null
}
cdvv.destroy()
cdvv.setCountDownVideoListener(null)
super.onDestroy()
......
......@@ -25,8 +25,8 @@
android:src="@mipmap/ic_red_envelope_coupon_draw_top" />
<RelativeLayout
android:layout_width="190dp"
android:layout_height="212dp"
android:layout_width="220dp"
android:layout_height="240dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/dp_10"
android:background="@mipmap/bg_withdraw_suc">
......@@ -37,7 +37,7 @@
android:layout_alignParentBottom="true"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="16dp">
android:layout_marginBottom="20dp">
<TextView
android:id="@+id/tv_cash_1"
......@@ -95,14 +95,14 @@
<Button
android:id="@+id/btn"
android:layout_width="210dp"
android:layout_height="46dp"
android:layout_width="260dp"
android:layout_height="52dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
android:layout_marginTop="20dp"
android:background="@drawable/shape_bg_blue_withdraw"
android:text="开心收下"
android:textColor="@color/white"
android:textSize="18sp" />
android:textSize="20sp" />
<com.duben.dayplaylet.ui.widgets.RoundRectLayout
android:id="@+id/fl_ad"
......
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