From 304e998a0b07be2409acf181aa2bd0f850238b1e Mon Sep 17 00:00:00 2001 From: Mikel Date: Mon, 7 Aug 2017 20:53:00 +0100 Subject: [PATCH] Line break to add readability --- .../free/nrw/commons/ui/widget/CompatTextView.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/ui/widget/CompatTextView.java b/app/src/main/java/fr/free/nrw/commons/ui/widget/CompatTextView.java index f6cb2ac9e..2508877ed 100644 --- a/app/src/main/java/fr/free/nrw/commons/ui/widget/CompatTextView.java +++ b/app/src/main/java/fr/free/nrw/commons/ui/widget/CompatTextView.java @@ -50,12 +50,16 @@ public class CompatTextView extends AppCompatTextView { int endDrawableRes = a.getResourceId(R.styleable.CompatTextView_drawableEnd, 0); int bottomDrawableRes = a.getResourceId(R.styleable.CompatTextView_drawableBottom, 0); - // Load the used drawables, falling back to whatever may be set in an "android:" namespace attribute + // Load the used drawables, fall back to whatever was set in an "android:" Drawable[] currentDrawables = getCompoundDrawables(); - Drawable left = startDrawableRes != 0 ? dm.getDrawable(context, startDrawableRes) : currentDrawables[0]; - Drawable right = endDrawableRes != 0 ? dm.getDrawable(context, endDrawableRes) : currentDrawables[1]; - Drawable top = topDrawableRes != 0 ? dm.getDrawable(context, topDrawableRes) : currentDrawables[2]; - Drawable bottom = bottomDrawableRes != 0 ? dm.getDrawable(context, bottomDrawableRes) : currentDrawables[3]; + Drawable left = startDrawableRes != 0 + ? dm.getDrawable(context, startDrawableRes) : currentDrawables[0]; + Drawable right = endDrawableRes != 0 + ? dm.getDrawable(context, endDrawableRes) : currentDrawables[1]; + Drawable top = topDrawableRes != 0 + ? dm.getDrawable(context, topDrawableRes) : currentDrawables[2]; + Drawable bottom = bottomDrawableRes != 0 + ? dm.getDrawable(context, bottomDrawableRes) : currentDrawables[3]; // Account for RTL and apply the compound Drawables Drawable start = rtl ? right : left;