Commit 1dab7ad6 authored by wanglei's avatar wanglei

Initial commit

parent c1512a99
......@@ -38,7 +38,6 @@ class FileCategoryFragment : BaseFragment<FragmentFileCategoryBinding>() {
private lateinit var recentAdapter: FileCategoryAdapter
private lateinit var valueAnimator: ValueAnimator
private val categoryList = listOf(
FileCategoryBean(FileCategoryBean.Audio, R.mipmap.audio, FileCategoryBean.Audio),
FileCategoryBean(FileCategoryBean.Image, R.mipmap.image, FileCategoryBean.Image),
......@@ -120,7 +119,13 @@ class FileCategoryFragment : BaseFragment<FragmentFileCategoryBinding>() {
"Our application needs to manager your files Before you authorize, we need to confirm with you:",
deny = {},
allow = {
startActivity(Intent(requireContext(), FileManagerActivity::class.java))
val launcher = (requireActivity() as MainActivity).launcher
requireContext().requestStorePermission(launcher, result = {
if (it) {
startActivity(Intent(requireContext(), FileManagerActivity::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