commit | 8624560d00c06cf37e1a138d9997479425d4d2b4 | [log] [tgz] |
---|---|---|
author | Cheng Shi <shicheng@xiaomi.corp-partner.google.com> | Thu Sep 08 06:43:11 2022 +0000 |
committer | Cheng Shi <shicheng@xiaomi.corp-partner.google.com> | Thu Sep 08 07:26:59 2022 +0000 |
tree | 2ed14fee41771d3ae6078514c574aa918925445d | |
parent | 3312d073cb2dcff4db43d843d589d666495ef9cb [diff] |
Fix the problem that system apps cannot drag If an app with a uid of Process.SYSTEM_UID calls view.startDragAndDrop, IllegalStateException will be thrown in Session.performDrag, which makes the drag-and-drop feature unavailable in this app. And we don't need this check either, because validateAndResolveDragMimeTypeExtras and validateDragFlags are indeed called before Binder.clearCallingIdentity. Bug: 245626682 Change-Id: I1c27287e51a956284dae0f61bfa0cac14dd28a27