OSDN Git Service

Fixing wrong check being used for application status
authorSunny Goyal <sunnygoyal@google.com>
Thu, 2 Mar 2017 01:27:16 +0000 (17:27 -0800)
committerSunny Goyal <sunnygoyal@google.com>
Thu, 2 Mar 2017 01:38:12 +0000 (17:38 -0800)
commitf2db25398a029b6f13afccbec331e35c8007dde6
treef00fd4b41dfc5513459a31722a591a76d6cabc8d
parented7bef195cc1a0363d205df52a7ae6555bfcdaf7
Fixing wrong check being used for application status

Earlier we were relying on activity list to check is an app is
installed or not. It fails if the app only exposes widgets and
no visible activity. Hence dragging an icon to AppInfo sometimes
causes the icon to get disappear.

Bug: 33241335
Change-Id: Ieb71e298a0930dd0a831cf09bd1e998514a427fd
src/com/android/launcher3/AllAppsList.java
src/com/android/launcher3/UninstallDropTarget.java
src/com/android/launcher3/compat/LauncherAppsCompatVL.java
src/com/android/launcher3/compat/LauncherAppsCompatVO.java