blinskey / greek-reference

An ancient Greek lexicon and grammar for Android.
https://play.google.com/store/apps/details?id=com.benlinskey.greekreference
Apache License 2.0
29 stars 5 forks source link

Fragment not attached to activity #150

Closed blinskey closed 9 years ago

blinskey commented 9 years ago
java.lang.IllegalStateException: Fragment LexiconDetailFragment{2cf2fd91} not attached to Activity
    at android.app.Fragment.getResources(Fragment.java:788)
    at android.app.Fragment.getString(Fragment.java:810)
    at com.benlinskey.greekreference.views.detail.lexicon.LexiconDetailFragment.perseusToolOptionDisabled(LexiconDetailFragment.java:140)
    at com.benlinskey.greekreference.views.detail.lexicon.LexiconDetailFragment.onPrepareOptionsMenu(LexiconDetailFragment.java:126)
    at android.app.Fragment.performPrepareOptionsMenu(Fragment.java:2147)
    at android.app.FragmentManagerImpl.dispatchPrepareOptionsMenu(FragmentManager.java:1974)
    at android.app.Activity.onPreparePanel(Activity.java:2842)
    at android.support.v4.app.FragmentActivity.onPrepareOptionsPanel(FragmentActivity.java:469)
    at android.support.v7.app.ActionBarActivity.superOnPrepareOptionsPanel(ActionBarActivity.java:284)
    at android.support.v7.app.ActionBarActivityDelegate.onPrepareOptionsPanel(ActionBarActivityDelegate.java:204)
    at android.support.v7.app.ActionBarActivity.onPrepareOptionsPanel(ActionBarActivity.java:256)
    at android.support.v4.app.FragmentActivity.onPreparePanel(FragmentActivity.java:458)
    at android.support.v7.app.ActionBarActivity.superOnPreparePanel(ActionBarActivity.java:280)
    at android.support.v7.app.ActionBarActivityDelegate$1.onPreparePanel(ActionBarActivityDelegate.java:84)
    at android.support.v7.widget.WindowCallbackWrapper.onPreparePanel(WindowCallbackWrapper.java:54)
    at android.support.v7.internal.app.ToolbarActionBar$ToolbarCallbackWrapper.onPreparePanel(ToolbarActionBar.java:516)
    at android.support.v7.internal.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:459)
    at android.support.v7.internal.app.ToolbarActionBar$1.run(ToolbarActionBar.java:69)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:211)
    at android.app.ActivityThread.main(ActivityThread.java:5373)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)