From 7e349213a588dad886eb690154c2c28b4f5cbd22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 18 Dec 2021 22:45:49 +0000 Subject: [PATCH] Hide battery status label view if empty --- .../gadgetbridge/adapter/GBDeviceAdapterv2.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAdapterv2.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAdapterv2.java index 84af915e6..d1ab9c7df 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAdapterv2.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAdapterv2.java @@ -26,6 +26,7 @@ import android.content.SharedPreferences; import android.graphics.Color; import android.graphics.drawable.GradientDrawable; import android.text.InputType; +import android.text.TextUtils; import android.transition.TransitionManager; import android.util.Pair; import android.view.LayoutInflater; @@ -225,6 +226,12 @@ public class GBDeviceAdapterv2 extends RecyclerView.Adapter