show list title when viewing list timeline (#2503)

This commit is contained in:
Konrad Pozniak 2022-05-17 19:55:26 +02:00 committed by GitHub
parent d97493d312
commit 4c9cd4084b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 9 additions and 49 deletions

View file

@ -198,9 +198,9 @@ class ListsActivity : BaseActivity(), Injectable, HasAndroidInjector {
).show()
}
private fun onListSelected(listId: String) {
private fun onListSelected(listId: String, listTitle: String) {
startActivityWithSlideInAnimation(
StatusListActivity.newListIntent(this, listId)
StatusListActivity.newListIntent(this, listId, listTitle)
)
}
@ -270,7 +270,8 @@ class ListsActivity : BaseActivity(), Injectable, HasAndroidInjector {
override fun onClick(v: View) {
if (v == itemView) {
onListSelected(getItem(bindingAdapterPosition).id)
val list = getItem(bindingAdapterPosition)
onListSelected(list.id, list.title)
} else {
onMore(getItem(bindingAdapterPosition), v)
}

View file

@ -46,7 +46,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
Kind.FAVOURITES -> getString(R.string.title_favourites)
Kind.BOOKMARKS -> getString(R.string.title_bookmarks)
Kind.TAG -> getString(R.string.title_tag).format(hashtag)
else -> getString(R.string.title_list_timeline)
else -> intent.getStringExtra(EXTRA_LIST_TITLE)
}
supportActionBar?.run {
@ -73,6 +73,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
private const val EXTRA_KIND = "kind"
private const val EXTRA_LIST_ID = "id"
private const val EXTRA_LIST_TITLE = "title"
private const val EXTRA_HASHTAG = "tag"
fun newFavouritesIntent(context: Context) =
@ -85,10 +86,11 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
putExtra(EXTRA_KIND, Kind.BOOKMARKS.name)
}
fun newListIntent(context: Context, listId: String) =
fun newListIntent(context: Context, listId: String, listTitle: String) =
Intent(context, StatusListActivity::class.java).apply {
putExtra(EXTRA_KIND, Kind.LIST.name)
putExtra(EXTRA_LIST_ID, listId)
putExtra(EXTRA_LIST_TITLE, listTitle)
}
@JvmStatic

View file

@ -269,7 +269,6 @@
<string name="add_account_description">إضافة حساب ماستدون جديد</string>
<string name="action_lists">القوائم</string>
<string name="title_lists">القوائم</string>
<string name="title_list_timeline">الخط الزمني للقائمة</string>
<string name="error_create_list">لا يمكن إنشاء قائمة</string>
<string name="error_rename_list">لا يمكن إعادة تسمية القائمة</string>
<string name="error_delete_list">لا يمكن حذف القائمة</string>

View file

@ -151,7 +151,6 @@
<string name="error_delete_list">Списъкът не можа да се изтрие</string>
<string name="error_create_list">Списъкът не можа да се създаде</string>
<string name="error_rename_list">Списъкът не можа да се преименува</string>
<string name="title_list_timeline">Списъчна емисия</string>
<string name="title_lists">Списъци</string>
<string name="action_lists">Списъци</string>
<string name="add_account_description">Добавяне на нов Mastodon акаунт</string>

View file

@ -75,7 +75,6 @@
<string name="error_delete_list">তালিকা মুছে ফেলা যায়নি</string>
<string name="error_rename_list">তালিকা নামকরণ করা যায়নি</string>
<string name="error_create_list">তালিকা তৈরি করা যায়নি</string>
<string name="title_list_timeline">তালিকা টাইমলাইনে রাখুন</string>
<string name="title_lists">তালিকাসমূহ</string>
<string name="action_lists">তালিকাসমূহ</string>
<string name="add_account_description">নতুন ম্যাস্টোডোন অ্যাকাউন্ট যোগ করুন</string>

View file

@ -275,7 +275,6 @@
<string name="add_account_description">নতুন ম্যাস্টোডোন অ্যাকাউন্ট যোগ করুন</string>
<string name="action_lists">তালিকাসমূহ</string>
<string name="title_lists">তালিকাসমূহ</string>
<string name="title_list_timeline">তালিকা টাইমলাইনে রাখুন</string>
<string name="error_create_list">তালিকা তৈরি করা যায়নি</string>
<string name="error_rename_list">তালিকা নামকরণ করা যায়নি</string>
<string name="error_delete_list">তালিকা মুছে ফেলা যায়নি</string>

View file

@ -275,7 +275,6 @@
<string name="add_account_description">Afegir un compte de Mastodont</string>
<string name="action_lists">Llistes</string>
<string name="title_lists">Llistes</string>
<string name="title_list_timeline">Cronologia de la llista</string>
<string name="error_create_list">És impossible crear la llista</string>
<string name="error_rename_list">Impossible reanomenar la llista</string>
<string name="error_delete_list">És impossible suprimir la llista</string>

View file

@ -403,7 +403,6 @@
<string name="error_delete_list">نەیتوانی لیستەکە بسڕێتەوە</string>
<string name="error_rename_list">نەیتوانی ناوی لیست بنووسرێ</string>
<string name="error_create_list">نەیتوانی لیست دروست بکات</string>
<string name="title_list_timeline">لیستی تایم لاین</string>
<string name="title_lists">لیستەکان</string>
<string name="action_lists">لیستەکان</string>
<string name="add_account_description">زیادکردنی ئەژمێری ماتۆدۆنی نوێ</string>

View file

@ -274,7 +274,6 @@
<string name="add_account_description">Přidat nový účet Mastodon</string>
<string name="action_lists">Seznamy</string>
<string name="title_lists">Seznamy</string>
<string name="title_list_timeline">Časová osa seznamu</string>
<string name="error_create_list">Nelze vytvořit seznam</string>
<string name="error_rename_list">Nelze přejmenovat seznam</string>
<string name="error_delete_list">Nelze smazat seznam</string>

View file

@ -236,7 +236,6 @@
<string name="add_account_description">Ychwanegu cyfrif Mastodon newydd</string>
<string name="action_lists">Rhestri</string>
<string name="title_lists">Rhestri</string>
<string name="title_list_timeline">Amserlen rhestri</string>
<string name="compose_active_account_description">Yn postio â chyfrif %1$s</string>
<string name="error_failed_set_caption">Methu gosod pennawd</string>
<string name="action_set_caption">Pennu pennawd</string>

View file

@ -256,7 +256,6 @@
<string name="add_account_description">Neues Mastodon-Konto hinzufügen</string>
<string name="action_lists">Listen</string>
<string name="title_lists">Listen</string>
<string name="title_list_timeline">Liste</string>
<string name="action_create_list">Liste erstellen</string>
<string name="action_rename_list">Liste umbenennen</string>
<string name="action_delete_list">Liste löschen</string>

View file

@ -271,7 +271,6 @@
<string name="add_account_description">Aldoni novan Mastodon konton</string>
<string name="action_lists">Listoj</string>
<string name="title_lists">Listoj</string>
<string name="title_list_timeline">Tempolinio de la listo</string>
<string name="error_create_list">Ne povis krei la liston</string>
<string name="error_rename_list">Ne povis ŝanĝi la nomon de la listo</string>
<string name="error_delete_list">Ne povis forigi la liston</string>

View file

@ -251,7 +251,6 @@
<string name="add_account_description">Añadir cuenta de Mastodon</string>
<string name="action_lists">Listas</string>
<string name="title_lists">Listas</string>
<string name="title_list_timeline">Cronología de lista</string>
<string name="compose_active_account_description">Publicando con la cuenta %1$s</string>
<string name="error_failed_set_caption">Error al añadir leyenda</string>
<plurals name="hint_describe_for_visually_impaired">

View file

@ -235,7 +235,6 @@
<string name="add_account_description">Mastodon kontua gehitu</string>
<string name="action_lists">Zerrendak</string>
<string name="title_lists">Zerrendak</string>
<string name="title_list_timeline">Zerrenda denbora-lerroa</string>
<string name="compose_active_account_description">%1$s kontuarekin tut egiten</string>
<string name="error_failed_set_caption">Akatsa deskribapena eranstean</string>
<plurals name="hint_describe_for_visually_impaired">

View file

@ -229,7 +229,6 @@
<string name="add_account_description">افزودن حساب ماستودون جدید</string>
<string name="action_lists">فهرست‌ها</string>
<string name="title_lists">فهرست‌ها</string>
<string name="title_list_timeline">خط زمانی فهرست</string>
<string name="compose_active_account_description">در حال فرستادن با حساب %1$s</string>
<string name="error_failed_set_caption">شکست در تنظیم عنوان</string>
<plurals name="hint_describe_for_visually_impaired">

View file

@ -275,7 +275,6 @@
<string name="add_account_description">Ajouter un nouveau compte Mastodon</string>
<string name="action_lists">Listes</string>
<string name="title_lists">Listes</string>
<string name="title_list_timeline">Fil de la liste</string>
<string name="error_create_list">Impossible de créer la liste</string>
<string name="error_rename_list">Impossible de renommer la liste</string>
<string name="error_delete_list">Impossible de supprimer la liste</string>

View file

@ -310,7 +310,6 @@
<string name="failed_fetch_posts">Theip ar stádas a fháil</string>
<string name="report_description_1">Seolfar an tuarascáil chuig do mhodhnóir freastalaí. Féadfaidh tú míniú a thabhairt ar an bhfáth go bhfuil tú ag tuairisciú an chuntais seo thíos:</string>
<string name="add_account_description">Cuir Cuntas Mastodon nua leis</string>
<string name="title_list_timeline">Liostaigh amlíne</string>
<string name="error_create_list">Níorbh fhéidir liosta a chruthú</string>
<string name="error_rename_list">Níorbh fhéidir an liosta a athainmniú</string>
<string name="error_delete_list">Níorbh fhéidir an liosta a scriosadh</string>

View file

@ -270,7 +270,6 @@
<string name="error_delete_list">Cha b urrainn dhuinn an liosta a sguabadh às</string>
<string name="error_rename_list">Cha b urrainn dhut ainm ùr a thoirt air an liosta</string>
<string name="error_create_list">Cha b urrainn dhuinn an liosta a chruthachadh</string>
<string name="title_list_timeline">Loidhne-ama na liosta</string>
<string name="add_account_description">Cuir cunntas Mastodon ùr ris</string>
<string name="add_account_name">Cuir cunntas ris</string>
<string name="filter_add_description">An abairt ri chriathradh</string>

View file

@ -275,7 +275,6 @@
<string name="error_delete_list">Non se puido eliminar a listaxe</string>
<string name="error_rename_list">Non se puido renomear a listaxe</string>
<string name="error_create_list">Non se puido crear a listaxe</string>
<string name="title_list_timeline">Cronoloxía da listaxe</string>
<string name="title_lists">Listaxes</string>
<string name="action_lists">Listaxes</string>
<string name="add_account_description">Engadir unha nova conta Mastodon</string>

View file

@ -248,7 +248,6 @@
<string name="compose_save_draft">लिखने को सुरक्षित करें\?</string>
<string name="lock_account_label">खाता लॉक करें</string>
<string name="action_set_caption">कैप्शन सेट करें</string>
<string name="title_list_timeline">सूची टाइमलाइन</string>
<string name="add_account_name">खाता जोड़ो</string>
<string name="filter_dialog_whole_word">पूरा शब्द</string>
<string name="filter_edit_dialog_title">फ़िल्टर संपादित करें</string>

View file

@ -336,7 +336,6 @@
<string name="abbreviated_in_seconds">%dmp múlva</string>
<string name="filter_dialog_whole_word">Teljes szó</string>
<string name="filter_dialog_whole_word_description">Ha a kulcsszó csak alfanumerikus karakterekből áll, csak teljes szóra fog illeszkedni</string>
<string name="title_list_timeline">Lista idővonal</string>
<string name="hint_search_people_list">Általad követettek keresése</string>
<string name="action_add_to_list">Fiók hozzáadása a listához</string>
<string name="action_remove_from_list">Fiók eltávolítása a listából</string>

View file

@ -288,7 +288,6 @@
<string name="filter_add_description">Frasi sem á að sía</string>
<string name="add_account_name">Bæta við aðgang</string>
<string name="add_account_description">Bæta við nýjum Mastodon-aðgangi</string>
<string name="title_list_timeline">Lista upp tímalínu</string>
<string name="error_create_list">Ekki tókst að búa til lista</string>
<string name="error_rename_list">Ekki tókst að endurnefna lista</string>
<string name="error_delete_list">Ekki tókst að eyða lista</string>

View file

@ -269,7 +269,6 @@
<string name="add_account_description">Aggiungi un nuovo Account Mastodon</string>
<string name="action_lists">Liste</string>
<string name="title_lists">Liste</string>
<string name="title_list_timeline">Timeline della lista</string>
<string name="error_create_list">Non è stato possibile creare la lista</string>
<string name="error_rename_list">Non è stato possibile rinominare la lista</string>
<string name="error_delete_list">Non è stato possibile eliminare la lista</string>

View file

@ -255,7 +255,6 @@
<string name="add_account_description">新しいMastodonアカウントを追加</string>
<string name="action_lists">リスト</string>
<string name="title_lists">リスト</string>
<string name="title_list_timeline">リストタイムライン</string>
<string name="error_rename_list">リスト名を変更できませんでした</string>
<string name="action_rename_list">リスト名の変更</string>
<string name="compose_active_account_description">%1$sで投稿</string>

View file

@ -282,7 +282,6 @@
<string name="add_account_description">마스토돈 계정을 추가합니다</string>
<string name="action_lists">리스트</string>
<string name="title_lists">리스트</string>
<string name="title_list_timeline">리스트 타임라인</string>
<string name="error_create_list">리스트를 만들 수 없습니다.</string>
<string name="error_rename_list">리스트의 이름을 변경할 수 없습니다.</string>
<string name="error_delete_list">리스트를 삭제할 수 없습니다.</string>

View file

@ -259,7 +259,6 @@
<string name="add_account_description">Een nieuw Mastodonaccount toevoegen</string>
<string name="action_lists">Lijsten</string>
<string name="title_lists">Lijsten</string>
<string name="title_list_timeline">Tijdlijn lijst</string>
<string name="compose_active_account_description">Aan het publiceren met account %1$s</string>
<string name="error_failed_set_caption">Toevoegen van beschrijving mislukt</string>
<plurals name="hint_describe_for_visually_impaired">

View file

@ -242,7 +242,6 @@
<string name="add_account_description">Legg til ny Mastodon-konto</string>
<string name="action_lists">Lister</string>
<string name="title_lists">Lister</string>
<string name="title_list_timeline">Listetidslinje</string>
<string name="error_create_list">Kunne ikke opprette liste</string>
<string name="error_rename_list">Kunne ikke gi liste nytt navn</string>
<string name="error_delete_list">Kunne ikke slette liste</string>

View file

@ -228,7 +228,6 @@
<string name="add_account_description">Apondre un nòu compte Mastodon</string>
<string name="action_lists">Listas</string>
<string name="title_lists">Listas</string>
<string name="title_list_timeline">Flux de la lista</string>
<string name="compose_active_account_description">Publicar amb lo compte %1$s</string>
<string name="error_failed_set_caption">Fracàs en apondre una legenda</string>
<string name="action_set_caption">Apondre una legenda</string>

View file

@ -229,7 +229,6 @@
<string name="add_account_description">Dodaj nowe Konto Mastodon</string>
<string name="action_lists">Listy</string>
<string name="title_lists">Listy</string>
<string name="title_list_timeline">Oś czasu listy</string>
<string name="compose_active_account_description">Publikowanie z konta %1$s</string>
<string name="error_failed_set_caption">Nie udało się ustawić podpisu</string>
<string name="action_set_caption">Ustaw podpis</string>

View file

@ -246,7 +246,6 @@
<string name="add_account_description">Adicionar nova conta Mastodon</string>
<string name="action_lists">Listas</string>
<string name="title_lists">Listas</string>
<string name="title_list_timeline">Linha da lista</string>
<string name="compose_active_account_description">Usando a conta %1$s</string>
<string name="error_failed_set_caption">Erro ao incluir descrição</string>
<string name="action_set_caption">Descrever</string>

View file

@ -325,7 +325,7 @@
<string name="action_lists">Listas</string>
<string name="error_rename_list">Não foi possível renomear a lista</string>
<string name="title_lists">Listas</string>
<string name="title_list_timeline">Cronologia da timeline</string>
<string name="error_create_list">Não foi possível criar a lista</string>
<string name="error_delete_list">Não foi possível apagar a lista</string>
<string name="action_create_list">Criar uma lista</string>

View file

@ -296,7 +296,6 @@
<string name="add_account_description">Добавить новый акканут Mastodon</string>
<string name="action_lists">Списки</string>
<string name="title_lists">Списки</string>
<string name="title_list_timeline">Список лент</string>
<string name="error_create_list">Не удалось создать список</string>
<string name="error_rename_list">Не удалось переименовать список</string>
<string name="error_delete_list">Не удалось удалить список</string>

View file

@ -202,7 +202,6 @@
<string name="error_rename_list">पुनः सूचिनामकरणं कर्तुमशक्यम्</string>
<string name="error_create_list">सूचिनिर्माणं कर्तुमशक्यम्</string>
<string name="dialog_message_cancel_follow_request">अनुसरणानुरोधो नश्यताम् \?</string>
<string name="title_list_timeline">सूचेः समयतालिका</string>
<string name="title_lists">सूचयः</string>
<string name="action_lists">सूचयः</string>
<string name="add_account_description">नवमास्टोडोनलेखा युज्यताम्</string>

View file

@ -247,7 +247,6 @@
<string name="add_account_description">Dodaj nov Mastodon račun</string>
<string name="action_lists">Seznami</string>
<string name="title_lists">Seznami</string>
<string name="title_list_timeline">Seznam časovnice</string>
<string name="error_create_list">Seznama ni bilo mogoče ustvariti</string>
<string name="error_rename_list">Seznama ni bilo mogoče preimenovati</string>
<string name="error_delete_list">Seznama ni bilo mogoče izbrisati</string>

View file

@ -269,7 +269,6 @@
<string name="add_account_description">Lägg till ett nytt Mastodon-konto</string>
<string name="action_lists">Listor</string>
<string name="title_lists">Listor</string>
<string name="title_list_timeline">Lista tidslinje</string>
<string name="error_create_list">Kunde inte skapa lista</string>
<string name="error_rename_list">Kunde inte byta namn på lista</string>
<string name="error_delete_list">Kunde inte radera lista</string>

View file

@ -216,7 +216,6 @@
<string name="add_account_description">புதிய Mastodon கணக்கைச் சேர்க்க</string>
<string name="action_lists">பட்டியல்கள்</string>
<string name="title_lists">பட்டியல்கள்</string>
<string name="title_list_timeline">காலவரிசை பட்டியல்</string>
<string name="compose_active_account_description">%1$s கணக்குடன் பதிவிட</string>
<string name="error_failed_set_caption">தலைப்பை அமைக்க முடியவில்லை</string>
<string name="action_set_caption">தலைப்பை அமை</string>

View file

@ -144,7 +144,6 @@
<string name="error_delete_list">ไม่สามารถลบรายการได้</string>
<string name="error_rename_list">ไม่สามารถเปลี่ยนชื่อรายการได้</string>
<string name="error_create_list">ไม่สามารถสร้างรายการได้</string>
<string name="title_list_timeline">ไทม์ไลน์ในรายการ</string>
<string name="add_account_description">เพิ่มบัญชี Mastodon ใหม่</string>
<string name="add_account_name">เพิ่มบัญชี</string>
<string name="filter_add_description">วลีที่ต้องการกรอง</string>

View file

@ -243,7 +243,6 @@
<string name="add_account_description">Yeni Mastodon hesabı ekle</string>
<string name="action_lists">Listeler</string>
<string name="title_lists">Listeler</string>
<string name="title_list_timeline">Zaman çizelgesini listele</string>
<string name="compose_active_account_description">%1$s hesabıyla gönderiliyor</string>
<plurals name="hint_describe_for_visually_impaired">
<item quantity="other">Görsel engelli için tanımla

View file

@ -285,7 +285,6 @@
<string name="error_delete_list">Не вдалося видалити список</string>
<string name="error_rename_list">Не вдалося перейменувати список</string>
<string name="error_create_list">Не вдалося створити список</string>
<string name="title_list_timeline">Стрічка списку</string>
<string name="add_account_description">Додати новий обліковий запис Mastodon</string>
<string name="add_account_name">Додати обліковий запис</string>
<string name="filter_add_description">Фільтрувати фразу</string>

View file

@ -448,7 +448,6 @@
<string name="action_delete_list">Xóa danh sách</string>
<string name="action_rename_list">Đổi tên danh sách</string>
<string name="action_create_list">Tạo danh sách</string>
<string name="title_list_timeline">Danh sách bảng tin</string>
<string name="add_account_description">Thêm tài khoản Mastodon</string>
<string name="add_account_name">Thêm tài khoản</string>
<string name="filter_add_description">Thêm mô tả</string>

View file

@ -277,7 +277,6 @@
<string name="add_account_description">添加新的 Mastodon 帐号</string>
<string name="action_lists">列表</string>
<string name="title_lists">列表</string>
<string name="title_list_timeline">列表时间轴</string>
<string name="error_create_list">无法新建列表</string>
<string name="error_rename_list">无法重命名列表</string>
<string name="error_delete_list">无法删除列表</string>

View file

@ -276,7 +276,6 @@
<string name="add_account_description">加入新的 Mastodon 帳號</string>
<string name="action_lists">列表</string>
<string name="title_lists">列表</string>
<string name="title_list_timeline">列表時間軸</string>
<string name="error_create_list">無法新建列表</string>
<string name="error_rename_list">無法重命名列表</string>
<string name="error_delete_list">無法刪除列表</string>

View file

@ -270,7 +270,6 @@
<string name="add_account_description">加入新的 Mastodon 帳號</string>
<string name="action_lists">列表</string>
<string name="title_lists">列表</string>
<string name="title_list_timeline">列表時間軸</string>
<string name="error_create_list">無法新建列表</string>
<string name="error_rename_list">無法重命名列表</string>
<string name="error_delete_list">無法刪除列表</string>

View file

@ -274,7 +274,6 @@
<string name="add_account_description">添加新的 Mastodon 帐号</string>
<string name="action_lists">列表</string>
<string name="title_lists">列表</string>
<string name="title_list_timeline">列表时间轴</string>
<string name="error_create_list">无法新建列表</string>
<string name="error_rename_list">无法重命名列表</string>
<string name="error_delete_list">无法删除列表</string>

View file

@ -276,7 +276,6 @@
<string name="add_account_description">加入新的 Mastodon 帳號</string>
<string name="action_lists">列表</string>
<string name="title_lists">列表</string>
<string name="title_list_timeline">列表時間軸</string>
<string name="error_create_list">無法新建列表</string>
<string name="error_rename_list">無法重命名列表</string>
<string name="error_delete_list">無法刪除列表</string>

View file

@ -385,7 +385,6 @@
<string name="action_lists">Lists</string>
<string name="title_lists">Lists</string>
<string name="title_list_timeline">List timeline</string>
<string name="error_create_list">Could not create list</string>
<string name="error_rename_list">Could not rename list</string>
<string name="error_delete_list">Could not delete list</string>