Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
be1e9913
Commit
be1e9913
authored
Sep 26, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
ca565b98
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
10 deletions
+23
-10
AppConfig.java
.../src/main/java/com/duben/dayplaylet/common/AppConfig.java
+1
-0
AlipayAuthManager.kt
...in/java/com/duben/dayplaylet/manager/AlipayAuthManager.kt
+3
-0
MainFragment.kt
...ain/java/com/duben/dayplaylet/ui/fragment/MainFragment.kt
+1
-1
MyFragment.kt
.../main/java/com/duben/dayplaylet/ui/fragment/MyFragment.kt
+1
-0
ForegroundOrBackground.java
...va/com/duben/dayplaylet/utils/ForegroundOrBackground.java
+6
-1
DramaApiDetailActivity.kt
.../com/duben/dayplaylet/video/csj/DramaApiDetailActivity.kt
+4
-1
dialog_withdraw_suc.xml
video/app/src/main/res/layout/dialog_withdraw_suc.xml
+7
-7
No files found.
video/app/src/main/java/com/duben/dayplaylet/common/AppConfig.java
View file @
be1e9913
...
...
@@ -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
;
...
...
video/app/src/main/java/com/duben/dayplaylet/manager/AlipayAuthManager.kt
View file @
be1e9913
...
...
@@ -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 -->>>>> 开始授权"
)
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/MainFragment.kt
View file @
be1e9913
...
...
@@ -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
)
{
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/MyFragment.kt
View file @
be1e9913
...
...
@@ -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
)
}
}
...
...
video/app/src/main/java/com/duben/dayplaylet/utils/ForegroundOrBackground.java
View file @
be1e9913
...
...
@@ -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()) {
activity
.
startActivity
(
new
Intent
(
activity
,
SplashBackActivity
.
class
));
//支付宝授权时不弹
if
(
AppConfig
.
alipayBackFalg
)
{
AppConfig
.
alipayBackFalg
=
false
;
}
else
{
activity
.
startActivity
(
new
Intent
(
activity
,
SplashBackActivity
.
class
));
}
// }
}
count
++;
...
...
video/app/src/main/java/com/duben/dayplaylet/video/csj/DramaApiDetailActivity.kt
View file @
be1e9913
...
...
@@ -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
()
...
...
video/app/src/main/res/layout/dialog_withdraw_suc.xml
View file @
be1e9913
...
...
@@ -25,8 +25,8 @@
android:src=
"@mipmap/ic_red_envelope_coupon_draw_top"
/>
<RelativeLayout
android:layout_width=
"
19
0dp"
android:layout_height=
"2
12
dp"
android:layout_width=
"
22
0dp"
android:layout_height=
"2
40
dp"
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=
"
16
dp"
>
android:layout_marginBottom=
"
20
dp"
>
<TextView
android:id=
"@+id/tv_cash_1"
...
...
@@ -95,14 +95,14 @@
<Button
android:id=
"@+id/btn"
android:layout_width=
"2
1
0dp"
android:layout_height=
"
46
dp"
android:layout_width=
"2
6
0dp"
android:layout_height=
"
52
dp"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"
3
0dp"
android:layout_marginTop=
"
2
0dp"
android:background=
"@drawable/shape_bg_blue_withdraw"
android:text=
"开心收下"
android:textColor=
"@color/white"
android:textSize=
"
18
sp"
/>
android:textSize=
"
20
sp"
/>
<com.duben.dayplaylet.ui.widgets.RoundRectLayout
android:id=
"@+id/fl_ad"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment