diff options
| author | Pinyao Ting <pinyaoting@google.com> | 2020-03-11 16:27:42 -0700 |
|---|---|---|
| committer | Pinyao Ting <pinyaoting@google.com> | 2020-03-11 23:42:58 +0000 |
| commit | 021faf9d191e2cc7f645f45285143a6832ef0434 (patch) | |
| tree | fec0bd956de4e6c853ec930cf0e3f7e9414d4845 /core/java/android | |
| parent | 27deb3b71178f9bfe8743cb50703dc97571e8176 (diff) | |
Remove misleading comments
The display order of the shortcuts is solely determined by launcher apps
implementation at their own discretion, the rank of the shortcut merely
serves as a guideline. Thus removing the misleading paragraph to prevent
confusions.
Bug: 150254995
Test: make
Change-Id: I4cdb9a5779edfdb5b56659e4787b3f13e7e3054e
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/content/pm/ShortcutInfo.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/java/android/content/pm/ShortcutInfo.java b/core/java/android/content/pm/ShortcutInfo.java index 49e8c052cbca..af875787bba6 100644 --- a/core/java/android/content/pm/ShortcutInfo.java +++ b/core/java/android/content/pm/ShortcutInfo.java @@ -1558,11 +1558,6 @@ public final class ShortcutInfo implements Parcelable { * "Rank" of a shortcut, which is a non-negative, sequential value that's unique for each * {@link #getActivity} for each of the two types of shortcuts (static and dynamic). * - * <p>Because static shortcuts and dynamic shortcuts have overlapping ranks, - * when a launcher app shows shortcuts for an activity, it should first show - * the static shortcuts, followed by the dynamic shortcuts. Within each of those categories, - * shortcuts should be sorted by rank in ascending order. - * * <p><em>Floating shortcuts</em>, or shortcuts that are neither static nor dynamic, will all * have rank 0, because they aren't sorted. * |
