forked from recloudstream/cloudstream
add flags to extensions
This commit is contained in:
parent
ef165ad4cb
commit
da6d7aecd2
4 changed files with 18 additions and 2 deletions
|
@ -22,7 +22,6 @@ import com.lagradost.cloudstream3.utils.UIHelper.fixPaddingStatusbar
|
||||||
import com.lagradost.cloudstream3.utils.UIHelper.navigate
|
import com.lagradost.cloudstream3.utils.UIHelper.navigate
|
||||||
import com.lagradost.cloudstream3.utils.UIHelper.setImage
|
import com.lagradost.cloudstream3.utils.UIHelper.setImage
|
||||||
import kotlinx.android.synthetic.main.main_settings.*
|
import kotlinx.android.synthetic.main.main_settings.*
|
||||||
import kotlinx.android.synthetic.main.settings_title_top.*
|
|
||||||
import kotlinx.android.synthetic.main.standard_toolbar.*
|
import kotlinx.android.synthetic.main.standard_toolbar.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ import com.lagradost.cloudstream3.R
|
||||||
import com.lagradost.cloudstream3.plugins.PluginManager
|
import com.lagradost.cloudstream3.plugins.PluginManager
|
||||||
import com.lagradost.cloudstream3.utils.GlideApp
|
import com.lagradost.cloudstream3.utils.GlideApp
|
||||||
import com.lagradost.cloudstream3.utils.UIHelper.setImage
|
import com.lagradost.cloudstream3.utils.UIHelper.setImage
|
||||||
|
import com.lagradost.cloudstream3.utils.SubtitleHelper.getFlagFromIso
|
||||||
import kotlinx.android.synthetic.main.repository_item.view.*
|
import kotlinx.android.synthetic.main.repository_item.view.*
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,6 +119,13 @@ class PluginAdapter(
|
||||||
itemView.ext_version?.isVisible = true
|
itemView.ext_version?.isVisible = true
|
||||||
itemView.ext_version?.text = "v${metadata.version}"
|
itemView.ext_version?.text = "v${metadata.version}"
|
||||||
|
|
||||||
|
if (metadata.language != null) {
|
||||||
|
itemView.lang_icon?.isVisible = true
|
||||||
|
itemView.lang_icon.text = getFlagFromIso(metadata.language)
|
||||||
|
} else {
|
||||||
|
itemView.lang_icon?.isVisible = false
|
||||||
|
}
|
||||||
|
|
||||||
itemView.main_text?.text = metadata.name
|
itemView.main_text?.text = metadata.name
|
||||||
itemView.sub_text?.text = metadata.description
|
itemView.sub_text?.text = metadata.description
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,7 +128,7 @@
|
||||||
android:textColor="?attr/textColor" />
|
android:textColor="?attr/textColor" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView2"
|
android:id="@+id/commit_hash"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
|
|
@ -35,6 +35,15 @@
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
tools:text="Test repository" />
|
tools:text="Test repository" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/lang_icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="8dp"
|
||||||
|
android:text="🇷🇼"
|
||||||
|
android:visibility="gone"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/ext_version"
|
android:id="@+id/ext_version"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
Loading…
Reference in a new issue