Allow creating custom dialogs in DialogPreference.

This allows creating non-AlertDialogs while still using the click and
state handling of DialogPreference.

Change-Id: I54fd7d6d6b9f6a49fef1ae95e0178838b3edfa56
Fix: es and fr translation

caused bootloop when show battery always was activated
on lockscreen in es and fr

Change-Id: Ib34de6a43ac892e3a5d3b17d38bf56cc35bcff93