Show App Info when dragging widgets from the workspace.
Bug: 24190195 Change-Id: I65f67b7c1a1ae895035942aa97e40186ea5a206f
This commit is contained in:
1 parent
fcd19dfcd3
commit
ce86e194c4
2 files changed
+9
-4
No files matched your search
@@ -87,9 +87,12 @@ public class UninstallDropTarget extends ButtonDropTarget {
|
||||
final Runnable checkIfUninstallWasSuccess = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
String packageName = componentInfo.first.getPackageName();
|
||||
boolean uninstallSuccessful = !AllAppsList.packageHasActivities(
|
||||
getContext(), packageName, user);
|
||||
boolean uninstallSuccessful = false;
|
||||
if (componentInfo != null) {
|
||||
String packageName = componentInfo.first.getPackageName();
|
||||
uninstallSuccessful = !AllAppsList.packageHasActivities(
|
||||
getContext(), packageName, user);
|
||||
}
|
||||
sendUninstallResult(d.dragSource, uninstallSuccessful);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user