From 4bb15a61c28f0ab3910979e9faf482e7fcb8b928 Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Sat, 20 Aug 2022 17:38:41 +0200 Subject: [PATCH] Fix minor layout inconsistency --- .../cloudstream3/ui/settings/extensions/PluginAdapter.kt | 6 +++--- app/src/main/res/layout/repository_item.xml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginAdapter.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginAdapter.kt index 8fa18b0c..d49ea10c 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginAdapter.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginAdapter.kt @@ -175,12 +175,12 @@ class PluginAdapter( itemView.ext_version?.isVisible = true itemView.ext_version?.text = "v${metadata.version}" - if (metadata.language != null) { + if (metadata.language.isNullOrBlank()) { + itemView.lang_icon?.isVisible = false + } else { itemView.lang_icon?.isVisible = true //itemView.lang_icon.text = getFlagFromIso(metadata.language) itemView.lang_icon.text = fromTwoLettersToLanguage(metadata.language) - } else { - itemView.lang_icon?.isVisible = false } diff --git a/app/src/main/res/layout/repository_item.xml b/app/src/main/res/layout/repository_item.xml index 8da3d58c..e5872347 100644 --- a/app/src/main/res/layout/repository_item.xml +++ b/app/src/main/res/layout/repository_item.xml @@ -44,6 +44,7 @@ android:id="@+id/lang_icon" android:layout_width="wrap_content" android:layout_height="match_parent" + android:layout_marginEnd="5dp" android:text="🇷🇼" android:textColor="?attr/grayTextColor" @@ -55,7 +56,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginStart="5dp" + android:layout_marginEnd="5dp" android:text="v1" android:textColor="?attr/grayTextColor" android:visibility="gone" @@ -66,7 +67,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginStart="5dp" + android:layout_marginEnd="5dp" android:text="100MB" android:textColor="?attr/grayTextColor" android:visibility="gone" @@ -76,7 +77,6 @@ android:id="@+id/nsfw_marker" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="5dp" android:text="@string/is_adult" android:textColor="@color/adultColor" android:visibility="gone"