commit | 8d0557eb013b2808402e491271fe0f13ffcfabef | [log] [tgz] |
---|---|---|
author | Brian Attwell <brianattwell@google.com> | Tue Dec 02 11:18:16 2014 -0800 |
committer | Brian Attwell <brianattwell@google.com> | Tue Dec 02 11:18:16 2014 -0800 |
tree | 7434ee535e59a56822f4674854d8cd51ddbb2db7 | |
parent | afb025cfbcc1b6db48c6045a27387ce45e652a3a [diff] |
Don't show shortcut menu item for homescreen Bug: 18581314 Change-Id: I169ca8e554d3fb288526eee7fc1532d7de2220da
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java index 849bae3..277d1bf 100644 --- a/src/com/android/contacts/quickcontact/QuickContactActivity.java +++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -2224,6 +2224,9 @@ } private boolean isShortcutCreatable() { + if (mContactData == null || mContactData.isUserProfile()) { + return false; + } final Intent createShortcutIntent = new Intent(); createShortcutIntent.setAction(ACTION_INSTALL_SHORTCUT); final List<ResolveInfo> receivers = getPackageManager()