You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Caused by: java.lang.RuntimeException: This should be called after super.onCreate.
at android.preference.PreferenceActivity.requirePreferenceManager(PreferenceActivity.java:1439)
at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:1511)
at package.name.SettingsActivity_.init_(SettingsActivity_.java:38)
at package.name.SettingsActivity_.onCreate(SettingsActivity_.java:32)
at android.app.Activity.performCreate(Activity.java:5990)
I guess the problem is in the generated class:
@OverridepublicvoidonCreate(BundlesavedInstanceState) {
OnViewChangedNotifierpreviousNotifier = OnViewChangedNotifier.replaceNotifier(onViewChangedNotifier_);
init_(savedInstanceState); // that line should be after onCreate (line 32)super.onCreate(savedInstanceState);
OnViewChangedNotifier.replaceNotifier(previousNotifier);
}
privatevoidinit_(BundlesavedInstanceState) {
addPreferencesFromResource(xml.preferences); // line 38
}
Is there anyone who can confirm the bug or indicate my mistake (I did everything as in the wiki section, so I think all should be fine)
Cheers!
Hi,
I've tried to implement the preference screen in my app today and stumbled upon this bug (or am I doing something wrong?)
I have created a xml file with preferences, and annotated the activity :
and it gives me the error:
I guess the problem is in the generated class:
Is there anyone who can confirm the bug or indicate my mistake (I did everything as in the wiki section, so I think all should be fine)
Cheers!