From e845d901ce134f300e7c99c5cc48d8bbd6fc684c Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 25 Nov 2020 18:10:40 +0200 Subject: [PATCH] local error handling fix added --- OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java index a7b450841d..dc41b8c912 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java @@ -6,7 +6,6 @@ import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.res.ColorStateList; -import android.graphics.*; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; @@ -435,6 +434,8 @@ public class MenuBuilder { } } catch (Exception e) { LOG.error(e); + String str = app.getString(R.string.cannot_upload_image); + app.showToastMessage(str); } finally { Algorithms.closeStream(inputStream); }