Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
0344d2ff
Commit
0344d2ff
authored
Nov 23, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化书城加载
parent
5190f2a5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
InitAppService.kt
...y/app/src/main/java/com/mints/goodmoney/InitAppService.kt
+1
-2
MintsApplication.java
...p/src/main/java/com/mints/goodmoney/MintsApplication.java
+1
-0
ZhangyueManager.kt
.../main/java/com/mints/goodmoney/manager/ZhangyueManager.kt
+7
-5
MainActivity.kt
...ain/java/com/mints/goodmoney/ui/activitys/MainActivity.kt
+4
-0
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/InitAppService.kt
View file @
0344d2ff
...
...
@@ -80,8 +80,7 @@ class InitAppService : IntentService("InitializeService") {
initJpush
()
// 掌阅书城
ZhangyueManager
.
attachBaseContextIreader
(
this
.
application
)
ZhangyueManager
.
onCreateIreader
(
this
.
application
)
// ZhangyueManager.onCreateIreader(this.application)
// 变现猫
initBxm
(
this
.
application
)
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/MintsApplication.java
View file @
0344d2ff
...
...
@@ -18,6 +18,7 @@ import com.mints.goodmoney.manager.TtCsjAdManager;
import
com.mints.goodmoney.manager.UserManager
;
import
com.mints.goodmoney.manager.YlVideoManager
;
import
com.mints.goodmoney.manager.YlhAdManager
;
import
com.mints.goodmoney.manager.ZhangyueManager
;
import
com.mints.goodmoney.net.LoanService
;
import
com.mints.goodmoney.utils.ForegroundOrBackground
;
import
com.mints.goodmoney.utils.LogUtil
;
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/ZhangyueManager.kt
View file @
0344d2ff
...
...
@@ -2,6 +2,7 @@ package com.mints.goodmoney.manager
import
android.app.Application
import
com.ireader.ireadersdk.IreaderApi
import
java.lang.Exception
/**
* 描述:掌阅书城
...
...
@@ -12,10 +13,11 @@ object ZhangyueManager {
private
const
val
APPID
=
"10054"
fun
onCreateIreader
(
application
:
Application
)
{
IreaderApi
.
onCreate
(
application
,
APPID
)
}
fun
attachBaseContextIreader
(
application
:
Application
)
{
IreaderApi
.
attachBaseContext
(
application
)
try
{
IreaderApi
.
attachBaseContext
(
application
)
IreaderApi
.
onCreate
(
application
,
APPID
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/MainActivity.kt
View file @
0344d2ff
...
...
@@ -12,6 +12,7 @@ import com.mints.goodmoney.R
import
com.mints.goodmoney.ad.video.VedioAdingManager
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.ZhangyueManager
import
com.mints.goodmoney.mvp.views.MainView
import
com.mints.goodmoney.ui.activitys.base.BaseActivity
import
com.mints.goodmoney.ui.fragment.*
...
...
@@ -38,6 +39,9 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
activity_main
override
fun
initViewsAndEvents
()
{
ZhangyueManager
.
onCreateIreader
(
baseApplication
)
if
(
moneyFragment
==
null
)
{
moneyFragment
=
MoneyFragment
()
}
...
...
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