Shusshu / Android-RecurrencePicker

Google Calendar Recurrence picker
Apache License 2.0
240 stars 51 forks source link

Preference integration #16

Open neutt22 opened 7 years ago

neutt22 commented 7 years ago

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

Shusshu commented 7 years ago

You don't need it for the library to work

neutt22 commented 7 years ago

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

neutt22 commented 7 years ago

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 commented 7 years ago

You can maybe use a PreferenceFragment instead...

neutt22 commented 7 years ago

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