Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0f8555b7 authored by Bjorn Bringert's avatar Bjorn Bringert
Browse files

Allow resource and file URIs in ImageView.setImageURI()

Before, if you passed an android.resource URI, e.g.
"android.resource://com.android.browser/2130837550"
to ImageView.setImageURI(), it failed with:

I/System.out( 1730): resolveUri failed on bad bitmap uri: android.resource://com.android.browser/2130837550

This change allows android.resource: and file: URIs in addition to the
existing support for content: URIs.

Fixes: http://b/issue?id=2289441

Change-Id: I98819b183c29eb60a70708d373d2199cdc0ea017
parent d82f452f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment