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
5fc27c8d
Commit
5fc27c8d
authored
Oct 25, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
禁止截屏
parent
e7ee029d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
build.gradle
video/app/build.gradle
+2
-2
VipActivity.kt
...n/java/com/duben/miniplayletd/ui/activitys/VipActivity.kt
+13
-1
BaseActivity.java
...om/duben/miniplayletd/ui/activitys/base/BaseActivity.java
+1
-1
No files found.
video/app/build.gradle
View file @
5fc27c8d
...
@@ -10,8 +10,8 @@ android {
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.duben.miniplayletd"
applicationId
"com.duben.miniplayletd"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
72
2
versionCode
72
3
versionName
"7.2.
2
"
versionName
"7.2.
3
"
flavorDimensions
"default"
flavorDimensions
"default"
// dex突破65535的限制
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/miniplayletd/ui/activitys/VipActivity.kt
View file @
5fc27c8d
...
@@ -35,6 +35,7 @@ import com.duben.miniplayletd.ui.widgets.countdowntimer.CountDownTimerSupport
...
@@ -35,6 +35,7 @@ import com.duben.miniplayletd.ui.widgets.countdowntimer.CountDownTimerSupport
import
com.duben.miniplayletd.ui.widgets.countdowntimer.OnCountDownTimerListener
import
com.duben.miniplayletd.ui.widgets.countdowntimer.OnCountDownTimerListener
import
com.duben.library.utils.GlideUtils
import
com.duben.library.utils.GlideUtils
import
com.duben.library.utils.nodoubleclick.AntiShake
import
com.duben.library.utils.nodoubleclick.AntiShake
import
com.duben.miniplayletd.utils.SpanUtils
import
com.jobo.alipay.AliPay
import
com.jobo.alipay.AliPay
import
com.jobo.alipay.AlipayInfoImpl
import
com.jobo.alipay.AlipayInfoImpl
import
com.jobo.rxpay.RxPay
import
com.jobo.rxpay.RxPay
...
@@ -220,7 +221,18 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
...
@@ -220,7 +221,18 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
}
}
if
(!
TextUtils
.
isEmpty
(
bean
.
buttonText
))
{
if
(!
TextUtils
.
isEmpty
(
bean
.
buttonText
))
{
tvVipPay
.
text
=
bean
.
buttonText
if
(
bean
.
isShowCycTips
)
{
tvVipPay
.
text
=
SpanUtils
()
.
append
(
bean
.
buttonText
+
"\n"
)
.
setFontSize
(
20
,
true
)
.
append
(
bean
.
remarks
)
.
setFontSize
(
10
,
true
)
.
setForegroundColor
(
Color
.
parseColor
(
"#A24240"
))
.
create
()
}
else
{
tvVipPay
.
text
=
bean
.
buttonText
}
tvVipAgreement
.
text
=
"点击购买即表示您同意《自动续费协议》"
tvVipAgreement
.
text
=
"点击购买即表示您同意《自动续费协议》"
}
else
{
}
else
{
tvVipPay
.
text
=
"立即开通"
tvVipPay
.
text
=
"立即开通"
...
...
video/app/src/main/java/com/duben/miniplayletd/ui/activitys/base/BaseActivity.java
View file @
5fc27c8d
...
@@ -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
);
...
...
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