OSDN Git Service

Do not allow duplicate shortcuts when ALL_APPS is disabled.
authorNilesh Agrawal <nileshagrawal@google.com>
Tue, 17 Dec 2013 23:20:50 +0000 (15:20 -0800)
committerNilesh Agrawal <nileshagrawal@google.com>
Tue, 17 Dec 2013 23:26:00 +0000 (15:26 -0800)
commitdff0bfeb901e767ca9b57f9b8051c7fd077626e9
tree88c22b901143b2ef8ab003da906b308e343162eb
parentf6a22ada816ae4f63576679f03472b0a984e82be
Do not allow duplicate shortcuts when ALL_APPS is disabled.

When DISABLE_ALL_APPS is true, we want to have only one shortcut for each activityexposed via the Application's manifest.
We ignore INSTALL_SHORTCUT broadcasts which have launch intents with ACTION_MAIN and CATEGORY_LAUNCHER.
Applications can still create shortcuts pointing to an already exposed component if they provide data or extras in the intent.

Change-Id: I0b05283ea6c522d197e0262c2997f7298e08740b
src/com/android/launcher3/DeleteDropTarget.java
src/com/android/launcher3/InstallShortcutReceiver.java