-
Notifications
You must be signed in to change notification settings - Fork 207
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
Add MvpPreferenceActivity and MvpPreferenceFragment #206
Comments
You able to create your own MvpPreferenceActivity =) Just make it same as MvpActivity, but extends from PreferenceActivity instead of just Activity. Currently I don't see more same requests and I don't plane to do this. |
Thank You, I create my own MvpPreferenceActivity. |
I never used PreferenceActivity and ListReference before =) Could you explain your question?) |
Yes. There is no setContentView(R.layout...), but have addPreferencesFromResource(R.xml...) There defined preferences showed on the screen On click on ListPreference Android automatically show dialog with list of values. So I couldn't call some presenter function on this action. When screen rotates, activity recreates and dialog hides. I need some mechanics to override this classes (some moxy classes) and have able to call presenter function on show dialog window. To have able to re-show it on re-create activity, using some strategy. |
I think you can do something like this:
public void showDialog() {
if (presenter.isInRestoreState()) {
listPreference.showDialog(...);
}
} Then
|
Thank You, catch the idea. |
A lot of applications have preference screen. Google recommends to use PreferenceActivity and PreferenceFragment. Need support of Preference mechanics in Moxy.
The text was updated successfully, but these errors were encountered: