Merge "Fixing NPE in DragController. (Bug 6449615)" into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
96b8a056f8
@@ -381,8 +381,8 @@ public class DragController {
|
||||
if (dragInfo != null &&
|
||||
dragInfo.intent != null &&
|
||||
info.intent != null) {
|
||||
boolean isSamePackage = dragInfo.intent.getPackage().equals(
|
||||
info.intent.getPackage());
|
||||
boolean isSamePackage = info.intent.getComponent().getPackageName().equals(
|
||||
dragInfo.intent.getComponent().getPackageName());
|
||||
if (isSamePackage) {
|
||||
cancelDrag();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user