Commit 1dab7ad6 authored by wanglei's avatar wanglei

Initial commit

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