Commit 2239275f authored by mengcuiguang2's avatar mengcuiguang2

修改启动方式

parent 2f7e858e
......@@ -13,8 +13,8 @@ android {
applicationId rootProject.APPLICATION_ID
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 7
versionName "1.0.6"
versionCode 8
versionName "1.0.7"
flavorDimensions "default"
// dex突破65535的限制
......@@ -75,7 +75,8 @@ android {
// 不显示Log
buildConfigField "boolean", "LOG_DEBUG", "true"
buildConfigField "String", "AppKeyPre", "\"abcd\""
buildConfigField "String", "MainIp", DEBUG_URL
// buildConfigField "String", "MainIp", DEBUG_URL
buildConfigField "String", "MainIp", RELEASE_URL
//混淆
minifyEnabled false
......
......@@ -102,7 +102,6 @@
<activity
android:name="com.mints.flowbox.ui.activitys.SplashGroMoreActivity"
android:excludeFromRecents="true"
android:theme="@style/NormalSplash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
......@@ -93,18 +93,6 @@ class CleanActivity : BaseActivity(), View.OnClickListener {
}
override fun initViewsAndEvents() {
WifiAdManager.instance.setWifiAdStatusListener(object : WifiAdStatusListener {
override fun adSuccess() {}
override fun adFail() {
toResult()
}
override fun adClose() {
toResult()
}
})
WifiAdManager.instance.loadWifiAd(this)
initView()
initCleanData()
......@@ -187,6 +175,12 @@ class CleanActivity : BaseActivity(), View.OnClickListener {
btnClean.text = "开始清理"
isScaning = false
if (scanMax == 1) {
Handler(Looper.getMainLooper()).postDelayed({
startClean()
}, 1000)
}
if (tvClean.visibility == View.VISIBLE) {
if (AppConfig.fakeCleanCount == 0) {
AppConfig.fakeCleanCount = mCleanList[0].childList.size
......@@ -271,6 +265,17 @@ class CleanActivity : BaseActivity(), View.OnClickListener {
cleaningOperation(mContext, mCleanList[taskType].childList)
Handler(Looper.getMainLooper()).postDelayed({
WifiAdManager.instance.setWifiAdStatusListener(object : WifiAdStatusListener {
override fun adSuccess() {}
override fun adFail() {
toResult()
}
override fun adClose() {
toResult()
}
})
WifiAdManager.instance.showInterstitial(this@CleanActivity)
}, 2000)
}
......
......@@ -87,6 +87,8 @@ class IncreasespeedActivity : BaseActivity(), View.OnClickListener {
line.visibility = View.GONE
if (mIncreaseType == INCREASE_BOOST && AppConfig.isCanBoost) {
WifiAdManager.instance.loadWifiAd(this)
container.visibility = View.GONE
containerAnim.visibility = View.VISIBLE
startTimer()
......@@ -109,6 +111,8 @@ class IncreasespeedActivity : BaseActivity(), View.OnClickListener {
mTimerMax = 26
startTimer()
} else if (mIncreaseType == INCREASE_CLEAN && AppConfig.isCanClean) {
WifiAdManager.instance.loadWifiAd(this)
container.visibility = View.GONE
containerAnim.visibility = View.VISIBLE
mTimerMax = 14
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment