Android: fix to account for document handlers