Fix crash when opening the pin code activity while using a custom locale
Fixes #3075 (closed)
This was due to the context being a ContextWrapper that is not able to directly get the ApplicationContext. It was only happening here because every Factory is called in Fragments that provide a different context.