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
905f3de6
Commit
905f3de6
authored
Aug 10, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加看广告次数字段
parent
4d4c2838
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
compiler.xml
video/.idea/compiler.xml
+1
-1
build.gradle
video/app/build.gradle
+2
-2
RecommendBean.java
...ain/java/com/mints/helivideo/mvp/model/RecommendBean.java
+10
-0
MainFragment.kt
...main/java/com/mints/helivideo/ui/fragment/MainFragment.kt
+2
-2
No files found.
video/.idea/compiler.xml
View file @
905f3de6
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"CompilerConfiguration"
>
<bytecodeTargetLevel
target=
"1
1
"
/>
<bytecodeTargetLevel
target=
"1
.8
"
/>
</component>
</project>
\ No newline at end of file
video/app/build.gradle
View file @
905f3de6
...
...
@@ -12,8 +12,8 @@ android {
applicationId
"com.mints.helivideo"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
7
versionName
"1.0.
6
"
versionCode
8
versionName
"1.0.
7
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
video/app/src/main/java/com/mints/helivideo/mvp/model/RecommendBean.java
View file @
905f3de6
...
...
@@ -10,6 +10,8 @@ public class RecommendBean implements Serializable {
private
String
showVedioUrl
;
private
int
adShowCount
;
public
VedioBean
getVedioMsg
()
{
return
vedioMsg
;
...
...
@@ -26,4 +28,12 @@ public class RecommendBean implements Serializable {
public
void
setShowVedioUrl
(
String
showVedioUrl
)
{
this
.
showVedioUrl
=
showVedioUrl
;
}
public
int
getAdShowCount
()
{
return
adShowCount
;
}
public
void
setAdShowCount
(
int
adShowCount
)
{
this
.
adShowCount
=
adShowCount
;
}
}
video/app/src/main/java/com/mints/helivideo/ui/fragment/MainFragment.kt
View file @
905f3de6
...
...
@@ -402,11 +402,11 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
val
mainTwoRecommend
=
AppPreferencesManager
.
get
().
getBoolean
(
Constant
.
MAIN_TWO_RECOMMEND
,
false
)
val
adCount
=
AppPreferencesManager
.
get
().
getInt
(
Constant
.
VEDIO_AD_COUNT
,
0
)
if
(!
mainTwoRecommend
&&
adCount
>
10
)
{
if
(!
mainTwoRecommend
&&
adCount
>
data
!!
.
vedio3
.
adShowCount
)
{
AppPreferencesManager
.
get
().
put
(
Constant
.
MAIN_TWO_RECOMMEND
,
true
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
val
bundle
=
Bundle
()
bundle
.
putString
(
Constant
.
VEDIO_BEAN
,
JsonUtil
.
toJson
(
data
))
bundle
.
putString
(
Constant
.
VEDIO_BEAN
,
JsonUtil
.
toJson
(
data
.
vedio3
))
readyGo
(
RecommendActivity
::
class
.
java
,
bundle
)
},
300
)
}
...
...
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