TeamAmaze / TeamAmaze/AmazeFileManager
Ui error - application crash
Open
Nobody has claimed this yet.
Area-UIUX
Issue-Bug
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
It happened after I changed some settings
-show hidden folders
Exception
- User Action: UI Error
- Request: Application crash
- Version: 3.5.2
- OS: Linux Android 9 - 28
- Device: osprey_uds
- Model: MotoG3
- Product: lineage_osprey
Crash log
com.afollestad.materialdialogs.MaterialDialog$DialogException: Bad window token, you cannot show a dialog before an Activity is created or after it's hidden.
at com.afollestad.materialdialogs.MaterialDialog.show(MaterialDialog.java:466)
at com.afollestad.materialdialogs.MaterialDialog$Builder.show(MaterialDialog.java:2189)
at com.amaze.filemanager.utils.Billing.showPaymentsDialog(Billing.java:234)
at com.amaze.filemanager.utils.Billing.popProductsList(Billing.java:124)
at com.amaze.filemanager.utils.Billing.lambda$null$1(Billing.java:108)
at com.amaze.filemanager.utils.Billing.lambda$null$1$Billing(Unknown Source:0)
at com.amaze.filemanager.utils.-$$Lambda$Billing$gtmBzAVhJDmQltgIpHnyGWNsL2Q.onSkuDetailsResponse(Unknown Source:2)
at com.android.billingclient.api.BillingClientImpl$10$1.run(com.android.billingclient:billing@@2.1.0:8)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Billing.showPaymentsDialog and Billing.popProductsList at the stack-trace locations, then trace the billing callback that reaches them. Confirm the crash is avoided when settings changes or activity visibility leave no valid window token, and test on the reported Android device or an equivalent environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100