Commit c00e96af by Sebastián Katzer

Fixes #608 bad try/catch usage in getIconBitmap

parent 4f4147d0
......@@ -268,14 +268,14 @@ public class Options {
* Icon bitmap for the local notification.
*/
public Bitmap getIconBitmap() {
String icon = options.optString("icon", "icon");
Bitmap bmp;
try{
try {
Uri uri = Uri.parse(options.optString("iconUri"));
bmp = assets.getIconFromUri(uri);
} catch (Exception e){
bmp = assets.getIconFromDrawable(icon);
e.printStackTrace();
bmp = assets.getIconFromDrawable("icon");
}
return bmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment