Merge "Make quickcontact launchable with am" into jb-dev
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index eb5fb23..3c91716 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -197,7 +197,7 @@
Uri lookupUri = intent.getData();
// Check to see whether it comes from the old version.
- if (LEGACY_AUTHORITY.equals(lookupUri.getAuthority())) {
+ if (lookupUri != null && LEGACY_AUTHORITY.equals(lookupUri.getAuthority())) {
final long rawContactId = ContentUris.parseId(lookupUri);
lookupUri = RawContacts.getContactLookupUri(getContentResolver(),
ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
@@ -207,8 +207,9 @@
// Read requested parameters for displaying
final Rect sourceBounds = intent.getSourceBounds();
- Preconditions.checkNotNull(sourceBounds, "missing sourceBounds");
- mFloatingLayout.setChildTargetScreen(sourceBounds);
+ if (sourceBounds != null) {
+ mFloatingLayout.setChildTargetScreen(sourceBounds);
+ }
mExcludeMimes = intent.getStringArrayExtra(QuickContact.EXTRA_EXCLUDE_MIMES);