Narrow concession for nested transactions.

We normally don't allow nested transactions (since we don't have a
good way to selectively roll them back) but if the incoming operation
is ignoring exceptions, then we don't need to worry about partial
rollback and can piggyback on the larger active transaction.

This fixes an issue where apps publishing items using applyBatch()
would fail to scan the media they just published.

Bug: 155511638
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Idcbd7725ee5769949663b25317f503876fd5b0db
2 files changed