+1
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
The existing queryRecentDocuments have a hard limit 64. However, case like ARC++ wishes to have a more flexible limit that can be passed as an extra parameter. This new API will gracefully degrade to the old API to maintain backward compatibility with old providers. Bug: 111288304 Test: manual test (patched the MediaDocumentsProvider, and test calling the new API): 1. Test that passing Bundle with QUERY_ARG_LIMIT=5 is honored and returned is limited to 5. 2. Test that passing null will release the limit to default 64. 3. Test that removing MediaProvider implementation for new method and implement the old method will automatically redirect the call to old method (backward compatible with old providers). Change-Id: I37b1785b94f3e9cf09128fbf1e8779a4447fe7a9