+3
−5
+65
−19
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Added View.onReceiveContent() which will invoke the callback if one is set. Added View.getOnReceiveContentMimeTypes() to return the MIME types that the view can receive, removing the getSupportedMimeTypes() method from the callback interface. Changed the code to pass MIME types as a String[] instead of a Set<String> in order to: * Avoid repeated conversion from Set to array in onCreateInputConnection. * Avoid misleading users of the API into using contains() to compare MIME types (ClipDescription.compareMimeTypes should be used in order to correctly handle wilcards such as "image/*"). Bug: 170191676 Bug: 152068298 Test: atest CtsViewTestCases:ViewTest Test: atest CtsViewTestCases:ViewOnReceiveContentTest Test: atest CtsWidgetTestCases:TextViewOnReceiveContentCallbackTest Test: atest FrameworksCoreTests:TextViewOnReceiveContentCallbackTest Test: atest FrameworksCoreTests:AutofillValueTest Change-Id: Id0c7f8f5fd3c7c44827a62dba1b2b205433e7540