mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Simplifications
This commit is contained in:
@@ -48,8 +48,8 @@ public class FixedImageButton extends AppCompatImageButton {
|
||||
super.onDraw(canvas);
|
||||
} catch (RuntimeException ex) {
|
||||
Log.e(new Throwable(Helper.getViewName(this), ex));
|
||||
Context context = getContext();
|
||||
Drawable d = context.getDrawable(R.drawable.twotone_broken_image_24);
|
||||
|
||||
Drawable d = getContext().getDrawable(R.drawable.twotone_broken_image_24);
|
||||
Rect b = getDrawable().getBounds();
|
||||
int px = Math.min(b.width(), b.height());
|
||||
d.setBounds(0, 0, px, px);
|
||||
|
||||
Reference in New Issue
Block a user