mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-09-15 08:20:18 +03:00
Add a language indicator to status (close #552)
This commit is contained in:
parent
6c225e2dbb
commit
e6e7e7e435
2 changed files with 11 additions and 0 deletions
|
@ -1380,6 +1380,10 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
} else {
|
} else {
|
||||||
holder.binding.app.setVisibility(View.GONE);
|
holder.binding.app.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
if (statusToDeal.language != null) {
|
||||||
|
holder.binding.language.setText(statusToDeal.language.toUpperCase());
|
||||||
|
holder.binding.language.setVisibility(View.VISIBLE);
|
||||||
|
} else holder.binding.language.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
holder.binding.app.setVisibility(View.GONE);
|
holder.binding.app.setVisibility(View.GONE);
|
||||||
|
|
|
@ -590,6 +590,13 @@
|
||||||
app:iconTint="?attr/colorControlNormal"
|
app:iconTint="?attr/colorControlNormal"
|
||||||
tools:text="10" />
|
tools:text="10" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/language"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="12dp"
|
||||||
|
tools:text="EN" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
|
|
Loading…
Reference in a new issue