Loading src/com/android/contacts/ContactLoader.java +3 −3 Original line number Diff line number Diff line Loading @@ -1254,11 +1254,11 @@ public class ContactLoader extends AsyncTaskLoader<ContactLoader.Result> { final AccountType accountType = AccountTypeManager.getInstance(context).getAccountType( type, dataSet); final String serviceName = accountType.getViewContactNotifyServiceClassName(); final String resPackageName = accountType.resPackageName; if (!TextUtils.isEmpty(serviceName) && !TextUtils.isEmpty(resPackageName)) { final String servicePackageName = accountType.getViewContactNotifyServicePackageName(); if (!TextUtils.isEmpty(serviceName) && !TextUtils.isEmpty(servicePackageName)) { final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); final Intent intent = new Intent(); intent.setClassName(resPackageName, serviceName); intent.setClassName(servicePackageName, serviceName); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(uri, RawContacts.CONTENT_ITEM_TYPE); try { Loading src/com/android/contacts/ContactsUtils.java +4 −4 Original line number Diff line number Diff line Loading @@ -204,16 +204,16 @@ public class ContactsUtils { * Returns the intent to launch for the given invitable account type and contact lookup URI. * This will return null if the account type is not invitable (i.e. there is no * {@link AccountType#getInviteContactActivityClassName()} or * {@link AccountType#resPackageName}). * {@link AccountType#syncAdapterPackageName}). */ public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { String resPackageName = accountType.resPackageName; String syncAdapterPackageName = accountType.syncAdapterPackageName; String className = accountType.getInviteContactActivityClassName(); if (TextUtils.isEmpty(resPackageName) || TextUtils.isEmpty(className)) { if (TextUtils.isEmpty(syncAdapterPackageName) || TextUtils.isEmpty(className)) { return null; } Intent intent = new Intent(); intent.setClassName(resPackageName, className); intent.setClassName(syncAdapterPackageName, className); intent.setAction(ContactsContract.Intents.INVITE_CONTACT); Loading src/com/android/contacts/activities/ContactEditorActivity.java +2 −2 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ public class ContactEditorActivity extends ContactsActivity account.type, account.dataSet); Intent intent = new Intent(); intent.setClassName(accountType.resPackageName, intent.setClassName(accountType.syncAdapterPackageName, accountType.getCreateContactActivityClassName()); intent.setAction(Intent.ACTION_INSERT); intent.setType(Contacts.CONTENT_ITEM_TYPE); Loading @@ -232,7 +232,7 @@ public class ContactEditorActivity extends ContactsActivity account.type, account.dataSet); Intent intent = new Intent(); intent.setClassName(accountType.resPackageName, intent.setClassName(accountType.syncAdapterPackageName, accountType.getEditContactActivityClassName()); intent.setAction(Intent.ACTION_EDIT); intent.setData(rawContactUri); Loading src/com/android/contacts/activities/GroupDetailActivity.java +2 −1 Original line number Diff line number Diff line Loading @@ -147,7 +147,8 @@ public class GroupDetailActivity extends ContactsActivity { final Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, mFragment.getGroupId()); final Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.setClassName(accountType.resPackageName, accountType.getViewGroupActivity()); intent.setClassName(accountType.syncAdapterPackageName, accountType.getViewGroupActivity()); startActivity(intent); } }); Loading src/com/android/contacts/detail/ContactDetailFragment.java +0 −2 Original line number Diff line number Diff line Loading @@ -1193,7 +1193,6 @@ public class ContactDetailFragment extends Fragment implements FragmentKeyListen public String mimetype; public Context context = null; public String resPackageName = null; public boolean isPrimary = false; public int secondaryActionIcon = -1; public int secondaryActionDescription = -1; Loading Loading @@ -1229,7 +1228,6 @@ public class ContactDetailFragment extends Fragment implements FragmentKeyListen entry.kind = (kind.titleRes == -1 || kind.titleRes == 0) ? "" : context.getString(kind.titleRes); entry.data = buildDataString(kind, values, context); entry.resPackageName = kind.resPackageName; if (kind.typeColumn != null && values.containsKey(kind.typeColumn)) { entry.type = values.getAsInteger(kind.typeColumn); Loading Loading
src/com/android/contacts/ContactLoader.java +3 −3 Original line number Diff line number Diff line Loading @@ -1254,11 +1254,11 @@ public class ContactLoader extends AsyncTaskLoader<ContactLoader.Result> { final AccountType accountType = AccountTypeManager.getInstance(context).getAccountType( type, dataSet); final String serviceName = accountType.getViewContactNotifyServiceClassName(); final String resPackageName = accountType.resPackageName; if (!TextUtils.isEmpty(serviceName) && !TextUtils.isEmpty(resPackageName)) { final String servicePackageName = accountType.getViewContactNotifyServicePackageName(); if (!TextUtils.isEmpty(serviceName) && !TextUtils.isEmpty(servicePackageName)) { final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); final Intent intent = new Intent(); intent.setClassName(resPackageName, serviceName); intent.setClassName(servicePackageName, serviceName); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(uri, RawContacts.CONTENT_ITEM_TYPE); try { Loading
src/com/android/contacts/ContactsUtils.java +4 −4 Original line number Diff line number Diff line Loading @@ -204,16 +204,16 @@ public class ContactsUtils { * Returns the intent to launch for the given invitable account type and contact lookup URI. * This will return null if the account type is not invitable (i.e. there is no * {@link AccountType#getInviteContactActivityClassName()} or * {@link AccountType#resPackageName}). * {@link AccountType#syncAdapterPackageName}). */ public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { String resPackageName = accountType.resPackageName; String syncAdapterPackageName = accountType.syncAdapterPackageName; String className = accountType.getInviteContactActivityClassName(); if (TextUtils.isEmpty(resPackageName) || TextUtils.isEmpty(className)) { if (TextUtils.isEmpty(syncAdapterPackageName) || TextUtils.isEmpty(className)) { return null; } Intent intent = new Intent(); intent.setClassName(resPackageName, className); intent.setClassName(syncAdapterPackageName, className); intent.setAction(ContactsContract.Intents.INVITE_CONTACT); Loading
src/com/android/contacts/activities/ContactEditorActivity.java +2 −2 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ public class ContactEditorActivity extends ContactsActivity account.type, account.dataSet); Intent intent = new Intent(); intent.setClassName(accountType.resPackageName, intent.setClassName(accountType.syncAdapterPackageName, accountType.getCreateContactActivityClassName()); intent.setAction(Intent.ACTION_INSERT); intent.setType(Contacts.CONTENT_ITEM_TYPE); Loading @@ -232,7 +232,7 @@ public class ContactEditorActivity extends ContactsActivity account.type, account.dataSet); Intent intent = new Intent(); intent.setClassName(accountType.resPackageName, intent.setClassName(accountType.syncAdapterPackageName, accountType.getEditContactActivityClassName()); intent.setAction(Intent.ACTION_EDIT); intent.setData(rawContactUri); Loading
src/com/android/contacts/activities/GroupDetailActivity.java +2 −1 Original line number Diff line number Diff line Loading @@ -147,7 +147,8 @@ public class GroupDetailActivity extends ContactsActivity { final Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, mFragment.getGroupId()); final Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.setClassName(accountType.resPackageName, accountType.getViewGroupActivity()); intent.setClassName(accountType.syncAdapterPackageName, accountType.getViewGroupActivity()); startActivity(intent); } }); Loading
src/com/android/contacts/detail/ContactDetailFragment.java +0 −2 Original line number Diff line number Diff line Loading @@ -1193,7 +1193,6 @@ public class ContactDetailFragment extends Fragment implements FragmentKeyListen public String mimetype; public Context context = null; public String resPackageName = null; public boolean isPrimary = false; public int secondaryActionIcon = -1; public int secondaryActionDescription = -1; Loading Loading @@ -1229,7 +1228,6 @@ public class ContactDetailFragment extends Fragment implements FragmentKeyListen entry.kind = (kind.titleRes == -1 || kind.titleRes == 0) ? "" : context.getString(kind.titleRes); entry.data = buildDataString(kind, values, context); entry.resPackageName = kind.resPackageName; if (kind.typeColumn != null && values.containsKey(kind.typeColumn)) { entry.type = values.getAsInteger(kind.typeColumn); Loading