summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/contacts
AgeCommit message (Collapse)Author
2018-07-10Use ContactDisplayPreferencesStub when device is locked.Eric Erfanian
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
2018-06-27Request high resolution photo to be downloaded by the sync adapter when a ↵twyen
contact is added to the favorites. To conserve resources synced contacts only have the low-res icon by default, and the hi-res photo is only synced when the contact is viewed. When a contact is "viewed" in dialer, dialer should send a ACTION_VIEW with the contact URI to the sync adapter service. TEST=TAP Test: TAP PiperOrigin-RevId: 202373390 Change-Id: Ie3a173b7c3f442dc806a719910aea9b3a6c5cf4f
2018-06-26Optimize images in com.android.dialer.contacts.resources.twyen
TEST=TAP Test: TAP PiperOrigin-RevId: 202036993 Change-Id: If56cc9f19d70a8bdf06703cc2553ebb86751edbd
2018-06-26Move contacts.commons.R to dialer.contacts.resourcestwyen
This reduces dependency on contacts.common which is full of things that should not be there. Ideally resources inside dialer.contacts.resources should be individually moved to appropriate locations, but the resources are too large to work with. TEST=TAP Test: TAP PiperOrigin-RevId: 202029832 Change-Id: I95bfcb59799b9c3640de03ad0680624fc1b2c3a3
2018-06-26Refactor ContactPreferencetwyen
Moving it outside contacts.commons reduces dependency to legacy code. Also removed redundant implementations such as caching SharedPreferences (it is already cached), custom ListPreferences (standard ListPreferences already have what we want), and corrected preference storage location (allow standard ListPreferences to work) TEST=TAP Test: TAP PiperOrigin-RevId: 202000393 Change-Id: I45374e610b3510784b5a4da92e5d8462cbfc92bb