spacecowboy/NotePad — Issue #35: Crash on quick settings change
Author: spacecowboy
Created: 2012-01-25 08:02:42+00:00
State: open
Labels: Bug

Happened in the wild

java.lang.IllegalStateException: Fragment NotesPreferenceFragment{4180c8d8} not attached to Activity
at android.app.Fragment.getResources(Fragment.java:732)
at android.app.Fragment.getText(Fragment.java:744)
at com.nononsenseapps.notepad.NotesPreferenceFragment.setThemeSummary(NotesPreferenceFragment.java:118)
at com.nononsenseapps.notepad.NotesPreferenceFragment.onSharedPreferenceChanged(NotesPreferenceFragment.java:67)
at android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:455)
at android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:365)
at android.preference.Preference.tryCommit(Preference.java:1339)
at android.preference.Preference.persistString(Preference.java:1372)
at android.preference.ListPreference.setValue(ListPreference.java:135)
at android.preference.ListPreference.onDialogClosed(ListPreference.java:266)
at android.preference.DialogPreference.onDismiss(DialogPreference.java:381)
at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1199)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)