Try and resolve the package name from the intent directly falling back to the resolved component name if it fails. (Bug 6452306)

Change-Id: Ifb2187fb845f807f30df966bf298ffde1b779b46
This commit is contained in:
Winson Chung
2012-05-07 10:34:12 -07:00
parent 96b8a056f8
commit be365165ed
6 changed files with 36 additions and 7 deletions
@@ -381,8 +381,8 @@ public class DragController {
if (dragInfo != null &&
dragInfo.intent != null &&
info.intent != null) {
boolean isSamePackage = info.intent.getComponent().getPackageName().equals(
dragInfo.intent.getComponent().getPackageName());
boolean isSamePackage = dragInfo.getPackageName().equals(
info.getPackageName());
if (isSamePackage) {
cancelDrag();
return;