-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fragment code is completely ignored #4
Comments
You should be getting a NoClassDefFound error. Are you building with Eclipse? |
Yes sir. Like I said it has no effect |
Please try closing the projects, then quit eclipse. Launch, re-open and clean the library and your project. |
Same thing |
Is there anything special that needs to go into manifest file? I just have a plain simple Activity definition |
No. I am not able to replicate this. Your snippet should work fine, and a bad value for |
Here is a quick test project I setup using your samples. It also contains the apk that compiled and runs OK. Sorry I cant be of more help. Edit: Forgot the link! |
I run the code and I have absolutely the same effect. Runs fine, change unified:fragment="foo", clean, run, no error. Change back - AccountFragments.onCreate is never accessed. I step through your code and I think the problem is that when isSinglePane returns true then fragments are simply ignored. So when I place some logic into fragment - it will never be picked up |
Take a look at #3 |
This is a separate issue. Lets continue the discussion on issue #8. While we're here though, some history: The initial release of the lib was only a "librarized" port of ADT SettingsActivity template because it was quite a bit of code for a minimally useful PreferenceActivity, and reusing the template was not DRY enough. There's still some weirdness from the template to cast off, pull requests welcome. Edit: wrong issue number -_- |
Hi, the bug still persist. How can i fix it? |
I have a very simple setup following your demo project
pref_general.xml
And the java code
Preferences screen comes up just fine and checkbox property acts appropriately. What puzzle me is that
unified:fragment="bostone.android.jobrio.JobrioPreferenceActivity$AccountsFragment"
is seemingly ignored and in fact I can put any gibberish as fragment value and it will not generate any errors. As far as AccountsFragment goes - its onCreate and onAttach methods are never called.I must be doing something wrong here?
Thanks,
Bo Stone
The text was updated successfully, but these errors were encountered: