fixed sync on key import, 'me' linked contact crash

This commit is contained in:
Adithya Abraham Philip
2015-05-08 19:05:21 +05:30
parent 64a85721cb
commit 797cd28997
3 changed files with 52 additions and 1 deletions

View File

@@ -133,6 +133,8 @@ public class ViewKeyFragment extends LoaderFragment implements
* @param contactId
*/
private void loadLinkedSystemContact(final long contactId) {
// contact doesn't exist, stop
if(contactId == -1) return;
final Context context = mSystemContactName.getContext();
final ContentResolver resolver = context.getContentResolver();