public class

PhotoPriorityResolver

extends Object
java.lang.Object
   ↳ com.android.providers.contacts.PhotoPriorityResolver

Class Overview

Maintains a cache of photo priority per account type. During contact aggregation photo with a higher priority is chosen for the the entire contact, barring an explicit override by the user, which is captured as the is_superprimary flag on the photo itself.

Summary

Constants
int DEFAULT_PRIORITY
Public Constructors
PhotoPriorityResolver(Context context)
Public Methods
synchronized int getPhotoPriority(String accountType)
Returns the photo priority for the specified account type.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DEFAULT_PRIORITY

Constant Value: 7 (0x00000007)

Public Constructors

public PhotoPriorityResolver (Context context)

Public Methods

public synchronized int getPhotoPriority (String accountType)

Returns the photo priority for the specified account type. Maintains cache of photo priorities.