Skip to content
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

Open
userkilled opened this issue Feb 25, 2023 · 6 comments
Open

App crash #8

userkilled opened this issue Feb 25, 2023 · 6 comments

Comments

@userkilled
Copy link
Contributor

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)

@userkilled
Copy link
Contributor Author

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

@hongui
Copy link
Owner

hongui commented Feb 27, 2023

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)

This should have nothing to do with folder. This is a code design error. I think I can update it.

@hongui
Copy link
Owner

hongui commented Feb 27, 2023

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

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.

@userkilled
Copy link
Contributor Author

Good. Thank you.

@hongui
Copy link
Owner

hongui commented Feb 27, 2023

It takes a little bit of time, and I can only optimize it out of work

@userkilled
Copy link
Contributor Author

I have absolutely everything bad, something, I chose 10_000, the minimum threshold, t.to. below it falls. after giving permission to access memory.
After switching the tab, I click on the selection of one element and that’s it. It’s worth it. Even tabs do not switch.
And yes, and I also noticed that sometimes the "select all" button is lost. And shows "unselected all" and vice versa.
:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants