Merge "Fix drag and drop URI permission grants"
This commit is contained in:
committed by
Android (Google) Code Review
commit
077794468a
@@ -77,7 +77,6 @@ class DragState {
|
||||
mSurfaceControl = surface;
|
||||
mFlags = flags;
|
||||
mLocalWin = localWin;
|
||||
mUid = Binder.getCallingUid();
|
||||
mNotifiedWindows = new ArrayList<WindowState>();
|
||||
}
|
||||
|
||||
|
||||
@@ -6972,7 +6972,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
+ " asbinder=" + window.asBinder());
|
||||
}
|
||||
|
||||
final int callerPid = Binder.getCallingPid();
|
||||
final int callerUid = Binder.getCallingUid();
|
||||
final long origId = Binder.clearCallingIdentity();
|
||||
IBinder token = null;
|
||||
|
||||
@@ -6997,6 +6997,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
final IBinder winBinder = window.asBinder();
|
||||
token = new Binder();
|
||||
mDragState = new DragState(this, token, surface, flags, winBinder);
|
||||
mDragState.mUid = callerUid;
|
||||
token = mDragState.mToken = new Binder();
|
||||
|
||||
// 5 second timeout for this window to actually begin the drag
|
||||
|
||||
Reference in New Issue
Block a user