Added view ID

This commit is contained in:
M66B
2021-12-11 15:45:58 +01:00
parent 4ea8c3b112
commit 9e33838a00
3 changed files with 28 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ public class FixedImageButton extends AppCompatImageButton {
try {
super.onDraw(canvas);
} catch (RuntimeException ex) {
Log.e(ex);
Log.e(new Throwable(Helper.getViewName(this), ex));
Context context = getContext();
Drawable d = context.getDrawable(R.drawable.twotone_broken_image_24);
d.setBounds(getDrawable().getBounds());