Commit 7e96c280 authored by wanglei's avatar wanglei

=====移除扬声器功能======

parent a503e5e4
...@@ -76,14 +76,10 @@ ...@@ -76,14 +76,10 @@
"Reddit": "\u0786\u07a0\u07a2\u07a5\u0794_D", "Reddit": "\u0786\u07a0\u07a2\u07a5\u0794_D",
"Tiktok": "\u0798\u0792\u0784\u0784\u079a_D", "Tiktok": "\u0798\u0792\u0784\u0784\u079a_D",
"1": "\u078b\u0795\u0791\u0787\u0787_D", "1": "\u078b\u0795\u0791\u0787\u0787_D",
"Speaker Cleaner": "\u078c\u0787\u079c\u07a4\u078c_D",
"Click the button to start cleaning": "\u0784\u078a\u079b\u0780\u0788_D", "Click the button to start cleaning": "\u0784\u078a\u079b\u0780\u0788_D",
"There will be vibration and sound during speaker cleaning,which is normal!": "\u0791\u07a0\u078d\u0799\u079e_D",
"Clean Dust": "\u079d\u079d\u0799\u07a2\u0790_D", "Clean Dust": "\u079d\u079d\u0799\u07a2\u0790_D",
"Cleaning": "\u0793\u0788\u079d\u07a3\u078d_D", "Cleaning": "\u0793\u0788\u079d\u07a3\u078d_D",
"Wait a moment please": "\u0786\u079e\u0793\u078d\u078b_D", "Wait a moment please": "\u0786\u079e\u0793\u078d\u078b_D",
"There will be vibration and sound during speaker cleaning, which is normal!": "\u078d\u07a3\u07a5\u078b\u0789_D",
"Speaker cleaning completed": "\u07a2\u0795\u0799\u079d\u0799_D",
"Scanning": "\u079b\u0799\u07a0\u079e\u0794_D", "Scanning": "\u079b\u0799\u07a0\u079e\u0794_D",
"Optimization completed": "\u079f\u079a\u079d\u0786\u0785_D", "Optimization completed": "\u079f\u079a\u079d\u0786\u0785_D",
"Loading...": "\u0795\u078f\u07a5\u0789\u07a0_D", "Loading...": "\u0795\u078f\u07a5\u0789\u07a0_D",
...@@ -421,7 +417,6 @@ ...@@ -421,7 +417,6 @@
"Manage": "\u0799\u079b\u0787\u0781\u07a2_D", "Manage": "\u0799\u079b\u0787\u0781\u07a2_D",
"View network traffic usage and stop traffic-consuming apps.": "\u0790\u0796\u0789\u078c\u0785_D", "View network traffic usage and stop traffic-consuming apps.": "\u0790\u0796\u0789\u078c\u0785_D",
"View": "\u07a1\u078f\u07a5\u0791\u07a2_D", "View": "\u07a1\u078f\u07a5\u0791\u07a2_D",
"Clean the speaker dust and fix the low volume problem": "\u0797\u0787\u0787\u079e\u0784_D",
"Installation successful. Delete useless APKs": "\u079d\u0789\u0788\u0783\u0785_D", "Installation successful. Delete useless APKs": "\u079d\u0789\u0788\u0783\u0785_D",
"Scan": "\u078b\u0797\u078d\u07a3\u0785_D", "Scan": "\u078b\u0797\u078d\u07a3\u0785_D",
"Uninstalled successfully, clean residual files from your device": "\u079d\u07a3\u078b\u0789\u079c_D", "Uninstalled successfully, clean residual files from your device": "\u079d\u07a3\u078b\u0789\u079c_D",
...@@ -634,7 +629,6 @@ ...@@ -634,7 +629,6 @@
"App Manager": "\u07a5\u07a5\u0784\u07a3\u079a_D", "App Manager": "\u07a5\u07a5\u0784\u07a3\u079a_D",
"Battery Info": "\u079b\u079c\u0792\u0780\u0787_D", "Battery Info": "\u079b\u079c\u0792\u0780\u0787_D",
"Empty File Cleaner": "\u0787\u079e\u079e\u078f\u0781_D", "Empty File Cleaner": "\u0787\u079e\u079e\u078f\u0781_D",
"Speaker Cleaner": "\u0785\u0783\u079a\u0781\u079a_D",
"Photo Compress": "\u079f\u0781\u079e\u0791\u079f_D", "Photo Compress": "\u079f\u0781\u079e\u0791\u079f_D",
"App Lock": "\u0794\u07a4\u0780\u0793\u0790_D", "App Lock": "\u0794\u07a4\u0780\u0793\u0790_D",
"App Speed": "\u078a\u078c\u0783\u0799\u0793_D", "App Speed": "\u078a\u078c\u0783\u0799\u0793_D",
......
package com.test.basd.supercleanermax.activity.photocompress.photo package com.test.basd.supercleanermax.activity.photocompress.photo
import android.annotation.SuppressLint
import android.app.Activity import android.app.Activity
import android.graphics.Bitmap import android.graphics.Bitmap
import android.util.Log import android.util.Log
...@@ -15,10 +16,10 @@ import com.bumptech.glide.Glide ...@@ -15,10 +16,10 @@ import com.bumptech.glide.Glide
import com.test.basd.supercleanermax.R import com.test.basd.supercleanermax.R
class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, CompressionImageUtils.BitmapCallback, class PreviewCompressionManager(private val mContext: Activity) : GalleryLayoutManager.OnItemSelectedListener,
CompressionImageUtils.BitmapCallback,
OnSeekBarChangeListener { OnSeekBarChangeListener {
private val mContext: Activity
private var galleryRecyclerView: RecyclerView? = null private var galleryRecyclerView: RecyclerView? = null
private var galleryAdapter: GalleryAdapter? = null private var galleryAdapter: GalleryAdapter? = null
private val mList: List<PhotoBean> private val mList: List<PhotoBean>
...@@ -37,21 +38,6 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C ...@@ -37,21 +38,6 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
private var mIndex = 0 private var mIndex = 0
constructor(mContext: Activity) {
this.mContext = mContext
mList = PhotoCache.getInstance().photoList
galleryRecyclerView = mContext.findViewById(R.id.galleryRecyclerView)
mPreviewView = mContext.findViewById(R.id.preview_view)
mLoadingView = mContext.findViewById(R.id.img_loading)
mBeforeImage = mContext.findViewById(R.id.before_image)
mAfterImage = mContext.findViewById(R.id.after_image)
mBeforeSize = mContext.findViewById(R.id.before_size)
mAfterSize = mContext.findViewById(R.id.after_size)
mTitleView = mContext.findViewById(R.id.title)
mSeekBar = mContext.findViewById(R.id.seekBar)
initView()
}
private fun initView() { private fun initView() {
galleryAdapter = GalleryAdapter(mContext, mList) galleryAdapter = GalleryAdapter(mContext, mList)
val manager = GalleryLayoutManager(GalleryLayoutManager.HORIZONTAL) val manager = GalleryLayoutManager(GalleryLayoutManager.HORIZONTAL)
...@@ -76,8 +62,7 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C ...@@ -76,8 +62,7 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
lastRefreshTime = currentTime lastRefreshTime = currentTime
mIndex = position mIndex = position
Log.d("glc","") refreshPreviewImage(true, 50)
refreshPreviewImage(true)
} }
override fun onBitmapReady(bitmap: Bitmap?, size: Long, position: Int) { override fun onBitmapReady(bitmap: Bitmap?, size: Long, position: Int) {
...@@ -89,17 +74,14 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C ...@@ -89,17 +74,14 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
val entity = mList[position] val entity = mList[position]
mPreviewView?.visibility = View.VISIBLE mPreviewView?.visibility = View.VISIBLE
mLoadingView?.visibility = View.GONE mLoadingView?.visibility = View.GONE
if (mBeforeImage != null) { Glide.with(mContext).load(entity.src).into(mBeforeImage)
Glide.with(mContext).load(entity.src).into(mBeforeImage)
}
mBeforeSize?.text = entity.sizeText mBeforeSize?.text = entity.sizeText
mAfterSize?.text = ImagesMediaUtils.formatFileSize(size) mAfterSize?.text = ImagesMediaUtils.formatFileSize(size)
if (mAfterImage != null) { Glide.with(mContext).load(bitmap).into(mAfterImage)
Glide.with(mContext).load(bitmap).into(mAfterImage)
}
} }
} }
@SuppressLint("SetTextI18n")
private fun loading(boolean: Boolean) { private fun loading(boolean: Boolean) {
mPreviewView?.visibility = View.GONE mPreviewView?.visibility = View.GONE
mLoadingView?.visibility = View.VISIBLE mLoadingView?.visibility = View.VISIBLE
...@@ -110,40 +92,50 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C ...@@ -110,40 +92,50 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
} }
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) { override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
when {
progress <= 25 -> seekBar?.progress = 0
progress in 26..75 -> seekBar?.progress = 50
progress > 75 -> seekBar?.progress = 100
}
} }
override fun onStartTrackingTouch(seekBar: SeekBar?) { override fun onStartTrackingTouch(seekBar: SeekBar?) {
} }
private var lastProgress = 50 private var lastProgress = 50
override fun onStopTrackingTouch(seekBar: SeekBar?) { override fun onStopTrackingTouch(seekBar: SeekBar?) {
val progress = seekBar?.progress ?: 0 val progress = seekBar?.progress ?: 0
var mode: Int = 0
when { when {
seekBar?.progress ?: 0 <= 1 -> seekBar?.progress = 0 (seekBar?.progress ?: 0) <= 1 -> mode = 0
(seekBar?.progress ?: 0) > 1 && (seekBar?.progress ?: 0) <= 50 -> seekBar?.progress = (seekBar?.progress ?: 0) > 1 && (seekBar?.progress ?: 0) <= 50 -> mode = 50
50 (seekBar?.progress ?: 0) > 50 -> mode = 100
seekBar?.progress ?: 0 > 50 -> seekBar?.progress = 100
} }
if (progress != lastProgress) { if (progress != lastProgress) {
refreshPreviewImage(false) refreshPreviewImage(false, mode)
lastProgress = progress lastProgress = progress
} }
} }
private fun refreshPreviewImage(boolean: Boolean) { @SuppressLint("SetTextI18n")
private fun refreshPreviewImage(boolean: Boolean, mode: Int) {
loading(boolean) loading(boolean)
val entity = mList[mIndex] val entity = mList[mIndex]
mTitleView?.text = "Preview (" + (mIndex + 1) + "/${mList.size})" mTitleView?.text = "Preview (" + (mIndex + 1) + "/${mList.size})"
CompressionImageUtils.compressImage(entity.src, mSeekBar.progress, mIndex, this) CompressionImageUtils.compressImage(entity.src, mode, mIndex, this)
} }
fun getMode() = mSeekBar.progress fun getMode() = mSeekBar.progress
init {
mList = PhotoCache.getInstance().photoList
galleryRecyclerView = mContext.findViewById(R.id.galleryRecyclerView)
mPreviewView = mContext.findViewById(R.id.preview_view)
mLoadingView = mContext.findViewById(R.id.img_loading)
mBeforeImage = mContext.findViewById(R.id.before_image)
mAfterImage = mContext.findViewById(R.id.after_image)
mBeforeSize = mContext.findViewById(R.id.before_size)
mAfterSize = mContext.findViewById(R.id.after_size)
mTitleView = mContext.findViewById(R.id.title)
mSeekBar = mContext.findViewById(R.id.seekBar)
initView()
}
} }
\ No newline at end of file
...@@ -41,13 +41,13 @@ class StartCompressionPhotoActivity : BaseActivity<ActivityStartCompressionPhoto ...@@ -41,13 +41,13 @@ class StartCompressionPhotoActivity : BaseActivity<ActivityStartCompressionPhoto
if (isGranted) { if (isGranted) {
isplay += 1 isplay += 1
if (isplay == 1) { if (isplay == 1) {
playlottie() playLottie()
} }
} else { } else {
finishToMain() finishToMain()
} }
} }
private fun playlottie(){ private fun playLottie(){
binding.idLottie1.imageAssetsFolder = "ya_smax_suo/images/" binding.idLottie1.imageAssetsFolder = "ya_smax_suo/images/"
binding.idLottie1.setAnimation("ya_smax_suo/data.json") binding.idLottie1.setAnimation("ya_smax_suo/data.json")
binding.idLottie1.playAnimation() binding.idLottie1.playAnimation()
......
...@@ -15,7 +15,6 @@ import com.test.basd.supercleanermax.activity.photocompress.photo.StartCompressi ...@@ -15,7 +15,6 @@ import com.test.basd.supercleanermax.activity.photocompress.photo.StartCompressi
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_APP_MANAGER import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_APP_MANAGER
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CHARGE import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CHARGE
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CLEAN_NOTIFICATION import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CLEAN_NOTIFICATION
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CLEAN_SPEAKER
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_INSTALL_PACKAGE_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_INSTALL_PACKAGE_PUSH
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_JUNK_CLEAN_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_JUNK_CLEAN_PUSH
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_LARGE_FILE_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_LARGE_FILE_PUSH
......
...@@ -53,8 +53,6 @@ data class ConfigBean( ...@@ -53,8 +53,6 @@ data class ConfigBean(
const val ID_CLEAN_NOTIFICATION = 11013//清理通知栏 const val ID_CLEAN_NOTIFICATION = 11013//清理通知栏
const val ID_RECENT_USE_APP = 11014//最近使用APP const val ID_RECENT_USE_APP = 11014//最近使用APP
const val ID_SIMILAR_IMAGE = 11015//清理相似图片 const val ID_SIMILAR_IMAGE = 11015//清理相似图片
const val ID_CLEAN_SPEAKER = 11016//清理扬声器
// const val ID_BATTERY_OPTIMIZATION = 11017//电池优化,目前是虚假功能
//场景触发push actionId 被动发送 //场景触发push actionId 被动发送
const val ID_WIFI_PUSH = 22001//连接wifi时 const val ID_WIFI_PUSH = 22001//连接wifi时
...@@ -63,13 +61,11 @@ data class ConfigBean( ...@@ -63,13 +61,11 @@ data class ConfigBean(
const val ID_CHARGE = 22004//充电 const val ID_CHARGE = 22004//充电
const val ID_LOW_BATTERY_PUSH = 22005//电量低于阈值时 const val ID_LOW_BATTERY_PUSH = 22005//电量低于阈值时
const val ID_LOW_RAM_PUSH = 22007//内存低于阈值 const val ID_LOW_RAM_PUSH = 22007//内存低于阈值
// const val ID_PHONE_ACCELERATE = 22011//手机加速,目前是虚假功能
fun ConfigBean.getActionPushInterval(actionId: Int): Int { fun ConfigBean.getActionPushInterval(actionId: Int): Int {
val interval = when (actionId) { val interval = when (actionId) {
ID_JUNK_CLEAN_PUSH -> push_interval_11001 ID_JUNK_CLEAN_PUSH -> push_interval_11001
ID_BOOST_PUSH -> push_interval_11002 ID_BOOST_PUSH -> push_interval_11002
// ID_VIRUS_PUSH -> push_interval_11003
ID_BATTERY_PUSH -> push_interval_11004 ID_BATTERY_PUSH -> push_interval_11004
ID_COOL_PUSH -> push_interval_11005 ID_COOL_PUSH -> push_interval_11005
ID_LARGE_FILE_PUSH -> push_interval_11006 ID_LARGE_FILE_PUSH -> push_interval_11006
...@@ -82,15 +78,12 @@ data class ConfigBean( ...@@ -82,15 +78,12 @@ data class ConfigBean(
ID_CLEAN_NOTIFICATION -> push_interval_11013 ID_CLEAN_NOTIFICATION -> push_interval_11013
ID_RECENT_USE_APP -> push_interval_11014 ID_RECENT_USE_APP -> push_interval_11014
ID_SIMILAR_IMAGE -> push_interval_11015 ID_SIMILAR_IMAGE -> push_interval_11015
ID_CLEAN_SPEAKER -> push_interval_11016
// ID_BATTERY_OPTIMIZATION -> push_interval_11017
ID_WIFI_PUSH -> push_interval_22001 ID_WIFI_PUSH -> push_interval_22001
ID_INSTALL_PACKAGE_PUSH -> push_interval_22002 ID_INSTALL_PACKAGE_PUSH -> push_interval_22002
ID_UNINSTALL_PACKAGE_PUSH -> push_interval_22003 ID_UNINSTALL_PACKAGE_PUSH -> push_interval_22003
ID_CHARGE -> push_interval_22004 ID_CHARGE -> push_interval_22004
ID_LOW_BATTERY_PUSH -> push_interval_22005 ID_LOW_BATTERY_PUSH -> push_interval_22005
ID_LOW_RAM_PUSH -> push_interval_22007 ID_LOW_RAM_PUSH -> push_interval_22007
// ID_PHONE_ACCELERATE -> push_interval_22011
else -> 0 else -> 0
} }
return interval return interval
......
...@@ -28,5 +28,6 @@ data class FileBean( ...@@ -28,5 +28,6 @@ data class FileBean(
fun isOther() = !isImage() && !isVideo() && !isAudio() && !isZip() && !isApk() fun isOther() = !isImage() && !isVideo() && !isAudio() && !isZip() && !isApk()
fun isJunk() = !isDir && type in listOf("tmp", "cache", "temp") fun isJunk() = !isDir && type in listOf("tmp", "cache", "temp")
fun isOtherTrash() = !isDir && type in listOf("log", "bak", "old", "chk", "gid", "dmp", "thumb", "crdownload", "part", "trash", "trashes") fun isOtherTrash() =
!isDir && type in listOf("log", "bak", "old", "chk", "gid", "dmp", "thumb", "crdownload", "part", "trash", "trashes")
} }
\ No newline at end of file
...@@ -17,22 +17,18 @@ import com.google.gson.reflect.TypeToken ...@@ -17,22 +17,18 @@ import com.google.gson.reflect.TypeToken
import com.test.basd.supercleanermax.R import com.test.basd.supercleanermax.R
import com.test.basd.supercleanermax.activity.splash.NewSplashActivity import com.test.basd.supercleanermax.activity.splash.NewSplashActivity
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_APP_MANAGER import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_APP_MANAGER
//import com.test.basd.cleanmaster.bean.ConfigBean.Companion.ID_BATTERY_OPTIMIZATION
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_BATTERY_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_BATTERY_PUSH
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CHARGE import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CHARGE
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CLEAN_NOTIFICATION import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CLEAN_NOTIFICATION
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_CLEAN_SPEAKER
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_INSTALL_PACKAGE_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_INSTALL_PACKAGE_PUSH
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_JUNK_CLEAN_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_JUNK_CLEAN_PUSH
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_LARGE_FILE_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_LARGE_FILE_PUSH
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_LOW_BATTERY_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_LOW_BATTERY_PUSH
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_NETWORK_TRAFFIC import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_NETWORK_TRAFFIC
//import com.test.basd.cleanmaster.bean.ConfigBean.Companion.ID_PHONE_ACCELERATE
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_PHOTO_COMPRESS import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_PHOTO_COMPRESS
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_RECENT_USE_APP import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_RECENT_USE_APP
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_SIMILAR_IMAGE import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_SIMILAR_IMAGE
import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_UNINSTALL_PACKAGE_PUSH import com.test.basd.supercleanermax.bean.ConfigBean.Companion.ID_UNINSTALL_PACKAGE_PUSH
//import com.test.basd.cleanmaster.bean.ConfigBean.Companion.ID_VIRUS_PUSH
import com.test.basd.supercleanermax.helps.BaseApplication import com.test.basd.supercleanermax.helps.BaseApplication
import com.test.basd.supercleanermax.helps.ComUtils import com.test.basd.supercleanermax.helps.ComUtils
import com.test.basd.supercleanermax.helps.EventHelper import com.test.basd.supercleanermax.helps.EventHelper
...@@ -64,7 +60,6 @@ object NotificationHelper { ...@@ -64,7 +60,6 @@ object NotificationHelper {
ID_CLEAN_NOTIFICATION, ID_CLEAN_NOTIFICATION,
ID_RECENT_USE_APP, ID_RECENT_USE_APP,
ID_SIMILAR_IMAGE, ID_SIMILAR_IMAGE,
ID_CLEAN_SPEAKER,
) )
/** /**
...@@ -174,12 +169,6 @@ object NotificationHelper { ...@@ -174,12 +169,6 @@ object NotificationHelper {
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
ID_CLEAN_SPEAKER -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.speaker_home)
remoteViews.setTextViewText(R.id.tv_desc, "Clean the speaker dust and fix the low volume problem")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
}
//==================================下面是被动推送的情况=============================================== //==================================下面是被动推送的情况===============================================
ID_INSTALL_PACKAGE_PUSH -> { ID_INSTALL_PACKAGE_PUSH -> {
......
package com.test.basd.supercleanermax.display.fcm package com.test.basd.supercleanermax.display.fcm
import android.annotation.SuppressLint
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.util.Log import android.util.Log
import com.google.android.gms.tasks.OnCompleteListener import com.google.android.gms.tasks.OnCompleteListener
import com.google.android.gms.tasks.Task import com.google.android.gms.tasks.Task
......
...@@ -312,13 +312,14 @@ ...@@ -312,13 +312,14 @@
android:layout_marginBottom="190dp" android:layout_marginBottom="190dp"
android:gravity="center" android:gravity="center"
android:lineHeight="20dp" android:lineHeight="20dp"
android:text="Scan app\n..." android:text="Wait a moment please.\n..."
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="19sp" android:textSize="19sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent"
tools:ignore="HardcodedText,UnusedAttribute" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
......
...@@ -205,6 +205,7 @@ ...@@ -205,6 +205,7 @@
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" /> android:textStyle="bold" />
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>
...@@ -218,7 +219,6 @@ ...@@ -218,7 +219,6 @@
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<com.airbnb.lottie.LottieAnimationView <com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottie" android:id="@+id/lottie"
android:layout_width="0dp" android:layout_width="0dp"
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="40dp" android:layout_marginTop="40dp"
android:gravity="center" android:gravity="center"
android:text="Scan large file\n..." android:text="Wait a moment please."
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="19sp" android:textSize="19sp"
android:textStyle="bold" android:textStyle="bold"
...@@ -249,7 +249,6 @@ ...@@ -249,7 +249,6 @@
app:layout_constraintTop_toBottomOf="@id/lottie" app:layout_constraintTop_toBottomOf="@id/lottie"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
...@@ -54,9 +55,10 @@ ...@@ -54,9 +55,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:text="Scanning..." android:text="Wait a moment please."
android:textColor="#666666" android:textColor="#666666"
android:textSize="16sp" /> android:textSize="16sp"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.LinearLayoutCompat <androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent" android:layout_width="match_parent"
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_back_speak_cleaner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:paddingHorizontal="12dp"
android:src="@mipmap/fanhui"
android:tint="@color/black"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Speaker Cleaner"
android:textColor="#000000"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/id_back_speak_cleaner"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/id_back_speak_cleaner" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
app:layout_constraintBottom_toTopOf="@+id/id_clean_dust"
app:layout_constraintTop_toBottomOf="@+id/id_back_speak_cleaner">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/speakertu" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:text="Click the button to start cleaning"
android:textColor="#000000"
android:textSize="15sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="28dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:text="There will be vibration and sound during speaker cleaning,which is normal!"
android:textColor="#999999"
android:textSize="13sp" />
</androidx.appcompat.widget.LinearLayoutCompat>
<com.noober.background.view.BLTextView
android:id="@+id/id_clean_dust"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginHorizontal="41dp"
android:layout_marginBottom="36dp"
android:gravity="center"
android:text="Clean Dust"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold"
app:bl_corners_radius="24dp"
app:bl_gradient_angle="180"
app:bl_gradient_endColor="@color/color_655afd"
app:bl_gradient_startColor="#8720eb"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_655afd">
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/id_ll_p1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="visible">
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/id_speak_clean_lottie"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:lottie_autoPlay="true"
app:lottie_loop="true" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Cleaning"
android:textColor="@color/white"
android:textSize="21sp"
android:textStyle="bold" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:layout_marginBottom="19dp">
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
android:layout_marginHorizontal="2dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Wait a moment please"
android:textColor="@color/white"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="50dp"
android:layout_marginTop="54dp"
android:layout_marginBottom="96dp"
android:gravity="center"
android:text="There will be vibration and sound during speaker cleaning, which is normal!"
android:textColor="#80FFFFFF"
android:textSize="12sp" />
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/id_ll_p2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/id_lottie_complete"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:lottie_rawRes="@raw/new_complete" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="290dp"
android:text="Speaker cleaning completed"
android:textColor="@color/white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#0ec897">
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/id_rocket"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/id_one_lottie"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="46dp"
android:layout_marginTop="182dp"
app:layout_constraintBottom_toTopOf="@+id/id_scaning"
app:layout_constraintTop_toTopOf="parent"
app:lottie_autoPlay="true"
app:lottie_loop="true" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_speed_icon"
android:layout_width="42dp"
android:layout_height="42dp"
android:layout_marginBottom="15dp"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@+id/id_scaning"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/id_scaning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="19dp"
android:text="Scanning"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/id_scan"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/id_scan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:layout_marginBottom="140dp"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent">
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
android:layout_marginHorizontal="2dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="#4772ff"> android:background="#4772ff">
...@@ -20,53 +21,16 @@ ...@@ -20,53 +21,16 @@
android:id="@+id/id_scaning" android:id="@+id/id_scaning"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="19dp" android:layout_marginBottom="100dp"
android:text="Scanning" android:gravity="center"
android:text="Wait a moment please."
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/id_scan" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/id_scan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:gravity="center"
android:layout_marginBottom="20dp"
app:layout_constraintBottom_toTopOf="@+id/id_tv_b_1">
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
android:layout_marginHorizontal="2dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
app:bl_shape="oval"
app:bl_solid_color="@color/white" />
</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
android:id="@+id/id_tv_b_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="140dp"
android:text="Wait a moment please"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
android:layout_marginHorizontal="41dp" android:layout_marginHorizontal="41dp"
android:layout_marginTop="11dp" android:layout_marginTop="11dp"
android:gravity="center" android:gravity="center"
android:text="Clean Up" android:text="Clean Junk"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="19sp" android:textSize="19sp"
android:textStyle="bold" android:textStyle="bold"
...@@ -366,7 +366,6 @@ ...@@ -366,7 +366,6 @@
</com.noober.background.view.BLConstraintLayout> </com.noober.background.view.BLConstraintLayout>
<com.noober.background.view.BLLinearLayout <com.noober.background.view.BLLinearLayout
android:id="@+id/id_speak_clean"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="85dp" android:layout_height="85dp"
android:layout_margin="4dp" android:layout_margin="4dp"
...@@ -387,7 +386,6 @@ ...@@ -387,7 +386,6 @@
<androidx.appcompat.widget.AppCompatImageView <androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:src="@mipmap/speaker_home"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
...@@ -406,7 +404,6 @@ ...@@ -406,7 +404,6 @@
android:layout_marginBottom="20dp" android:layout_marginBottom="20dp"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:text="Speaker Cleaner"
android:textColor="#000000" android:textColor="#000000"
android:textSize="12sp" android:textSize="12sp"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<string name="more">More</string> <string name="more">More</string>
<string name="large_file_cleaner">Large File Cleaner</string> <string name="large_file_cleaner">Large File Cleaner</string>
<string name="app_manager">App Manager</string> <string name="app_manager">App Manager</string>
<string name="speaker_cleaner">Speaker Cleaner</string>
<string name="network_traffic">Network Traffic</string> <string name="network_traffic">Network Traffic</string>
<string name="notification_cleaner">Notification Cleaner</string> <string name="notification_cleaner">Notification Cleaner</string>
<string name="recent_app_usage">Recent App Usage</string> <string name="recent_app_usage">Recent App Usage</string>
......
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