suarezjulian/WizardPager

Cannot use strings in model

dalexanco opened this issue · 1 comments

All strings are in wizardpager but we cannot use a conext with getString because the initialization of the wizardmodel is static, so the application is not created yet :(

You mean inside your wizard Model?, if you extend from AbstractWizardModel, which btw you should, you have a context (mContext), so you can use it to get your strings, and even cast it to your specific activity.

Just make sure you initialize the model with a correct context.

I'm gonna close this issue but feel free to reopen it or post a new one if you need to.