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
5914373c
Commit
5914373c
authored
Oct 12, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
9c13c81b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
build.gradle
video/app/build.gradle
+1
-1
BaseActivity.java
...om/duben/xixiplayletu/ui/activitys/base/BaseActivity.java
+1
-1
ForegroundOrBackground.java
.../com/duben/xixiplayletu/utils/ForegroundOrBackground.java
+1
-1
activity_new_vip.xml
video/app/src/main/res/layout/activity_new_vip.xml
+1
-1
No files found.
video/app/build.gradle
View file @
5914373c
...
@@ -228,7 +228,7 @@ dependencies {
...
@@ -228,7 +228,7 @@ dependencies {
// 穿山甲商业化转化组件(必须)
// 穿山甲商业化转化组件(必须)
implementation
'com.bytedance.ads:AppConvert:1.3.0.5'
implementation
'com.bytedance.ads:AppConvert:1.3.0.5'
//埋点开发工具,DevTools是 Debug 环境下辅助开发者或测试人员进行应用内埋点验证和 SDK 接入问题排查的组件。请使用 debug 依赖,建议仅在 debug 下做调试
//埋点开发工具,DevTools是 Debug 环境下辅助开发者或测试人员进行应用内埋点验证和 SDK 接入问题排查的组件。请使用 debug 依赖,建议仅在 debug 下做调试
debugImplementation
'com.bytedance.applog:RangersAppLog-DevTools:3.3.4'
//
debugImplementation 'com.bytedance.applog:RangersAppLog-DevTools:3.3.4'
// 腾讯播放器
// 腾讯播放器
implementation
"com.tencent.liteav:LiteAVSDK_Player:11.3.0.13176"
implementation
"com.tencent.liteav:LiteAVSDK_Player:11.3.0.13176"
...
...
video/app/src/main/java/com/duben/xixiplayletu/ui/activitys/base/BaseActivity.java
View file @
5914373c
...
@@ -39,7 +39,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
...
@@ -39,7 +39,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
// 禁止截图
// 禁止截图
getWindow
().
addFlags
(
WindowManager
.
LayoutParams
.
FLAG_SECURE
);
//
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
!=
Build
.
VERSION_CODES
.
O
)
{
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
!=
Build
.
VERSION_CODES
.
O
)
{
setRequestedOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_PORTRAIT
);
setRequestedOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_PORTRAIT
);
...
...
video/app/src/main/java/com/duben/xixiplayletu/utils/ForegroundOrBackground.java
View file @
5914373c
...
@@ -88,7 +88,7 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -88,7 +88,7 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
long
diff
=
currentTimeMillis
-
activityStoppedTime
;
long
diff
=
currentTimeMillis
-
activityStoppedTime
;
long
diffInSeconds
=
diff
/
1000
;
long
diffInSeconds
=
diff
/
1000
;
System
.
out
.
println
(
"mcg -->>>>>:: diffInSeconds="
+
diffInSeconds
+
" adSuccessStatus="
+
SplashManager
.
INSTANCE
.
isSuccessStatus
());
System
.
out
.
println
(
"mcg -->>>>>:: diffInSeconds="
+
diffInSeconds
+
" adSuccessStatus="
+
SplashManager
.
INSTANCE
.
isSuccessStatus
());
if
(
diffInSeconds
>=
1
0
&&
SplashManager
.
INSTANCE
.
isSuccessStatus
())
{
if
(
diffInSeconds
>=
3
0
&&
SplashManager
.
INSTANCE
.
isSuccessStatus
())
{
activity
.
startActivity
(
new
Intent
(
activity
,
SplashForeAdActivity
.
class
));
activity
.
startActivity
(
new
Intent
(
activity
,
SplashForeAdActivity
.
class
));
}
}
}
}
...
...
video/app/src/main/res/layout/activity_new_vip.xml
View file @
5914373c
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rvVip"
android:id=
"@+id/rvVip"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1
8
0dp"
android:layout_height=
"1
4
0dp"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:background=
"@null"
android:background=
"@null"
android:overScrollMode=
"never"
/>
android:overScrollMode=
"never"
/>
...
...
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