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

Crash: TagsDialog not attached to a context #7263

Closed
david-allison opened this issue Sep 23, 2020 · 7 comments · Fixed by #7264
Closed

Crash: TagsDialog not attached to a context #7263

david-allison opened this issue Sep 23, 2020 · 7 comments · Fixed by #7264
Labels
2.13.x Bug Keep Open avoids the stale bot Reproduced This bug has been reproduced by a maintainer

Comments

@david-allison
Copy link
Member

https://couchdb.ankidroid.org/acralyzer/_design/acralyzer/index.html#/report-details/87572c2c-bd2f-4fa2-a0b6-69fb67f504b9

  • Add Note screen
  • Tap Preview, then tags before Preview Opens
  • Exit Preview
  • Tags Appears
  • Click "OK"
java.lang.IllegalStateException: Fragment TagsDialog{9c9bf6 (479dc3e3-ee36-4cab-9296-fa8e3b13154f)} not attached to a context.
at androidx.fragment.app.Fragment.requireContext(Fragment.java:2)
at androidx.fragment.app.Fragment.getResources(Fragment.java:1)
at androidx.fragment.app.Fragment.getString(Fragment.java:2)
at com.ichi2.anki.dialogs.TagsDialog.addTag(TagsDialog.java:8)
at com.ichi2.anki.dialogs.TagsDialog.d(TagsDialog.java:1)
at com.ichi2.anki.dialogs.u1.onInput(Unknown Source:2)
at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:13)
at android.view.View.performClick(View.java:6608)
at android.view.View.performClickInternal(View.java:6585)
at android.view.View.access$3100(View.java:785)
at android.view.View$PerformClick.run(View.java:25921)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
@david-allison david-allison added 2.13.x Bug Reproduced This bug has been reproduced by a maintainer labels Sep 23, 2020
@david-allison
Copy link
Member Author

david-allison commented Nov 16, 2020

@david-allison david-allison reopened this Nov 16, 2020
@github-actions
Copy link
Contributor

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

@github-actions github-actions bot added the Stale label Jan 15, 2021
@mikehardy mikehardy added Keep Open avoids the stale bot and removed Stale labels Jan 15, 2021
@github-actions
Copy link
Contributor

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

@github-actions github-actions bot added the Stale label Apr 16, 2021
@mikehardy mikehardy removed the Stale label Apr 16, 2021
@david-allison
Copy link
Member Author

Pretty sure this one's been fixed by Tarekk

@mikehardy
Copy link
Member

No, it was @prateek-singh-3212 :-), and I inadvertently duplicated that issue 🤦 #8973 - should close with #9011 in review now

@david-allison
Copy link
Member Author

david-allison commented Jun 1, 2021

Oh, no, team effort! With the fragment work from Tarekk allowing it to run after pause without closing the dialog, and prateek with stopping the dialogs being dismissed.

@mikehardy
Copy link
Member

quite true!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.13.x Bug Keep Open avoids the stale bot Reproduced This bug has been reproduced by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants