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

Preference integration #16

Open
neutt22 opened this issue Aug 2, 2017 · 5 comments
Open

Preference integration #16

neutt22 opened this issue Aug 2, 2017 · 5 comments

Comments

@neutt22
Copy link

neutt22 commented Aug 2, 2017

I'd like to know how to instantiate one without having access to getSupportFragmentManager object since I will use this inside PreferenceActivity

@Shusshu
Copy link
Owner

Shusshu commented Aug 2, 2017

You don't need it for the library to work

@neutt22
Copy link
Author

neutt22 commented Aug 6, 2017

Hi @Shusshu, in order to create an instance you need to have access to that method.

@neutt22
Copy link
Author

neutt22 commented Aug 6, 2017

I'm inside a PreferenceActivity and the lib's show method accepts FragmentManager and String as the second one. In my case I cannot give the 1st parameter hence cannot show the dialog.

@Shusshu
Copy link
Owner

Shusshu commented Aug 6, 2017

You can maybe use a PreferenceFragment instead...

@neutt22
Copy link
Author

neutt22 commented Aug 9, 2017

The PreferenceActivity was auto-generated by Android Studio. Any consequences if I changed it to PreferenceFragment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants