Commit 6c18e828 authored by wanglei's avatar wanglei

...

parent 34a7f3e1
......@@ -13,12 +13,10 @@ import com.test.easy.easycleanerjunk.activity.splash.NewSplashActivity
import com.test.easy.easycleanerjunk.fcm.ActionBroadcast
import com.test.easy.easycleanerjunk.fcm.FCMUtil
import com.test.easy.easycleanerjunk.fcm.MyTimerManager
import com.test.easy.easycleanerjunk.helps.AESHelper
import com.test.easy.easycleanerjunk.helps.BaseApplication
import com.test.easy.easycleanerjunk.helps.ComUtils
import com.test.easy.easycleanerjunk.helps.ConfigHelper
import com.test.easy.easycleanerjunk.helps.InstallHelps
import com.test.easy.easycleanerjunk.helps.UmpHelp.canRequestAds
import com.test.easy.easycleanerjunk.helps.ads.AdmobUtils
import com.test.easy.easycleanerjunk.utils.ActivityManagerUtils
import com.test.easy.easycleanerjunk.utils.SPUtils
......
......@@ -6,6 +6,7 @@ import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.LinearSmoothScroller
import androidx.recyclerview.widget.RecyclerView
import com.test.easy.easycleanerjunk.R
import com.test.easy.easycleanerjunk.activity.home.NewMainActivity
import com.test.easy.easycleanerjunk.activity.splash.NewSplashActivity
import com.test.easy.easycleanerjunk.adapter.DeviceScanAdapter
import com.test.easy.easycleanerjunk.databinding.ActivityDeviceScanBinding
......@@ -27,7 +28,7 @@ class DeviceScanActivity : BaseActivity<ActivityDeviceScanBinding>() {
ConfigHelper.ifGuest = true
binding.rv.isNestedScrollingEnabled = false
binding.ivItem.setImageResource(R.mipmap.d_shebei)
binding.view.setOnTouchListener { v, event -> true}
binding.view.setOnTouchListener { v, event -> true }
adapter = DeviceScanAdapter(
itemFinish = { title, position ->
binding.rv.smoothScrollEquallyTo(position)
......@@ -66,7 +67,7 @@ class DeviceScanActivity : BaseActivity<ActivityDeviceScanBinding>() {
override fun initListener() {
super.initListener()
binding.tvStart.setOnClickListener {
startActivity(Intent(this, NewSplashActivity::class.java))
startActivity(Intent(this, NewMainActivity::class.java))
finish()
}
}
......
......@@ -72,14 +72,8 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(),
startNotification()
}
mProgressManager?.startProgress()
if (!ConfigHelper.ifGuest) {
mProgressManager?.pauseProgress()
onProgressMax()
return
} else {
loadAd()
}
}
override fun onProgressMax() {
......
package com.test.easy.easycleanerjunk.activity.splash
import android.os.Handler
import androidx.core.view.isVisible
import com.test.easy.easycleanerjunk.databinding.ActivityLayoutSplashBinding
import com.test.easy.easycleanerjunk.utils.SPUtils
......@@ -14,7 +15,7 @@ class ProgressManager {
private var mIsPaused = false
private var mProgress = 0
private val listener:ProgressListener
private val listener: ProgressListener
constructor(binding: ActivityLayoutSplashBinding, listener: ProgressListener) {
this.binding = binding
......@@ -23,15 +24,19 @@ class ProgressManager {
initView()
}
private var loadTime: Int = 15
private fun initView() {
val loadTime = SPUtils.getInstance().getInt("loading_page_time", 15)
loadTime = SPUtils.getInstance().getInt("loading_page_time", 15)
binding.pb.max = loadTime
binding.pb.progress = 0
}
fun startProgress() {
binding.idTvStart.isVisible = false
binding.idLlYinsi.isVisible = false
binding.idLlJindu.isVisible = true
val mRunnable: Runnable = object : Runnable {
override fun run() {
if (!mIsPaused) {
......@@ -55,6 +60,7 @@ class ProgressManager {
mHandler.removeCallbacksAndMessages(null)
}
}
fun maxProgress() {
binding.pb.progress = binding.pb.max
listener.onProgressMax()
......@@ -67,7 +73,7 @@ class ProgressManager {
}
}
interface ProgressListener{
interface ProgressListener {
fun onProgressMax()
}
}
\ No newline at end of file
......@@ -18,4 +18,5 @@ class ConfigBean() {
var naAdS: Int = 0
var isShowBackIntAd: Int = 0
var isShowResultNaAd: Int = 0
var loadingPageTime: Int = 15
}
......@@ -3,7 +3,6 @@ package com.test.easy.easycleanerjunk.helps
import android.util.Log
import com.google.gson.Gson
import com.test.easy.easycleanerjunk.bean.ConfigBean
import com.test.easy.easycleanerjunk.bean.NotificationBean
import com.test.easy.easycleanerjunk.helps.ads.AdDisplayUtils
import com.test.easy.easycleanerjunk.helps.ads.AdmobUtils.adDisplayInterval
import com.test.easy.easycleanerjunk.helps.ads.AdmobUtils.maxMultiClick
......@@ -54,7 +53,7 @@ object ComUtils {
val gson = Gson()
val bean = gson.fromJson(str, ConfigBean::class.java)
Log.d("jiekou",str)
Log.d("jiekou", str)
SPUtils.getInstance().put("actionS", bean.actionS);
SPUtils.getInstance().put("open", bean.open);
SPUtils.getInstance().put("num", bean.num);
......@@ -66,6 +65,7 @@ object ComUtils {
SPUtils.getInstance().put("timerInterval", bean.timerInterval)
SPUtils.getInstance().put("naAdS", bean.naAdS)
SPUtils.getInstance().put("isShowBackIntAd", bean.isShowBackIntAd)
SPUtils.getInstance().put("loading_page_time", bean.loadingPageTime)
adDisplayInterval = bean.adInterval
maxMultiClick = bean.maxMultiClick
AdDisplayUtils.getInstance().setMaxAdDisplayCount(bean.adShowCount)
......
......@@ -2,7 +2,6 @@ package com.test.easy.easycleanerjunk.helps
import com.test.easy.easycleanerjunk.activity.splash.NewSplashActivity
import com.test.easy.easycleanerjunk.bean.AppInfo
import com.test.easy.easycleanerjunk.utils.SPUtils
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.appmanager.AppManagerActivity">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.appmanager.AppManagerAnimationActivity">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/coordinator_layout"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent">
......
......@@ -5,6 +5,7 @@
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
tools:context=".activity.DeviceScanActivity">
......@@ -76,10 +77,11 @@
android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_device_info_item" />
<View
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent" />
</FrameLayout>
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.largefile.LargeFileAnimationActivity">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
android:orientation="vertical">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
android:orientation="vertical">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
android:orientation="vertical"
app:bl_solid_color="@color/theme_color">
......
......@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
......
......@@ -4,7 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
android:orientation="vertical">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
android:orientation="vertical">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent">
<com.noober.background.view.BLConstraintLayout
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
android:orientation="vertical">
......
......@@ -3,7 +3,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@color/white">
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/id_vp"
......
......@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
tools:context=".activity.similarphotos.RepeatPhotoAnimationActivity">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.screenshot.ScreenShotActivity">
......
......@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.screenshot.ScreenShotAnimationActivity">
......
......@@ -5,6 +5,7 @@
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
tools:context=".activity.SettingActivity">
......
......@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
tools:context=".activity.whatsapp.WhatsAppCleanerAnimationActivity">
......
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