desc="This feature requires access to your storage to scan your files and clean up junk files and unused APK files. We will not transmit your data to any third-party service. Please grant permission so that we can provide you with better service.",
deny={finishToMain()},
allow={
requestStorePermission(launcher,result={
if(it){
onResumePlay=true
}else{
finishToMain()
}
})
})
}
}
...
...
@@ -63,16 +60,13 @@ class ScanJunkActivity : BaseActivity<ActivityLayoutScanJunkBinding>() {
}
}
privatevarisPause=false
overridefunonResume(){
super.onResume()
if(onResumePlay){
playLottie()
}
if(isPause){
binding.lottie.resumeAnimation()
if(checkStorePermission()){
resumeLottie()
job=waitJob()
}
isPause=false
}
overridefunonDestroy(){
...
...
@@ -85,70 +79,76 @@ class ScanJunkActivity : BaseActivity<ActivityLayoutScanJunkBinding>() {