Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Contacts static shortcuts fixes (1/2)
Browse files Browse the repository at this point in the history
* Set the component package name differently for
  the AOSP and GoogleContacts projects
* Prevent shortcuts from going into the default
  application task by setting taskAffinity=""

Bug 30204775
Bug 30201875

Change-Id: Ie7cb3a88bcc90c706628d151b80d964dd222451e
  • Loading branch information
Walter Jang committed Jul 19, 2016
1 parent 0aad572 commit a05b051
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Expand Up @@ -13,7 +13,7 @@ support_library_root_dir := prebuilts/sdk/current/support
endif

src_dirs := src $(contacts_common_dir)/src $(phone_common_dir)/src
res_dirs := res $(contacts_common_dir)/res $(contacts_common_dir)/icons/res $(phone_common_dir)/res
res_dirs := res res-aosp $(contacts_common_dir)/res $(contacts_common_dir)/icons/res $(phone_common_dir)/res
asset_dirs := $(contacts_common_dir)/assets

LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
Expand Down
2 changes: 2 additions & 0 deletions AndroidManifest.xml
Expand Up @@ -361,6 +361,8 @@
android:name=".activities.CompactContactEditorActivity"
android:label="@string/editContactActivityLabel"
android:theme="@style/EditorActivityTheme"
android:excludeFromRecents="true"
android:taskAffinity=""
android:windowSoftInputMode="stateHidden|adjustResize">

<intent-filter android:label="@string/editContactDescription">
Expand Down
4 changes: 2 additions & 2 deletions res/xml/shortcuts.xml → res-aosp/xml/shortcuts.xml
Expand Up @@ -23,7 +23,7 @@
<intent
android:action="android.intent.action.INSERT"
android:data="content://com.android.contacts/contacts"
android:targetClass="com.google.android.contacts.PeopleActivity" />
<categories android:name="android.shortcut.conversation"/>
android:targetPackage="com.android.contacts"
android:targetClass="com.android.contacts.activities.CompactContactEditorActivity"/>
</shortcut>
</shortcuts>

0 comments on commit a05b051

Please sign in to comment.