Commit 6ba42314 authored by wanglei's avatar wanglei

...

parent cc436a26
......@@ -75,7 +75,7 @@ object NotificationHelp {
val lastUseJunkTime = AppPreferences.getInstance().getLong("last_use_junk_clean", 0)
val flag2 =
lastUseJunkTime == 0L || System.currentTimeMillis() - lastUseJunkTime > 24 * 60 * 60 * 1000
return flag1 || flag2
return flag1 && flag2
}
//新闻
......@@ -97,7 +97,7 @@ object NotificationHelp {
val lastUseTime = AppPreferences.getInstance().getLong("last_process_use_time", 0)
val flag2 =
lastUseTime == 0L || System.currentTimeMillis() - lastUseTime > 24 * 60 * 60 * 1000
return flag1 || flag2
return flag1 && flag2
}
......
......@@ -135,8 +135,9 @@ class FileFragment : BaseFragment<FragmentFileBinding>() {
deny = { }, allow = {
val launcher = (requireActivity() as MainActivity).launcher
requireContext().requestStorePermission(launcher, result = {
if (it)
if (it) {
startActivity(Intent(requireContext(), WebDownloadManagerActivity::class.java))
}
})
})
}
......
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