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:
1 parent
96b8a056f8
commit
be365165ed
6 files changed
+36
-7
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user