Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
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_flowbox
Commits
27dc32db
Commit
27dc32db
authored
Jul 26, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开屏优化
parent
56ccb7e1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
15 deletions
+7
-15
OwManager.kt
app/src/main/java/com/mints/flowbox/manager/ad/OwManager.kt
+2
-2
SplashPresenter.kt
.../java/com/mints/flowbox/mvp/presenters/SplashPresenter.kt
+4
-2
LoanService.java
app/src/main/java/com/mints/flowbox/net/LoanService.java
+1
-1
SplashGroMoreActivity.java
...com/mints/flowbox/ui/activitys/SplashGroMoreActivity.java
+0
-10
No files found.
app/src/main/java/com/mints/flowbox/manager/ad/OwManager.kt
View file @
27dc32db
...
@@ -9,9 +9,9 @@ import mobi.oneway.export.Ad.OnewaySdk
...
@@ -9,9 +9,9 @@ import mobi.oneway.export.Ad.OnewaySdk
*/
*/
object
OwManager
{
object
OwManager
{
private
const
val
PUBLISH_ID
=
"
01c3abd797b74730
"
private
const
val
PUBLISH_ID
=
""
const
val
REWARD_PID
=
"
6NQKNKC7WNA4XL8Q
"
const
val
REWARD_PID
=
""
/**
/**
* 初始化
* 初始化
...
...
app/src/main/java/com/mints/flowbox/mvp/presenters/SplashPresenter.kt
View file @
27dc32db
...
@@ -6,14 +6,16 @@ import com.mints.flowbox.mvp.model.SplashAppBean
...
@@ -6,14 +6,16 @@ import com.mints.flowbox.mvp.model.SplashAppBean
import
com.mints.flowbox.mvp.views.SplashView
import
com.mints.flowbox.mvp.views.SplashView
import
com.mints.library.net.neterror.BaseSubscriber
import
com.mints.library.net.neterror.BaseSubscriber
import
com.mints.library.net.neterror.Throwable
import
com.mints.library.net.neterror.Throwable
import
java.util.HashMap
class
SplashPresenter
:
BasePresenter
<
SplashView
>()
{
class
SplashPresenter
:
BasePresenter
<
SplashView
>()
{
fun
getCloseNeedInitAppsCount
()
{
fun
getCloseNeedInitAppsCount
()
{
view
.
showLoading
(
"加载中..."
)
view
.
showLoading
(
"加载中..."
)
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"os"
]
=
"Android"
AppHttpManager
.
getInstance
(
loanApplication
)
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
getCloseNeedInitAppsCount
(),
.
call
(
loanService
.
getCloseNeedInitAppsCount
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
SplashAppBean
>>()
{
object
:
BaseSubscriber
<
BaseResponse
<
SplashAppBean
>>()
{
override
fun
onCompleted
()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
if
(
isLinkView
)
return
...
...
app/src/main/java/com/mints/flowbox/net/LoanService.java
View file @
27dc32db
...
@@ -503,7 +503,7 @@ public interface LoanService {
...
@@ -503,7 +503,7 @@ public interface LoanService {
* 启动页获取反策略个数
* 启动页获取反策略个数
*/
*/
@POST
(
"common/getCloseNeedInitAppsCount"
)
@POST
(
"common/getCloseNeedInitAppsCount"
)
Observable
<
BaseResponse
<
SplashAppBean
>>
getCloseNeedInitAppsCount
();
Observable
<
BaseResponse
<
SplashAppBean
>>
getCloseNeedInitAppsCount
(
@Body
Map
<
String
,
Object
>
vo
);
/**
/**
* 默认http工厂
* 默认http工厂
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/SplashGroMoreActivity.java
View file @
27dc32db
...
@@ -288,22 +288,12 @@ public class SplashGroMoreActivity extends BaseActivity implements SplashView {
...
@@ -288,22 +288,12 @@ public class SplashGroMoreActivity extends BaseActivity implements SplashView {
* 跳转到主页面
* 跳转到主页面
*/
*/
private
void
goToMainActivity
()
{
private
void
goToMainActivity
()
{
// int customVersion = AppPreferencesManager.INSTANCE.get().getInt(Constant.CUSTOM_VERSION, 0);
// boolean isFirstEnter = AppPreferencesManager.INSTANCE.get().getBoolean(Constant.ISFIRSTENTER + customVersion, true);
// if (isFirstEnter) {
// readyGoThenKill(GuideActivity.class);
// } else {
String
channel
=
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
);
String
channel
=
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
);
if
(
TextUtils
.
equals
(
channel
,
Constant
.
CHANNEL_SHARE
)
&&
!
UserManager
.
getInstance
().
userIsLogin
())
{
if
(
TextUtils
.
equals
(
channel
,
Constant
.
CHANNEL_SHARE
)
&&
!
UserManager
.
getInstance
().
userIsLogin
())
{
readyGo
(
WxLoginActivity
.
class
);
readyGo
(
WxLoginActivity
.
class
);
}
else
{
}
else
{
readyGoThenKill
(
MainActivity
.
class
);
readyGoThenKill
(
MainActivity
.
class
);
}
}
// }
// mSplashContainer.removeAllViews();
readyGoThenKill
(
MainActivity
.
class
);
readyGoThenKill
(
MainActivity
.
class
);
}
}
...
...
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