-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App crash #8
Comments
Considering that it goes out after I compile it, it probably loads the file lists. How about limiting the list of visible files to 20 pieces. And then by pressing the 'load more' button |
This should have nothing to do with folder. This is a code design error. I think I can update it. |
According to my design, it should support 5000 records, here this is a value I set casually that should be designed based on the current system memory share. Or "load more",just like what you said. |
Good. Thank you. |
It takes a little bit of time, and I can only optimize it out of work |
I have absolutely everything bad, something, I chose 10_000, the minimum threshold, t.to. below it falls. after giving permission to access memory. |
GitHub Source build
I had to delete the test folder in Android Studio.
The app does not ask for permission to access the location, which causes the crash.
FATAL EXCEPTION: main
Process: com.mob.lee.fastair, PID: 31432
java.lang.IllegalArgumentException: Permission launcher is null,you should call registerPermission first
at com.mob.lee.fastair.viewmodel.AppViewModel.withPermission(AppViewModel.kt:68)
at com.mob.lee.fastair.fragment.DiscoverFragment.setting(DiscoverFragment.kt:62)
at com.mob.lee.fastair.base.AppFragment.onViewCreated(AppFragment.kt:52)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3019)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:551)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1840)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1764)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1701)
at androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:488)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7386)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
The text was updated successfully, but these errors were encountered: