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:
@@ -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