Use ContactDisplayPreferencesStub when device is locked.

PreferenceManager.getDefaultSharedPreferences() can only be called when the device is unlocked. The module will lazily construct the impl.

Fix defaults for contact display preferences.

If the settings are accessed before the preferences are populated the wrong default value will be used.

Test: make
Bug: 111275389, 111051362
Change-Id: I29e34d61d529c91065aa3ef952d125d83cdee982
4 files changed