diff --git a/mobile/android/base/gfx/BitmapUtils.java b/mobile/android/base/gfx/BitmapUtils.java index a8d0cdd4f5ce..53c4f1b6bd23 100644 --- a/mobile/android/base/gfx/BitmapUtils.java +++ b/mobile/android/base/gfx/BitmapUtils.java @@ -82,6 +82,19 @@ public final class BitmapUtils { return; } + if(data.startsWith("-moz-icon://")) { + Uri imageUri = Uri.parse(data); + String resource = imageUri.getSchemeSpecificPart(); + resource = resource.substring(resource.lastIndexOf('/') + 1); + + try { + Drawable d = context.getPackageManager().getApplicationIcon(resource); + loader.onBitmapFound(d); + } catch(Exception ex) { } + + return; + } + if(data.startsWith("drawable://")) { Uri imageUri = Uri.parse(data); int id = getResource(imageUri, R.drawable.ic_status_logo);