OSDN Git Service

Log shortcuts open on ACTION_UP instead of in showForIcon().
authorTony Wickham <twickham@google.com>
Wed, 10 Aug 2016 23:06:22 +0000 (16:06 -0700)
committerTony Wickham <twickham@google.com>
Thu, 11 Aug 2016 01:26:41 +0000 (18:26 -0700)
commitbe06874c8105cf1beec8171235600da9f4ee035e
treec328c49a09e9da56de3fc14c814d598c79584beb
parent37aba27bbcc89417588a638d61099288553387df
Log shortcuts open on ACTION_UP instead of in showForIcon().

- We only want to log when the container is opened and potentially
  used, not when a long press is followed by a drag-and-drop.
- Also cleaned up code that was determining the container of the
  app icon, since LaunchSourceProvider.fillInLaunchSourceData()
  can do that instead (it's more robust and consistent).

Bug: 30791570
Change-Id: I05b6750f26182fda8a9940ac66f1371c2d228ca9
src/com/android/launcher3/allapps/AllAppsRecyclerView.java
src/com/android/launcher3/logging/UserEventDispatcher.java
src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java