Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_youyou
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_youyou
Commits
5ba7dd24
Commit
5ba7dd24
authored
Apr 06, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏广告
parent
d5f3b302
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
28 deletions
+33
-28
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-1
MorningClockActivity.kt
...va/com/wenshu/youyou/ui/activitys/MorningClockActivity.kt
+1
-1
MyFragment.kt
...src/main/java/com/wenshu/youyou/ui/fragment/MyFragment.kt
+2
-2
ForegroundOrBackground.java
.../java/com/wenshu/youyou/utils/ForegroundOrBackground.java
+24
-24
activity_award.xml
app/src/main/res/layout/activity_award.xml
+1
-0
activity_food_subsidy.xml
app/src/main/res/layout/activity_food_subsidy.xml
+1
-0
activity_morning_clock.xml
app/src/main/res/layout/activity_morning_clock.xml
+1
-0
activity_walk.xml
app/src/main/res/layout/activity_walk.xml
+1
-0
activity_water.xml
app/src/main/res/layout/activity_water.xml
+1
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
5ba7dd24
...
...
@@ -113,7 +113,7 @@
android:value=
"${JPUSH_CHANNEL}"
/>
<activity
android:name=
"com.wenshu.youyou.ui.activitys.Splash
Ylh
Activity"
android:name=
"com.wenshu.youyou.ui.activitys.SplashActivity"
android:theme=
"@style/NormalSplash"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
app/src/main/java/com/wenshu/youyou/ui/activitys/MorningClockActivity.kt
View file @
5ba7dd24
...
...
@@ -46,7 +46,7 @@ class MorningClockActivity : BaseActivity()
override
fun
onResume
()
{
super
.
onResume
()
initExpress
()
//
initExpress()
morningClockPresenter
.
getUpEarlySignMsg
()
}
...
...
app/src/main/java/com/wenshu/youyou/ui/fragment/MyFragment.kt
View file @
5ba7dd24
...
...
@@ -153,8 +153,8 @@ class MyFragment : BaseFragment(),
}
// 防止banner刷新太快
if
(
AntiShake
.
check
(
fl_my_banner
?.
id
))
return
BannerManager
.
getTtBanner
(
TtCsjAdManager
.
TT_AD_BANNER_MY
,
fl_my_banner
)
//
if (AntiShake.check(fl_my_banner?.id)) return
//
BannerManager.getTtBanner(TtCsjAdManager.TT_AD_BANNER_MY, fl_my_banner)
// 刷新喜马拉雅信息流
TTPreLoadExpressXmlyManager
.
getInstance
().
loadTtFrameLayout
()
...
...
app/src/main/java/com/wenshu/youyou/utils/ForegroundOrBackground.java
View file @
5ba7dd24
...
...
@@ -102,32 +102,32 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
if
(
count
==
0
)
{
// LogUtil.d("ForegroundOrBackground", System.currentTimeMillis() - leaveTime + " onActivityStarted");
// 60秒后打开应用 显示开屏广告
if
(
System
.
currentTimeMillis
()
-
leaveTime
>=
60000
)
{
if
(
isYlhSplash
)
{
isYlhSplash
=
false
;
if
(
ylhIntent
==
null
)
{
// 优量汇广告
ylhIntent
=
new
Intent
(
activity
,
SplashADActivity
.
class
);
}
activity
.
startActivity
(
ylhIntent
);
}
else
{
isYlhSplash
=
true
;
if
(
csjIntent
==
null
)
{
// 快手广告
csjIntent
=
new
Intent
(
activity
,
SplashCsjADActivity
.
class
);
}
activity
.
startActivity
(
csjIntent
);
// if (ksIntent == null) {
// if (System.currentTimeMillis() - leaveTime >= 60000) {
//
// if (isYlhSplash) {
// isYlhSplash = false;
//
// if (ylhIntent == null) {
// // 优量汇广告
// ylhIntent = new Intent(activity, SplashADActivity.class);
// }
// activity.startActivity(ylhIntent);
// } else {
// isYlhSplash = true;
//
// if (csjIntent == null) {
// // 快手广告
//
ksIntent = new Intent(activity, SplashKs
ADActivity.class);
//
csjIntent = new Intent(activity, SplashCsj
ADActivity.class);
// }
// activity.startActivity(ksIntent);
}
}
// activity.startActivity(csjIntent);
//
//// if (ksIntent == null) {
//// // 快手广告
//// ksIntent = new Intent(activity, SplashKsADActivity.class);
//// }
//// activity.startActivity(ksIntent);
// }
// }
}
count
++;
}
...
...
app/src/main/res/layout/activity_award.xml
View file @
5ba7dd24
...
...
@@ -170,6 +170,7 @@
</FrameLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flAwardAd"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
app/src/main/res/layout/activity_food_subsidy.xml
View file @
5ba7dd24
...
...
@@ -42,6 +42,7 @@
</FrameLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flSubsidykAd"
android:layout_width=
"340dp"
android:layout_height=
"340dp"
...
...
app/src/main/res/layout/activity_morning_clock.xml
View file @
5ba7dd24
...
...
@@ -85,6 +85,7 @@
</LinearLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flMorningClockAd"
android:layout_width=
"340dp"
android:layout_height=
"340dp"
...
...
app/src/main/res/layout/activity_walk.xml
View file @
5ba7dd24
...
...
@@ -41,6 +41,7 @@
</FrameLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flWalkAd"
android:layout_width=
"340dp"
android:layout_height=
"340dp"
...
...
app/src/main/res/layout/activity_water.xml
View file @
5ba7dd24
...
...
@@ -40,6 +40,7 @@
</FrameLayout>
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/flWaterAd"
android:layout_width=
"340dp"
android:layout_height=
"340dp"
...
...
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