OSDN Git Service

Address comments on original shortcuts UI CL (ag/1061538).
authorTony Wickham <twickham@google.com>
Thu, 30 Jun 2016 23:21:34 +0000 (16:21 -0700)
committerTony Wickham <twickham@google.com>
Wed, 13 Jul 2016 21:47:58 +0000 (14:47 -0700)
commit7b8f1eaba147ac42a347f3787d0e90b24be015db
tree377eb3b0a1c1d25d93c1175b044ede7bc494ff07
parentc7163ebd0377d6d1d765eb16d5bf08c962bd91fa
Address comments on original shortcuts UI CL (ag/1061538).

- Only add shortcut touch listener to APPLICATION item types, not SHORTCUT.
- Load shortcuts on LauncherModel worker thread instead of using AsyncTask.
- Avoid a couple of unnecessary object allocations.

Change-Id: I31b911b91df71335542545602fe137e270c745d7
src/com/android/launcher3/shortcuts/DeepShortcutManager.java
src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java
src/com/android/launcher3/shortcuts/ShortcutsContainerListener.java