diff --git a/app-k9mail/build.gradle.kts b/app-k9mail/build.gradle.kts index 4f326b99d9d..de12e361b24 100644 --- a/app-k9mail/build.gradle.kts +++ b/app-k9mail/build.gradle.kts @@ -17,8 +17,8 @@ dependencies { implementation(projects.app.core) implementation(projects.app.ui.legacy) - implementation(projects.app.ui.messageListWidget) + implementation(projects.feature.widget.messageList) implementation(projects.feature.widget.unread) implementation(libs.androidx.work.runtime) diff --git a/app-k9mail/src/main/AndroidManifest.xml b/app-k9mail/src/main/AndroidManifest.xml index ac7e3d4017c..a17625c2e14 100644 --- a/app-k9mail/src/main/AndroidManifest.xml +++ b/app-k9mail/src/main/AndroidManifest.xml @@ -22,6 +22,22 @@ + + + + + + + + + { appConfig } single { K9OAuthConfigurationFactory() } single { K9AppNameProvider(androidContext()) } single { K9FeatureThemeProvider() } - single { - UnreadWidgetClassProvider { UnreadWidgetProvider::class.java } - } developmentModuleAdditions() } diff --git a/app-k9mail/src/main/kotlin/app/k9mail/widget/K9MessageListWidgetConfig.kt b/app-k9mail/src/main/kotlin/app/k9mail/widget/K9MessageListWidgetConfig.kt new file mode 100644 index 00000000000..f4538a16137 --- /dev/null +++ b/app-k9mail/src/main/kotlin/app/k9mail/widget/K9MessageListWidgetConfig.kt @@ -0,0 +1,8 @@ +package app.k9mail.widget + +import app.k9mail.feature.widget.message.list.MessageListWidgetConfig +import com.fsck.k9.widget.list.MessageListWidgetProvider + +class K9MessageListWidgetConfig : MessageListWidgetConfig { + override val providerClass = MessageListWidgetProvider::class.java +} diff --git a/app-k9mail/src/main/kotlin/app/k9mail/widget/K9UnreadWidgetConfig.kt b/app-k9mail/src/main/kotlin/app/k9mail/widget/K9UnreadWidgetConfig.kt new file mode 100644 index 00000000000..7b2ee878429 --- /dev/null +++ b/app-k9mail/src/main/kotlin/app/k9mail/widget/K9UnreadWidgetConfig.kt @@ -0,0 +1,8 @@ +package app.k9mail.widget + +import app.k9mail.feature.widget.unread.UnreadWidgetConfig +import com.fsck.k9.provider.UnreadWidgetProvider + +class K9UnreadWidgetConfig : UnreadWidgetConfig { + override val providerClass = UnreadWidgetProvider::class.java +} diff --git a/app-k9mail/src/main/kotlin/app/k9mail/widget/KoinModule.kt b/app-k9mail/src/main/kotlin/app/k9mail/widget/KoinModule.kt new file mode 100644 index 00000000000..2c9ad58f9c1 --- /dev/null +++ b/app-k9mail/src/main/kotlin/app/k9mail/widget/KoinModule.kt @@ -0,0 +1,10 @@ +package app.k9mail.widget + +import app.k9mail.feature.widget.message.list.MessageListWidgetConfig +import app.k9mail.feature.widget.unread.UnreadWidgetConfig +import org.koin.dsl.module + +val appWidgetModule = module { + single { K9MessageListWidgetConfig() } + single { K9UnreadWidgetConfig() } +} diff --git a/app-k9mail/src/main/kotlin/com/fsck/k9/widget/list/MessageListWidgetProvider.kt b/app-k9mail/src/main/kotlin/com/fsck/k9/widget/list/MessageListWidgetProvider.kt new file mode 100644 index 00000000000..65449f42078 --- /dev/null +++ b/app-k9mail/src/main/kotlin/com/fsck/k9/widget/list/MessageListWidgetProvider.kt @@ -0,0 +1,11 @@ +package com.fsck.k9.widget.list + +import app.k9mail.feature.widget.message.list.BaseMessageListWidgetProvider + +/** + * IMPORTANT: The fully qualified name for this class must be + * `com.fsck.k9.widget.list.MessageListWidgetProvider`. + * Otherwise widgets created with older versions of the app using a different name + * will stop working or disappear. + */ +class MessageListWidgetProvider : BaseMessageListWidgetProvider() diff --git a/app-thunderbird/build.gradle.kts b/app-thunderbird/build.gradle.kts index 4ed783e9e38..265866fab0d 100644 --- a/app-thunderbird/build.gradle.kts +++ b/app-thunderbird/build.gradle.kts @@ -17,8 +17,8 @@ dependencies { implementation(projects.app.core) implementation(projects.app.ui.legacy) - implementation(projects.app.ui.messageListWidget) + implementation(projects.feature.widget.messageList) implementation(projects.feature.widget.unread) implementation(libs.androidx.work.runtime) diff --git a/app-thunderbird/src/main/AndroidManifest.xml b/app-thunderbird/src/main/AndroidManifest.xml index 43aa8ca90e0..871f1a8d739 100644 --- a/app-thunderbird/src/main/AndroidManifest.xml +++ b/app-thunderbird/src/main/AndroidManifest.xml @@ -22,6 +22,22 @@ + + + + + + + + + - - - - - - - { K9MessageListWidgetConfig() } -} diff --git a/app/common/src/main/java/com/fsck/k9/widget/list/MessageListWidgetProvider.kt b/app/common/src/main/java/com/fsck/k9/widget/list/MessageListWidgetProvider.kt deleted file mode 100644 index 805be2eb139..00000000000 --- a/app/common/src/main/java/com/fsck/k9/widget/list/MessageListWidgetProvider.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.fsck.k9.widget.list - -import app.k9mail.ui.widget.list.MessageListWidgetConfig - -class MessageListWidgetProvider : app.k9mail.ui.widget.list.MessageListWidgetProvider() - -internal class K9MessageListWidgetConfig : MessageListWidgetConfig { - override val providerClass = MessageListWidgetProvider::class.java -} diff --git a/app/ui/legacy/src/main/res/values-ar/strings.xml b/app/ui/legacy/src/main/res/values-ar/strings.xml index 565729138f9..b1cc7185a9a 100644 --- a/app/ui/legacy/src/main/res/values-ar/strings.xml +++ b/app/ui/legacy/src/main/res/values-ar/strings.xml @@ -815,9 +815,7 @@ اذهب للاعدادات قائمة رسائل K-9 - يُحمل… - يُحمل… التعمية غير ممكنة بعض المستلمين المحددين لا يدعمون هذه الميزة! تنشيط التعمية diff --git a/app/ui/legacy/src/main/res/values-be/strings.xml b/app/ui/legacy/src/main/res/values-be/strings.xml index e33e36474fa..c59ca8c2a3e 100644 --- a/app/ui/legacy/src/main/res/values-be/strings.xml +++ b/app/ui/legacy/src/main/res/values-be/strings.xml @@ -834,9 +834,7 @@ Перайсці ў налады Лісты K-9 - Загрузка… - Загрузка… Зашыфраваць немагчыма Некаторыя з гэтых адрасатаў не падтрымліваюць такую функцыю! Уключыць шыфраванне diff --git a/app/ui/legacy/src/main/res/values-bg/strings.xml b/app/ui/legacy/src/main/res/values-bg/strings.xml index a020ec7dac0..e833cc16481 100644 --- a/app/ui/legacy/src/main/res/values-bg/strings.xml +++ b/app/ui/legacy/src/main/res/values-bg/strings.xml @@ -760,9 +760,7 @@ Към настройки K-9 списък със собщения - Зареждане… - Зареждане… Криптирането е невъзможно Някои от избраните получатели не поддържат тази функция! Включване на криптирането diff --git a/app/ui/legacy/src/main/res/values-br/strings.xml b/app/ui/legacy/src/main/res/values-br/strings.xml index 2acb4f1aa20..606e0372f66 100644 --- a/app/ui/legacy/src/main/res/values-br/strings.xml +++ b/app/ui/legacy/src/main/res/values-br/strings.xml @@ -737,9 +737,7 @@ Mont d\'an arventennoù Roll kemennadennoù K-9 - O kargañ… - O kargañ… N’eo ket posupl enrinegañ Ul lodenn eus an degemererien ne skoront ket ar c’heweriuster-mañ! Gweredekaat an enrinegañ diff --git a/app/ui/legacy/src/main/res/values-ca/strings.xml b/app/ui/legacy/src/main/res/values-ca/strings.xml index de7f1f0d748..de60b429024 100644 --- a/app/ui/legacy/src/main/res/values-ca/strings.xml +++ b/app/ui/legacy/src/main/res/values-ca/strings.xml @@ -831,9 +831,7 @@ Ves a la configuració Llista de missatges del K-9 - S\'està carregant… - S\'està carregant… Encriptació no possible Alguns dels destinataris seleccionats no admeten aquesta característica! Habilita l\'encriptació diff --git a/app/ui/legacy/src/main/res/values-co/strings.xml b/app/ui/legacy/src/main/res/values-co/strings.xml index e69cd52238f..c0f82313b6b 100644 --- a/app/ui/legacy/src/main/res/values-co/strings.xml +++ b/app/ui/legacy/src/main/res/values-co/strings.xml @@ -756,7 +756,6 @@ Sta parte ùn hè stata micca cifrata è puderia ùn esse sicura. A dicifratura hè stata abbandunata. Tutte e segnature seranu affissate - Caricamentu… A cifratura di i messaghji assicureghja ch’elli pudenu esse letti solu da u destinatariu, è da altrunimu. Disattivà a cifratura Cifratura OpenPGP @@ -807,7 +806,6 @@ Pruvà torna U messaghju cifratu deve esse scaricatu per pudè esse dicifratu. A cifratura hè indispunibule in u modu « sign-only » ! - Caricamentu… Modu mutuale di cifratura autumatica S’è u speditore è i destinatarii attivanu u modu mutuale, a cifratura serà attivata in modu predefinitu. Alcuna appiecazione OpenPGP ùn hè installata diff --git a/app/ui/legacy/src/main/res/values-cs/strings.xml b/app/ui/legacy/src/main/res/values-cs/strings.xml index fd9f42e2691..a44011afe41 100644 --- a/app/ui/legacy/src/main/res/values-cs/strings.xml +++ b/app/ui/legacy/src/main/res/values-cs/strings.xml @@ -835,9 +835,7 @@ Přejít do nastavení Seznam zpráv K-9 - Načítání… - Načítání… Šifrování není možné Někteří ze zvolených příjemců nepodporují tuto funkci! Zapnout šifrování diff --git a/app/ui/legacy/src/main/res/values-cy/strings.xml b/app/ui/legacy/src/main/res/values-cy/strings.xml index 4f7288639be..4c002ae4923 100644 --- a/app/ui/legacy/src/main/res/values-cy/strings.xml +++ b/app/ui/legacy/src/main/res/values-cy/strings.xml @@ -819,9 +819,7 @@ Mynd i Osodiadau Rhestr Negeseuon K-9 - Yn llwytho… - Yn llwytho… Dyw amgryptiad ddim ar gael. Dyw rhai o\'r derbynnwyr ddim yn cefnogi\'r nodwedd hon. Galluogi amgryptio diff --git a/app/ui/legacy/src/main/res/values-da/strings.xml b/app/ui/legacy/src/main/res/values-da/strings.xml index f5bf70fda6e..7a3db99e643 100644 --- a/app/ui/legacy/src/main/res/values-da/strings.xml +++ b/app/ui/legacy/src/main/res/values-da/strings.xml @@ -817,9 +817,7 @@ Gå til opsætning K-9 Meddelelsesliste - Indlæser… - Indlæser… Kryptering var ikke mulig Nogle af de valgte modtagere understøtter ikke denne funktion! Aktivér kryptering diff --git a/app/ui/legacy/src/main/res/values-de/strings.xml b/app/ui/legacy/src/main/res/values-de/strings.xml index 41f1571b5f8..a079eacd50f 100644 --- a/app/ui/legacy/src/main/res/values-de/strings.xml +++ b/app/ui/legacy/src/main/res/values-de/strings.xml @@ -822,9 +822,7 @@ Zu den Einstellungen K-9 Nachrichtenliste - Ladevorgang… - Ladevorgang… Verschlüsselung nicht möglich Einige der ausgewählten Empfänger unterstützen diese Funktion nicht! Verschlüsselung aktivieren diff --git a/app/ui/legacy/src/main/res/values-el/strings.xml b/app/ui/legacy/src/main/res/values-el/strings.xml index 71f70526523..0d80a911bc0 100644 --- a/app/ui/legacy/src/main/res/values-el/strings.xml +++ b/app/ui/legacy/src/main/res/values-el/strings.xml @@ -822,9 +822,7 @@ Μετάβαση στις Ρυθμίσεις Λίστα Μηνυμάτων του K-9 - Φόρτωση… - Φόρτωση… Δεν είναι δυνατή η κρυπτογράφηση Ορισμένοι από τους επιλεγμένους παραλήπτες δεν υποστηρίζουν αυτήν τη δυνατότητα! Ενεργοποίηση Κρυπτογράφησης diff --git a/app/ui/legacy/src/main/res/values-en-rGB/strings.xml b/app/ui/legacy/src/main/res/values-en-rGB/strings.xml index a5a056bdc86..96057978d3f 100644 --- a/app/ui/legacy/src/main/res/values-en-rGB/strings.xml +++ b/app/ui/legacy/src/main/res/values-en-rGB/strings.xml @@ -741,7 +741,6 @@ End-to-End encrypted unread, %s General settings - Loading… An error occurred while loading the data Encryption unavailable in sign-only mode! Link text @@ -878,7 +877,6 @@ Upgrading databases Mark read Sleeping until background sync is allowed - Loading… Keep Enabled View image Add to contacts diff --git a/app/ui/legacy/src/main/res/values-eo/strings.xml b/app/ui/legacy/src/main/res/values-eo/strings.xml index 58d1a1af7a9..c43c25aa5e3 100644 --- a/app/ui/legacy/src/main/res/values-eo/strings.xml +++ b/app/ui/legacy/src/main/res/values-eo/strings.xml @@ -776,9 +776,7 @@ Iri al agordoj K-9 mesaĝlisto - Ŝargado… - Ŝargado… Ĉifrado ne eblas Kelkaj da elektitaj ricevontoj ne subtenas tiun ĉi agordon! Aktivigi ĉifradon diff --git a/app/ui/legacy/src/main/res/values-es/strings.xml b/app/ui/legacy/src/main/res/values-es/strings.xml index cbc42039946..708e92bb47a 100644 --- a/app/ui/legacy/src/main/res/values-es/strings.xml +++ b/app/ui/legacy/src/main/res/values-es/strings.xml @@ -827,9 +827,7 @@ Ir a los ajustes Lista de correos de K-9 - Cargando… - Cargando… No es posible cifrar Alguno de los destinatarios no parece ser compatible con esta característica. Activar cifrado diff --git a/app/ui/legacy/src/main/res/values-et/strings.xml b/app/ui/legacy/src/main/res/values-et/strings.xml index 55ad2183b85..81761560d8f 100644 --- a/app/ui/legacy/src/main/res/values-et/strings.xml +++ b/app/ui/legacy/src/main/res/values-et/strings.xml @@ -822,9 +822,7 @@ Ava sätted K-9 kirjade loend - Laadib… - Laadib… Krüpteerimine poe võimalik Mõned kirja saajad ei saa seda funktsionaalsust kasutada! Võimalda krüpteerimine diff --git a/app/ui/legacy/src/main/res/values-eu/strings.xml b/app/ui/legacy/src/main/res/values-eu/strings.xml index 27e2a85b79c..d7535560955 100644 --- a/app/ui/legacy/src/main/res/values-eu/strings.xml +++ b/app/ui/legacy/src/main/res/values-eu/strings.xml @@ -821,9 +821,7 @@ Joan ezarpenetara K-9-ren mezu-zerrenda - Kargatzen… - Kargatzen… Zifratzea ez da posible Hautatutako hartzaile batzuek ez dute eginbide hau onartzen! Gaitu zifratzea diff --git a/app/ui/legacy/src/main/res/values-fa/strings.xml b/app/ui/legacy/src/main/res/values-fa/strings.xml index 6c409a43696..39e076da0fb 100644 --- a/app/ui/legacy/src/main/res/values-fa/strings.xml +++ b/app/ui/legacy/src/main/res/values-fa/strings.xml @@ -821,9 +821,7 @@ برو به تنظیمات لیست پیام K-9 - بارگیری… - بارگیری… رمزنگاری ممکن نیست بعضی از گیرندگان انتخابی از این ویژگی پشتیبانی نمی‌کنند! فعال‌سازی رمزنگاری diff --git a/app/ui/legacy/src/main/res/values-fi/strings.xml b/app/ui/legacy/src/main/res/values-fi/strings.xml index 951700d6d95..51453a47972 100644 --- a/app/ui/legacy/src/main/res/values-fi/strings.xml +++ b/app/ui/legacy/src/main/res/values-fi/strings.xml @@ -821,9 +821,7 @@ Siirry asetuksiin K-9-viestiluettelo - Ladataan… - Ladataan… Salaus ei ole mahdollista Jotkut valitut vastaanottajat eivät tue tätä ominaisuutta! Käytä salausta diff --git a/app/ui/legacy/src/main/res/values-fr/strings.xml b/app/ui/legacy/src/main/res/values-fr/strings.xml index 6d1aae82b04..55ffdfd7479 100644 --- a/app/ui/legacy/src/main/res/values-fr/strings.xml +++ b/app/ui/legacy/src/main/res/values-fr/strings.xml @@ -828,9 +828,7 @@ Aller dans Paramètres Liste des courriels de K-9 - Chargement… - Chargement… Le chiffrement est impossible Certains des destinataires sélectionnés ne prennent pas cette fonction en charge ! Activer le chiffrement diff --git a/app/ui/legacy/src/main/res/values-fy/strings.xml b/app/ui/legacy/src/main/res/values-fy/strings.xml index 2d55ad1cd9e..f812533bd2e 100644 --- a/app/ui/legacy/src/main/res/values-fy/strings.xml +++ b/app/ui/legacy/src/main/res/values-fy/strings.xml @@ -825,9 +825,7 @@ Gean nei Ynstellingen K-9-berjochtelist - Lade… - Lade… Fersifering net mooglik Guon fan de ûntfangers stypje dizze funksje net! Fersifering ynskeakelje diff --git a/app/ui/legacy/src/main/res/values-gd/strings.xml b/app/ui/legacy/src/main/res/values-gd/strings.xml index fe0796b32f3..79d75b84c9e 100644 --- a/app/ui/legacy/src/main/res/values-gd/strings.xml +++ b/app/ui/legacy/src/main/res/values-gd/strings.xml @@ -747,9 +747,7 @@ Tagh aplacaid OpenPGP Liosta theachdaireachdan puist - ’Ga luchdadh… - ’Ga luchdadh… Cha ghabh a chrioptachadh Cha chuir gach faightear a thagh thu taic ris a’ ghleus seo! Cuir crioptachadh an comas diff --git a/app/ui/legacy/src/main/res/values-gl/strings.xml b/app/ui/legacy/src/main/res/values-gl/strings.xml index 964c4a6dc59..b7b3b9635db 100644 --- a/app/ui/legacy/src/main/res/values-gl/strings.xml +++ b/app/ui/legacy/src/main/res/values-gl/strings.xml @@ -781,9 +781,7 @@ Ir a Configuración Lista de mensaxes K-9 - A cargar… - A cargar… Cifrado non posible Algún dos destinatarios seleccionados non soportan esta característica! Habilitar cifrado diff --git a/app/ui/legacy/src/main/res/values-hr/strings.xml b/app/ui/legacy/src/main/res/values-hr/strings.xml index 59d88410a50..c269b2189f0 100644 --- a/app/ui/legacy/src/main/res/values-hr/strings.xml +++ b/app/ui/legacy/src/main/res/values-hr/strings.xml @@ -741,9 +741,7 @@ Idi u Postavke K-9 Popis Poruka - Učitavam… - Učitavam… Šifriranje nije moguće Uključi šifriranje Onemogući šifriranje diff --git a/app/ui/legacy/src/main/res/values-hu/strings.xml b/app/ui/legacy/src/main/res/values-hu/strings.xml index 8741865cbba..3d67a6ef973 100644 --- a/app/ui/legacy/src/main/res/values-hu/strings.xml +++ b/app/ui/legacy/src/main/res/values-hu/strings.xml @@ -821,9 +821,7 @@ Ugrás a beállításokhoz K-9 üzenetlista - Betöltés… - Betöltés… A titkosítás nem lehetséges Néhány kiválasztott címzett nem támogatja ezt a funkciót! Titkosítás engedélyezése diff --git a/app/ui/legacy/src/main/res/values-in/strings.xml b/app/ui/legacy/src/main/res/values-in/strings.xml index 353a31f39cd..e8fa083558f 100644 --- a/app/ui/legacy/src/main/res/values-in/strings.xml +++ b/app/ui/legacy/src/main/res/values-in/strings.xml @@ -757,9 +757,7 @@ Pergi ke Pengaturan Daftar pesan K-9 - Memuat… - Memuat… Enkripsi tidak mungkin dilakukan Beberapa penerima yang dipilih tidak mendukung fitur ini! Aktifkan Enkripsi diff --git a/app/ui/legacy/src/main/res/values-is/strings.xml b/app/ui/legacy/src/main/res/values-is/strings.xml index 954bd6a310e..24db5f3276f 100644 --- a/app/ui/legacy/src/main/res/values-is/strings.xml +++ b/app/ui/legacy/src/main/res/values-is/strings.xml @@ -822,9 +822,7 @@ Fara í stillingar Skilaboðalisti K-9 - Hleður… - Hleður… Dulritun er ekki möguleg Sumir valinna viðtakenda styðja ekki við þennan eiginleika! Virkja dulritun diff --git a/app/ui/legacy/src/main/res/values-it/strings.xml b/app/ui/legacy/src/main/res/values-it/strings.xml index ef6254fc527..95e9bf87cd1 100644 --- a/app/ui/legacy/src/main/res/values-it/strings.xml +++ b/app/ui/legacy/src/main/res/values-it/strings.xml @@ -831,9 +831,7 @@ Vai alle impostazioni Lista messaggi di K-9 - Caricamento… - Caricamento… Criptatura non possibile Alcuni dei destinatari selezionati non supportano questa funzionalità! Abilita criptatura diff --git a/app/ui/legacy/src/main/res/values-iw/strings.xml b/app/ui/legacy/src/main/res/values-iw/strings.xml index fdb19b8d55f..409cf611a4e 100644 --- a/app/ui/legacy/src/main/res/values-iw/strings.xml +++ b/app/ui/legacy/src/main/res/values-iw/strings.xml @@ -757,7 +757,6 @@ הדוא\"ל הזה הוצפן עם OpenPGP. \nעל מנת לקרוא אותו, עליך להתקין ולהגדיר יישומון OpenPGP תואם. רשימת הודעות K-9 - טוען… הצפנה לא אפשרית הצפנה תופיע רק אם היא נתמכת ע\"י כל הנמענים, והם שלחו לך דוא\"ל בעבר. הגדרת התראות שגיאה ומצב @@ -867,7 +866,6 @@ חובה להוריד הודעה בשלמותה עבור פענוח ממפתח קצה לקצה לא מוכר אך לא מוגדר אף יישומון הצפנה (crypto app) - טוען… אחורה בטל הצפנה לאחר השליחה העלה הודעות לתיקיית פריטים שנשלחו diff --git a/app/ui/legacy/src/main/res/values-ja/strings.xml b/app/ui/legacy/src/main/res/values-ja/strings.xml index b535d103828..4f2ddfaed59 100644 --- a/app/ui/legacy/src/main/res/values-ja/strings.xml +++ b/app/ui/legacy/src/main/res/values-ja/strings.xml @@ -821,9 +821,7 @@ 設定に移動 K-9 メッセージ一覧 - 読み込み中… - 読み込み中… 暗号化できません 選択した受信者の一部が、この機能に対応していません! 暗号化を有効にする diff --git a/app/ui/legacy/src/main/res/values-ka/strings.xml b/app/ui/legacy/src/main/res/values-ka/strings.xml index 033657c6f86..18858851016 100644 --- a/app/ui/legacy/src/main/res/values-ka/strings.xml +++ b/app/ui/legacy/src/main/res/values-ka/strings.xml @@ -493,9 +493,7 @@ პარამეტრებში შესვლა K-9 მესიჯების ნუსხა - ჩატვირთვა… - ჩატვირთვა… შიფრაცია შეუძლებელია შიფრაციის ჩართვა შიფრაციის გამორთვა diff --git a/app/ui/legacy/src/main/res/values-ko/strings.xml b/app/ui/legacy/src/main/res/values-ko/strings.xml index f3acb9cb782..024f00d3415 100644 --- a/app/ui/legacy/src/main/res/values-ko/strings.xml +++ b/app/ui/legacy/src/main/res/values-ko/strings.xml @@ -681,9 +681,7 @@ 서명되지 않은 글 설정으로 움직이기 - 로딩 중… - 로딩 중… 암호화가 불가능합니다 선택된 몇몇 받는 사람들은 이 기능을 지원하지 않습니다! 암호화 사용 diff --git a/app/ui/legacy/src/main/res/values-lt/strings.xml b/app/ui/legacy/src/main/res/values-lt/strings.xml index 056f44c9691..8ca6500831b 100644 --- a/app/ui/legacy/src/main/res/values-lt/strings.xml +++ b/app/ui/legacy/src/main/res/values-lt/strings.xml @@ -824,9 +824,7 @@ Eiti į Nustatymus K-9 laiškų sąrašas - Įkeliama… - Įkeliama… Šifravimas neįmanomas Kai kurie iš pasirinktų gavėjų nepalaiko šios funkcijos! Įjungti šifravimą diff --git a/app/ui/legacy/src/main/res/values-lv/strings.xml b/app/ui/legacy/src/main/res/values-lv/strings.xml index 8ba83a525f0..7ec8ce864d9 100644 --- a/app/ui/legacy/src/main/res/values-lv/strings.xml +++ b/app/ui/legacy/src/main/res/values-lv/strings.xml @@ -831,9 +831,7 @@ pat %d vairāk Doties uz Iestatījumiem K-9 Ziņu saraksts - Ielādē… - Ielādē… Šifrēšana nav iespējama Daži no izvēlētajiem saņēmējiem šo iespēju neatbalsta! Iespējot šifrēšanu diff --git a/app/ui/legacy/src/main/res/values-ml/strings.xml b/app/ui/legacy/src/main/res/values-ml/strings.xml index 0a09b88445d..023c87066a5 100644 --- a/app/ui/legacy/src/main/res/values-ml/strings.xml +++ b/app/ui/legacy/src/main/res/values-ml/strings.xml @@ -781,9 +781,7 @@ ക്രമീകരണങ്ങളിലേക്ക് പോകുക കെ-9 സന്ദേശ പട്ടിക - ലോഡുചെയ്യുന്നു… - ലോഡുചെയ്യുന്നു… എൻക്രിപ്ഷൻ സാധ്യമല്ല തിരഞ്ഞെടുത്ത ചില സ്വീകർത്താക്കൾ ഈ സവിശേഷതയെ പിന്തുണയ്ക്കുന്നില്ല! എൻക്രിപ്ഷൻ പ്രാപ്തമാക്കുക diff --git a/app/ui/legacy/src/main/res/values-nb/strings.xml b/app/ui/legacy/src/main/res/values-nb/strings.xml index 3c902c25512..fcd5f1c29b0 100644 --- a/app/ui/legacy/src/main/res/values-nb/strings.xml +++ b/app/ui/legacy/src/main/res/values-nb/strings.xml @@ -751,9 +751,7 @@ til %d flere Gå til \"Innstillinger\" K-9 meldingsliste - Laster… - Laster… Kryptering er ikke mulig Noen av de valgte mottakerne støtter ikke denne funksjonen! Skru på kryptering diff --git a/app/ui/legacy/src/main/res/values-nl/strings.xml b/app/ui/legacy/src/main/res/values-nl/strings.xml index 1541bf35e91..ebac6bd01e7 100644 --- a/app/ui/legacy/src/main/res/values-nl/strings.xml +++ b/app/ui/legacy/src/main/res/values-nl/strings.xml @@ -825,9 +825,7 @@ Ga naar Instellingen K-9-berichtenlijst - Laden… - Laden… Versleuteling niet mogelijk Sommige van de ontvangers ondersteunen deze functie niet! Versleuteling inschakelen diff --git a/app/ui/legacy/src/main/res/values-nn/strings.xml b/app/ui/legacy/src/main/res/values-nn/strings.xml index 3144ecb0f53..32ee538973b 100644 --- a/app/ui/legacy/src/main/res/values-nn/strings.xml +++ b/app/ui/legacy/src/main/res/values-nn/strings.xml @@ -446,9 +446,7 @@ Meldinga er kryptert, men avkrypteringa vart avbroten. Lastar … - Lastar … - Lastar … Generelle innstilingar diff --git a/app/ui/legacy/src/main/res/values-pl/strings.xml b/app/ui/legacy/src/main/res/values-pl/strings.xml index 6d48f18044d..3dbfacb5df7 100644 --- a/app/ui/legacy/src/main/res/values-pl/strings.xml +++ b/app/ui/legacy/src/main/res/values-pl/strings.xml @@ -836,9 +836,7 @@ Przejdź do ustawień Lista wiadomości K-9 - Wczytywanie… - Wczytywanie… Szyfrowanie nie jest możliwe Część z wybranych odbiorców nie obsługuje tej funkcjonalności! Włącz szyfrowanie diff --git a/app/ui/legacy/src/main/res/values-pt-rBR/strings.xml b/app/ui/legacy/src/main/res/values-pt-rBR/strings.xml index 309bed39d19..8d70eccaafa 100644 --- a/app/ui/legacy/src/main/res/values-pt-rBR/strings.xml +++ b/app/ui/legacy/src/main/res/values-pt-rBR/strings.xml @@ -829,9 +829,7 @@ Ir para as configurações Lista de mensagens do K-9 - Carregando… - Carregando… Não foi possível criptografar Alguns dos destinatários selecionados não têm suporte a este recurso! Habilitar a criptografia diff --git a/app/ui/legacy/src/main/res/values-pt-rPT/strings.xml b/app/ui/legacy/src/main/res/values-pt-rPT/strings.xml index 14ddb5b2590..8fb06f4cfbc 100644 --- a/app/ui/legacy/src/main/res/values-pt-rPT/strings.xml +++ b/app/ui/legacy/src/main/res/values-pt-rPT/strings.xml @@ -828,9 +828,7 @@ Ir para as configurações K-9 Lista de mensagens - A carregar… - A carregar… Não é possível encriptar Alguns dos destinatários selecionados não suportam esta funcionalidade! Ativar encriptação diff --git a/app/ui/legacy/src/main/res/values-ro/strings.xml b/app/ui/legacy/src/main/res/values-ro/strings.xml index fc31f801744..19d0198090d 100644 --- a/app/ui/legacy/src/main/res/values-ro/strings.xml +++ b/app/ui/legacy/src/main/res/values-ro/strings.xml @@ -828,9 +828,7 @@ cel mult încă %d Mergi la Setări Listă mesaje K-9 - Se încarcă… - Se încarcă… Criptarea nu este posibilă Unii dintre destinatarii selectați nu suportă această facilitate! Activează criptarea diff --git a/app/ui/legacy/src/main/res/values-ru/strings.xml b/app/ui/legacy/src/main/res/values-ru/strings.xml index 3b4a77c5b29..dc27c2b2135 100644 --- a/app/ui/legacy/src/main/res/values-ru/strings.xml +++ b/app/ui/legacy/src/main/res/values-ru/strings.xml @@ -835,9 +835,7 @@ В Настройки Сообщения K-9 - Загрузка… - Загрузка… Шифрование невозможно Не все выбранные адресаты поддерживают эту возможность! Включить шифрование diff --git a/app/ui/legacy/src/main/res/values-sk/strings.xml b/app/ui/legacy/src/main/res/values-sk/strings.xml index 98db4f85100..eae57e0e2a6 100644 --- a/app/ui/legacy/src/main/res/values-sk/strings.xml +++ b/app/ui/legacy/src/main/res/values-sk/strings.xml @@ -718,9 +718,7 @@ Táto správa bola zašifrovaná pomocou OpenPGP\nJe potrebné nakonfigurovať kompatibilnú OpenPGP aplikáciu. Zoznam správ K-9 - Načítavam… - Načítavam… Späť Všeobecné nastavenia diff --git a/app/ui/legacy/src/main/res/values-sl/strings.xml b/app/ui/legacy/src/main/res/values-sl/strings.xml index 90b9db7e84a..436ea9e7206 100644 --- a/app/ui/legacy/src/main/res/values-sl/strings.xml +++ b/app/ui/legacy/src/main/res/values-sl/strings.xml @@ -830,9 +830,7 @@ dodatnih %d sporočil Pojdi v Nastavitve Seznami sporočil - Poteka nalaganje … - Poteka nalaganje … Šifriranje ni mogoče Nekateri izmed izbranih prejemnikov ne podpirajo te možnosti! Omogoči šifriranje diff --git a/app/ui/legacy/src/main/res/values-sq/strings.xml b/app/ui/legacy/src/main/res/values-sq/strings.xml index efb1b13b293..069c12065dd 100644 --- a/app/ui/legacy/src/main/res/values-sq/strings.xml +++ b/app/ui/legacy/src/main/res/values-sq/strings.xml @@ -824,9 +824,7 @@ Kaloni te Rregullimet Listë K-9 Mesazhesh - Po ngarkohet… - Po ngarkohet… Fshehtëzim jo i mundshëm Disa nga marrësit e përzgjedhur nuk e mbulojnë këtë veçori! Aktivizo Fshehtëzimin diff --git a/app/ui/legacy/src/main/res/values-sr/strings.xml b/app/ui/legacy/src/main/res/values-sr/strings.xml index 7fd0a48387b..348cdead259 100644 --- a/app/ui/legacy/src/main/res/values-sr/strings.xml +++ b/app/ui/legacy/src/main/res/values-sr/strings.xml @@ -764,9 +764,7 @@ Иди на Поставке К-9 списак порука - Учитавам… - Учитавам… Шифровање није могуће Неки од изабраних прималаца не подржавају ово! Укључи шифровање diff --git a/app/ui/legacy/src/main/res/values-sv/strings.xml b/app/ui/legacy/src/main/res/values-sv/strings.xml index 3f8129fd769..aaad272ea5e 100644 --- a/app/ui/legacy/src/main/res/values-sv/strings.xml +++ b/app/ui/legacy/src/main/res/values-sv/strings.xml @@ -822,9 +822,7 @@ Gå till inställningar K-9 Meddelandelista - Läser in… - Läser in… Kryptering inte möjligt Några av de valda mottagarna stöder inte denna funktion! Aktivera kryptering diff --git a/app/ui/legacy/src/main/res/values-tr/strings.xml b/app/ui/legacy/src/main/res/values-tr/strings.xml index 6f4809383fb..b83c09115c7 100644 --- a/app/ui/legacy/src/main/res/values-tr/strings.xml +++ b/app/ui/legacy/src/main/res/values-tr/strings.xml @@ -808,9 +808,7 @@ Ayarlara Git K-9 İleti Listesi - Yükleniyor… - Yükleniyor… Şifreleme yapılamaz Seçilen bazı alıcılar bu özelliği desteklemiyor! Şifreleme etkin diff --git a/app/ui/legacy/src/main/res/values-uk/strings.xml b/app/ui/legacy/src/main/res/values-uk/strings.xml index 6685e17c9a8..87ee990656c 100644 --- a/app/ui/legacy/src/main/res/values-uk/strings.xml +++ b/app/ui/legacy/src/main/res/values-uk/strings.xml @@ -834,9 +834,7 @@ Перейти до Налаштувань K-9 Список повідомлень - Завантаження… - Завантаження… Шифрування неможливе Деякі з вибраних адресатів не підтримують цю функцію. Увімкнути шифрування diff --git a/app/ui/legacy/src/main/res/values-vi/strings.xml b/app/ui/legacy/src/main/res/values-vi/strings.xml index 66c8fdd541e..a96f0bd0072 100644 --- a/app/ui/legacy/src/main/res/values-vi/strings.xml +++ b/app/ui/legacy/src/main/res/values-vi/strings.xml @@ -699,7 +699,6 @@ Thử lại Tin nhắn mã hóa bắt buộc tải xuống để giải mã. Ký tự đặc biệt không được hỗ trợ! - Đang tải… Quay lại Hủy kích hoạt Mã hóa Mã hóa OpenPGP @@ -810,7 +809,6 @@ Đang tải… Lỗi giải mã email Lỗi xử lý địa chỉ! - Đang tải… Không thể mã hóa Việc mã hóa tin nhắn đảm bảo chúng chỉ được đọc bởi đúng người nhận, và không một ai khác. Việc mã hóa chỉ khả thi nếu tất cả người nhận đều hỗ trợ, và họ phải gửi bạn một email trước đó. diff --git a/app/ui/legacy/src/main/res/values-zh-rCN/strings.xml b/app/ui/legacy/src/main/res/values-zh-rCN/strings.xml index 5305006a3e2..128a586112c 100644 --- a/app/ui/legacy/src/main/res/values-zh-rCN/strings.xml +++ b/app/ui/legacy/src/main/res/values-zh-rCN/strings.xml @@ -819,9 +819,7 @@ 转到设置 K-9 邮件列表 - 正在加载… - 正在加载… 无法加密 某些选定的收件人不支持此功能! 启用加密 diff --git a/app/ui/legacy/src/main/res/values-zh-rTW/strings.xml b/app/ui/legacy/src/main/res/values-zh-rTW/strings.xml index ce9fa9f9b83..84836594d8d 100644 --- a/app/ui/legacy/src/main/res/values-zh-rTW/strings.xml +++ b/app/ui/legacy/src/main/res/values-zh-rTW/strings.xml @@ -815,9 +815,7 @@ 前往設定 K-9 訊息列表 - 載入中… - 載入中… 無法加密 有些已選定的收件人不支援此功能! 啟用加密 diff --git a/app/ui/legacy/src/main/res/values/strings.xml b/app/ui/legacy/src/main/res/values/strings.xml index b52dc1c15f7..75282ebf657 100644 --- a/app/ui/legacy/src/main/res/values/strings.xml +++ b/app/ui/legacy/src/main/res/values/strings.xml @@ -1007,10 +1007,6 @@ Go to Settings K-9 Message List - - Loading… - - Loading… Encryption not possible Some of the selected recipients don\'t support this feature! diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetConfig.kt b/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetConfig.kt deleted file mode 100644 index 5fc1442f549..00000000000 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetConfig.kt +++ /dev/null @@ -1,5 +0,0 @@ -package app.k9mail.ui.widget.list - -interface MessageListWidgetConfig { - val providerClass: Class -} diff --git a/feature/widget/message-list/build.gradle.kts b/feature/widget/message-list/build.gradle.kts new file mode 100644 index 00000000000..249a35a9157 --- /dev/null +++ b/feature/widget/message-list/build.gradle.kts @@ -0,0 +1,14 @@ +plugins { + id(ThunderbirdPlugins.Library.android) +} + +dependencies { + implementation(projects.app.ui.legacy) + implementation(projects.app.core) + + implementation(libs.timber) +} + +android { + namespace = "app.k9mail.feature.widget.message.list" +} diff --git a/app/ui/message-list-widget/src/main/AndroidManifest.xml b/feature/widget/message-list/src/main/AndroidManifest.xml similarity index 100% rename from app/ui/message-list-widget/src/main/AndroidManifest.xml rename to feature/widget/message-list/src/main/AndroidManifest.xml diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetProvider.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/BaseMessageListWidgetProvider.kt similarity index 92% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetProvider.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/BaseMessageListWidgetProvider.kt index 7c9682efda8..11ec458b349 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetProvider.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/BaseMessageListWidgetProvider.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import android.app.PendingIntent import android.appwidget.AppWidgetManager @@ -13,9 +13,8 @@ import com.fsck.k9.activity.MessageList.Companion.intentDisplaySearch import com.fsck.k9.search.SearchAccount.Companion.createUnifiedInboxAccount import org.koin.core.component.KoinComponent import org.koin.core.component.inject -import com.fsck.k9.ui.R as UiR -open class MessageListWidgetProvider : AppWidgetProvider(), KoinComponent { +abstract class BaseMessageListWidgetProvider : AppWidgetProvider(), KoinComponent { private val messageListWidgetManager: MessageListWidgetManager by inject() override fun onEnabled(context: Context) { @@ -35,7 +34,7 @@ open class MessageListWidgetProvider : AppWidgetProvider(), KoinComponent { private fun updateAppWidget(context: Context, appWidgetManager: AppWidgetManager, appWidgetId: Int) { val views = RemoteViews(context.packageName, R.layout.message_list_widget_layout) - views.setTextViewText(R.id.folder, context.getString(UiR.string.integrated_inbox_title)) + views.setTextViewText(R.id.folder, context.getString(R.string.message_list_widget_inbox_title)) val intent = Intent(context, MessageListWidgetService::class.java) views.setRemoteAdapter(R.id.listView, intent) diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/KoinModule.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/KoinModule.kt similarity index 85% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/KoinModule.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/KoinModule.kt index dbee532f8c5..d70caa03713 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/KoinModule.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/KoinModule.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import org.koin.dsl.module diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListConfig.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListConfig.kt similarity index 85% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListConfig.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListConfig.kt index 2b34ad90448..ca540e00be6 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListConfig.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListConfig.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import com.fsck.k9.Account.SortType import com.fsck.k9.search.LocalSearch diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListItem.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListItem.kt similarity index 91% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListItem.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListItem.kt index 19c266df108..2a0be55c153 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListItem.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListItem.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import com.fsck.k9.controller.MessageReference diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListItemMapper.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListItemMapper.kt similarity index 90% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListItemMapper.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListItemMapper.kt index 8b3bf20c83a..6f4a93259c2 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListItemMapper.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListItemMapper.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import com.fsck.k9.Account import com.fsck.k9.controller.MessageReference @@ -48,6 +48,7 @@ internal class MessageListItemMapper( ) } + @Suppress("ImplicitDefaultLocale") private fun formatDate(date: Long): String { calendar.timeInMillis = date val dayOfMonth = calendar.get(Calendar.DAY_OF_MONTH) @@ -57,6 +58,10 @@ internal class MessageListItemMapper( } private fun createUniqueId(account: Account, messageId: Long): Long { - return ((account.accountNumber + 1).toLong() shl 52) + messageId + return ((account.accountNumber + 1).toLong() shl ACCOUNT_NUMBER_BIT_SHIFT) + messageId + } + + private companion object { + const val ACCOUNT_NUMBER_BIT_SHIFT = 52 } } diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListLoader.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListLoader.kt similarity index 98% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListLoader.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListLoader.kt index d392ec7195d..c128528e1f7 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListLoader.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListLoader.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import com.fsck.k9.Account import com.fsck.k9.Account.SortType @@ -16,6 +16,7 @@ internal class MessageListLoader( private val messageHelper: MessageHelper, ) { + @Suppress("TooGenericExceptionCaught") fun getMessageList(config: MessageListConfig): List { return try { getMessageListInfo(config) diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListRemoteViewFactory.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListRemoteViewFactory.kt similarity index 97% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListRemoteViewFactory.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListRemoteViewFactory.kt index 9d94ae7b5e8..7edef6e1c8a 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListRemoteViewFactory.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListRemoteViewFactory.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import android.content.Context import android.graphics.Typeface @@ -15,8 +15,8 @@ import com.fsck.k9.search.LocalSearch import com.fsck.k9.search.SearchAccount import org.koin.core.component.KoinComponent import org.koin.core.component.inject -import com.fsck.k9.ui.R as UiR +@Suppress("TooManyFunctions") internal class MessageListRemoteViewFactory(private val context: Context) : RemoteViewsFactory, KoinComponent { private val messageListLoader: MessageListLoader by inject() @@ -105,7 +105,7 @@ internal class MessageListRemoteViewFactory(private val context: Context) : Remo override fun getLoadingView(): RemoteViews { return RemoteViews(context.packageName, R.layout.message_list_widget_list_item_loading).apply { // Set the text here instead of in the layout so the app language override is used - setTextViewText(R.id.loadingText, context.getString(UiR.string.message_list_widget_list_item_loading)) + setTextViewText(R.id.loadingText, context.getString(R.string.message_list_widget_list_item_loading)) } } diff --git a/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetConfig.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetConfig.kt new file mode 100644 index 00000000000..8311472344d --- /dev/null +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetConfig.kt @@ -0,0 +1,5 @@ +package app.k9mail.feature.widget.message.list + +interface MessageListWidgetConfig { + val providerClass: Class +} diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetManager.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetManager.kt similarity index 97% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetManager.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetManager.kt index 3335c482cdc..831e16e6a12 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetManager.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetManager.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import android.appwidget.AppWidgetManager import android.content.ComponentName @@ -33,6 +33,7 @@ class MessageListWidgetManager( } } + @Suppress("TooGenericExceptionCaught") private fun onMessageListChanged() { try { triggerMessageListWidgetUpdate() diff --git a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetService.kt b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetService.kt similarity index 85% rename from app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetService.kt rename to feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetService.kt index 09a82e25240..2d0de868ba9 100644 --- a/app/ui/message-list-widget/src/main/java/app/k9mail/ui/widget/list/MessageListWidgetService.kt +++ b/feature/widget/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListWidgetService.kt @@ -1,4 +1,4 @@ -package app.k9mail.ui.widget.list +package app.k9mail.feature.widget.message.list import android.content.Intent import android.widget.RemoteViewsService diff --git a/app/ui/message-list-widget/src/main/res/drawable-xxhdpi/message_list_widget_preview.png b/feature/widget/message-list/src/main/res/drawable-xxhdpi/message_list_widget_preview.png similarity index 100% rename from app/ui/message-list-widget/src/main/res/drawable-xxhdpi/message_list_widget_preview.png rename to feature/widget/message-list/src/main/res/drawable-xxhdpi/message_list_widget_preview.png diff --git a/app/ui/message-list-widget/src/main/res/layout/message_list_widget_layout.xml b/feature/widget/message-list/src/main/res/layout/message_list_widget_layout.xml similarity index 95% rename from app/ui/message-list-widget/src/main/res/layout/message_list_widget_layout.xml rename to feature/widget/message-list/src/main/res/layout/message_list_widget_layout.xml index 715bb8ff315..3e223052f89 100644 --- a/app/ui/message-list-widget/src/main/res/layout/message_list_widget_layout.xml +++ b/feature/widget/message-list/src/main/res/layout/message_list_widget_layout.xml @@ -30,7 +30,7 @@ android:layout_width="56dp" android:layout_height="match_parent" android:background="?android:attr/selectableItemBackground" - android:contentDescription="@string/compose_action" + android:contentDescription="@string/message_list_widget_compose_action" android:scaleType="center" android:src="@drawable/ic_edit" /> diff --git a/app/ui/message-list-widget/src/main/res/layout/message_list_widget_list_item.xml b/feature/widget/message-list/src/main/res/layout/message_list_widget_list_item.xml similarity index 100% rename from app/ui/message-list-widget/src/main/res/layout/message_list_widget_list_item.xml rename to feature/widget/message-list/src/main/res/layout/message_list_widget_list_item.xml diff --git a/app/ui/message-list-widget/src/main/res/layout/message_list_widget_list_item_loading.xml b/feature/widget/message-list/src/main/res/layout/message_list_widget_list_item_loading.xml similarity index 100% rename from app/ui/message-list-widget/src/main/res/layout/message_list_widget_list_item_loading.xml rename to feature/widget/message-list/src/main/res/layout/message_list_widget_list_item_loading.xml diff --git a/app/ui/message-list-widget/src/main/res/layout/message_list_widget_loading.xml b/feature/widget/message-list/src/main/res/layout/message_list_widget_loading.xml similarity index 100% rename from app/ui/message-list-widget/src/main/res/layout/message_list_widget_loading.xml rename to feature/widget/message-list/src/main/res/layout/message_list_widget_loading.xml diff --git a/feature/widget/message-list/src/main/res/values-ar/strings.xml b/feature/widget/message-list/src/main/res/values-ar/strings.xml new file mode 100644 index 00000000000..9333b5079d4 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ar/strings.xml @@ -0,0 +1,7 @@ + + + أنشِئ + يُحمل… + يُحمل… + البريد الوارد الموحَّد + diff --git a/feature/widget/message-list/src/main/res/values-az/strings.xml b/feature/widget/message-list/src/main/res/values-az/strings.xml new file mode 100644 index 00000000000..2a7c61ced80 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-az/strings.xml @@ -0,0 +1,4 @@ + + + Tərtib et + diff --git a/feature/widget/message-list/src/main/res/values-be/strings.xml b/feature/widget/message-list/src/main/res/values-be/strings.xml new file mode 100644 index 00000000000..df86c5ed435 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-be/strings.xml @@ -0,0 +1,7 @@ + + + Напісаць + Загрузка… + Загрузка… + Усе атрыманыя + diff --git a/feature/widget/message-list/src/main/res/values-bg/strings.xml b/feature/widget/message-list/src/main/res/values-bg/strings.xml new file mode 100644 index 00000000000..225c3632403 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-bg/strings.xml @@ -0,0 +1,7 @@ + + + Състави + Зареждане… + Зареждане… + Обща входяща кутия + diff --git a/feature/widget/message-list/src/main/res/values-br/strings.xml b/feature/widget/message-list/src/main/res/values-br/strings.xml new file mode 100644 index 00000000000..267b7b99af1 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-br/strings.xml @@ -0,0 +1,7 @@ + + + Skridaozañ + O kargañ… + O kargañ… + Boest degemer unanet + diff --git a/feature/widget/message-list/src/main/res/values-bs/strings.xml b/feature/widget/message-list/src/main/res/values-bs/strings.xml new file mode 100644 index 00000000000..9b0e4e02b75 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-bs/strings.xml @@ -0,0 +1,4 @@ + + + Sastavi + diff --git a/feature/widget/message-list/src/main/res/values-ca/strings.xml b/feature/widget/message-list/src/main/res/values-ca/strings.xml new file mode 100644 index 00000000000..5017dccd062 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ca/strings.xml @@ -0,0 +1,7 @@ + + + Redacta + S\'està carregant… + S\'està carregant… + Bústia d\'entrada unificada + diff --git a/feature/widget/message-list/src/main/res/values-co/strings.xml b/feature/widget/message-list/src/main/res/values-co/strings.xml new file mode 100644 index 00000000000..cca4d83f018 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-co/strings.xml @@ -0,0 +1,7 @@ + + + Cumpone + Caricamentu… + Caricamentu… + Scatula di ricezzione unificata + diff --git a/feature/widget/message-list/src/main/res/values-cs/strings.xml b/feature/widget/message-list/src/main/res/values-cs/strings.xml new file mode 100644 index 00000000000..b8921fcbd8a --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-cs/strings.xml @@ -0,0 +1,7 @@ + + + Nová + Načítání… + Načítání… + Integrovaná doručená pošta + diff --git a/feature/widget/message-list/src/main/res/values-cy/strings.xml b/feature/widget/message-list/src/main/res/values-cy/strings.xml new file mode 100644 index 00000000000..a543836e835 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-cy/strings.xml @@ -0,0 +1,7 @@ + + + Ysgrifennu + Yn llwytho… + Yn llwytho… + Mewnflwch Unedig + diff --git a/feature/widget/message-list/src/main/res/values-da/strings.xml b/feature/widget/message-list/src/main/res/values-da/strings.xml new file mode 100644 index 00000000000..e9aa7a82a93 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-da/strings.xml @@ -0,0 +1,7 @@ + + + Skriv + Indlæser… + Indlæser… + Fælles indbakke + diff --git a/feature/widget/message-list/src/main/res/values-de/strings.xml b/feature/widget/message-list/src/main/res/values-de/strings.xml new file mode 100644 index 00000000000..9a8bb253bb0 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-de/strings.xml @@ -0,0 +1,7 @@ + + + Verfassen + Ladevorgang… + Ladevorgang… + Gemeinsamer Posteingang + diff --git a/feature/widget/message-list/src/main/res/values-el/strings.xml b/feature/widget/message-list/src/main/res/values-el/strings.xml new file mode 100644 index 00000000000..38d4d92872d --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-el/strings.xml @@ -0,0 +1,7 @@ + + + Δημιουργία νέου + Φόρτωση… + Φόρτωση… + Ενιαία Εισερχόμενα + diff --git a/feature/widget/message-list/src/main/res/values-en-rGB/strings.xml b/feature/widget/message-list/src/main/res/values-en-rGB/strings.xml new file mode 100644 index 00000000000..853281a5e72 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-en-rGB/strings.xml @@ -0,0 +1,7 @@ + + + Compose + Loading… + Loading… + Unified Inbox + diff --git a/feature/widget/message-list/src/main/res/values-eo/strings.xml b/feature/widget/message-list/src/main/res/values-eo/strings.xml new file mode 100644 index 00000000000..9765bc44120 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-eo/strings.xml @@ -0,0 +1,7 @@ + + + Krei + Ŝargado… + Ŝargado… + Unuigita ricevujo + diff --git a/feature/widget/message-list/src/main/res/values-es/strings.xml b/feature/widget/message-list/src/main/res/values-es/strings.xml new file mode 100644 index 00000000000..a3001c34f40 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-es/strings.xml @@ -0,0 +1,7 @@ + + + Redactar + Cargando… + Cargando… + Entrada unificada + diff --git a/feature/widget/message-list/src/main/res/values-et/strings.xml b/feature/widget/message-list/src/main/res/values-et/strings.xml new file mode 100644 index 00000000000..6daa962b5bb --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-et/strings.xml @@ -0,0 +1,7 @@ + + + Koosta + Laadib… + Laadib… + Koondsisendkaust + diff --git a/feature/widget/message-list/src/main/res/values-eu/strings.xml b/feature/widget/message-list/src/main/res/values-eu/strings.xml new file mode 100644 index 00000000000..160a7512594 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-eu/strings.xml @@ -0,0 +1,7 @@ + + + Idatzi + Kargatzen… + Kargatzen… + Sarrerako ontzi bateratua + diff --git a/feature/widget/message-list/src/main/res/values-fa/strings.xml b/feature/widget/message-list/src/main/res/values-fa/strings.xml new file mode 100644 index 00000000000..1f0f849838d --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-fa/strings.xml @@ -0,0 +1,7 @@ + + + نوشتن + بارگیری… + بارگیری… + صندوق ورودی یکپارچه + diff --git a/feature/widget/message-list/src/main/res/values-fi/strings.xml b/feature/widget/message-list/src/main/res/values-fi/strings.xml new file mode 100644 index 00000000000..322345b66df --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-fi/strings.xml @@ -0,0 +1,7 @@ + + + Kirjoita + Ladataan… + Ladataan… + Yhdistetty saapuneet + diff --git a/feature/widget/message-list/src/main/res/values-fr/strings.xml b/feature/widget/message-list/src/main/res/values-fr/strings.xml new file mode 100644 index 00000000000..47bf4107737 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-fr/strings.xml @@ -0,0 +1,8 @@ + + + Rédiger + + Chargement… + Chargement… + Boîte de réception unifiée + diff --git a/feature/widget/message-list/src/main/res/values-fy/strings.xml b/feature/widget/message-list/src/main/res/values-fy/strings.xml new file mode 100644 index 00000000000..3c6f6ac13f5 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-fy/strings.xml @@ -0,0 +1,7 @@ + + + Nij berjocht + Lade… + Lade… + Kombinearre Postfek YN + diff --git a/feature/widget/message-list/src/main/res/values-gd/strings.xml b/feature/widget/message-list/src/main/res/values-gd/strings.xml new file mode 100644 index 00000000000..6c58f4f7e88 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-gd/strings.xml @@ -0,0 +1,7 @@ + + + Sgrìobh + ’Ga luchdadh… + ’Ga luchdadh… + An t-oll-bhogsa + diff --git a/feature/widget/message-list/src/main/res/values-gl/strings.xml b/feature/widget/message-list/src/main/res/values-gl/strings.xml new file mode 100644 index 00000000000..fc895b4e982 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-gl/strings.xml @@ -0,0 +1,7 @@ + + + Redactar + A cargar… + A cargar… + Entrada unificada + diff --git a/feature/widget/message-list/src/main/res/values-hi/strings.xml b/feature/widget/message-list/src/main/res/values-hi/strings.xml new file mode 100644 index 00000000000..1a845d226ad --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-hi/strings.xml @@ -0,0 +1,4 @@ + + + बनाएं + diff --git a/feature/widget/message-list/src/main/res/values-hr/strings.xml b/feature/widget/message-list/src/main/res/values-hr/strings.xml new file mode 100644 index 00000000000..cdc736460c4 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-hr/strings.xml @@ -0,0 +1,7 @@ + + + Sastavi + Učitavam… + Učitavam… + Objedinjena Dolazna Pošta + diff --git a/feature/widget/message-list/src/main/res/values-hu/strings.xml b/feature/widget/message-list/src/main/res/values-hu/strings.xml new file mode 100644 index 00000000000..c470c24044d --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-hu/strings.xml @@ -0,0 +1,7 @@ + + + Írás + Betöltés… + Betöltés… + Egységes beérkezett üzenetek + diff --git a/feature/widget/message-list/src/main/res/values-hy/strings.xml b/feature/widget/message-list/src/main/res/values-hy/strings.xml new file mode 100644 index 00000000000..b05afa37a80 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-hy/strings.xml @@ -0,0 +1,4 @@ + + + Գրել + diff --git a/feature/widget/message-list/src/main/res/values-in/strings.xml b/feature/widget/message-list/src/main/res/values-in/strings.xml new file mode 100644 index 00000000000..5e89617a37f --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-in/strings.xml @@ -0,0 +1,7 @@ + + + Menyusun + Memuat… + Memuat… + Kotak Masuk Terpadu + diff --git a/feature/widget/message-list/src/main/res/values-is/strings.xml b/feature/widget/message-list/src/main/res/values-is/strings.xml new file mode 100644 index 00000000000..fe8fa326c64 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-is/strings.xml @@ -0,0 +1,7 @@ + + + Semja + Hleður… + Hleður… + Sameinað innhólf + diff --git a/feature/widget/message-list/src/main/res/values-it/strings.xml b/feature/widget/message-list/src/main/res/values-it/strings.xml new file mode 100644 index 00000000000..af290266c6e --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-it/strings.xml @@ -0,0 +1,7 @@ + + + Componi + Caricamento… + Caricamento… + Posta combinata + diff --git a/feature/widget/message-list/src/main/res/values-iw/strings.xml b/feature/widget/message-list/src/main/res/values-iw/strings.xml new file mode 100644 index 00000000000..285a8557e53 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-iw/strings.xml @@ -0,0 +1,7 @@ + + + חבר + טוען… + טוען… + תיבת דואר נכנס אחידה + diff --git a/feature/widget/message-list/src/main/res/values-ja/strings.xml b/feature/widget/message-list/src/main/res/values-ja/strings.xml new file mode 100644 index 00000000000..dfcfdcc2932 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ja/strings.xml @@ -0,0 +1,7 @@ + + + 作成 + 読み込み中… + 読み込み中… + 統合受信トレイ + diff --git a/feature/widget/message-list/src/main/res/values-ka/strings.xml b/feature/widget/message-list/src/main/res/values-ka/strings.xml new file mode 100644 index 00000000000..a3c9952ef61 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ka/strings.xml @@ -0,0 +1,7 @@ + + + შექმნა + ჩატვირთვა… + ჩატვირთვა… + გაერთიანებული შემავალი + diff --git a/feature/widget/message-list/src/main/res/values-ko/strings.xml b/feature/widget/message-list/src/main/res/values-ko/strings.xml new file mode 100644 index 00000000000..ba7a975e1f6 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ko/strings.xml @@ -0,0 +1,7 @@ + + + 작성 + 로딩 중… + 로딩 중… + 통합 편지함 + diff --git a/feature/widget/message-list/src/main/res/values-lt/strings.xml b/feature/widget/message-list/src/main/res/values-lt/strings.xml new file mode 100644 index 00000000000..2ac2b5ab2ae --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-lt/strings.xml @@ -0,0 +1,7 @@ + + + Sukurti + Įkeliama… + Įkeliama… + Suvestiniai gautieji + diff --git a/feature/widget/message-list/src/main/res/values-lv/strings.xml b/feature/widget/message-list/src/main/res/values-lv/strings.xml new file mode 100644 index 00000000000..cb90ceb2d0b --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-lv/strings.xml @@ -0,0 +1,7 @@ + + + Rakstīt ziņu + Ielādē… + Ielādē… + Apvienotā Iesūtne + diff --git a/feature/widget/message-list/src/main/res/values-ml/strings.xml b/feature/widget/message-list/src/main/res/values-ml/strings.xml new file mode 100644 index 00000000000..d49219bb3d9 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ml/strings.xml @@ -0,0 +1,7 @@ + + + രചിക്കുക + ലോഡുചെയ്യുന്നു… + ലോഡുചെയ്യുന്നു… + ഏകീകൃത ഇൻ‌ബോക്സ് + diff --git a/feature/widget/message-list/src/main/res/values-nb/strings.xml b/feature/widget/message-list/src/main/res/values-nb/strings.xml new file mode 100644 index 00000000000..e5ed3d8cd69 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-nb/strings.xml @@ -0,0 +1,7 @@ + + + Skriv + Laster… + Laster… + Samlet innboks + diff --git a/feature/widget/message-list/src/main/res/values-nl/strings.xml b/feature/widget/message-list/src/main/res/values-nl/strings.xml new file mode 100644 index 00000000000..17b135735f5 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-nl/strings.xml @@ -0,0 +1,7 @@ + + + Nieuw bericht + Laden… + Laden… + Gecombineerde Postvak IN + diff --git a/feature/widget/message-list/src/main/res/values-nn/strings.xml b/feature/widget/message-list/src/main/res/values-nn/strings.xml new file mode 100644 index 00000000000..1dd116ac081 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-nn/strings.xml @@ -0,0 +1,6 @@ + + + Skriv + Lastar … + Lastar … + diff --git a/feature/widget/message-list/src/main/res/values-pl/strings.xml b/feature/widget/message-list/src/main/res/values-pl/strings.xml new file mode 100644 index 00000000000..126f6f9ee88 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-pl/strings.xml @@ -0,0 +1,7 @@ + + + Nowa wiadomość + Wczytywanie… + Wczytywanie… + Zintegrowana odbiorcza + diff --git a/feature/widget/message-list/src/main/res/values-pt-rBR/strings.xml b/feature/widget/message-list/src/main/res/values-pt-rBR/strings.xml new file mode 100644 index 00000000000..3bded742fde --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-pt-rBR/strings.xml @@ -0,0 +1,7 @@ + + + Escrever + Carregando… + Carregando… + Caixa de Entrada Unificada + diff --git a/feature/widget/message-list/src/main/res/values-pt-rPT/strings.xml b/feature/widget/message-list/src/main/res/values-pt-rPT/strings.xml new file mode 100644 index 00000000000..d8dd954dd6f --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-pt-rPT/strings.xml @@ -0,0 +1,7 @@ + + + Compor + A carregar… + A carregar… + Caixa de entrada unificada + diff --git a/feature/widget/message-list/src/main/res/values-ro/strings.xml b/feature/widget/message-list/src/main/res/values-ro/strings.xml new file mode 100644 index 00000000000..be80dc28b14 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ro/strings.xml @@ -0,0 +1,7 @@ + + + Compune + Se încarcă… + Se încarcă… + Căsuță poștală unificată + diff --git a/feature/widget/message-list/src/main/res/values-ru/strings.xml b/feature/widget/message-list/src/main/res/values-ru/strings.xml new file mode 100644 index 00000000000..73803b0ec9e --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ru/strings.xml @@ -0,0 +1,7 @@ + + + Создать + Загрузка… + Загрузка… + Входящие + diff --git a/feature/widget/message-list/src/main/res/values-sk/strings.xml b/feature/widget/message-list/src/main/res/values-sk/strings.xml new file mode 100644 index 00000000000..206f76b43e4 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-sk/strings.xml @@ -0,0 +1,7 @@ + + + Napísať + Načítavam… + Načítavam… + Jednotná schránka + diff --git a/feature/widget/message-list/src/main/res/values-sl/strings.xml b/feature/widget/message-list/src/main/res/values-sl/strings.xml new file mode 100644 index 00000000000..1f2082fc66c --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-sl/strings.xml @@ -0,0 +1,7 @@ + + + Sestavi sporočilo + Poteka nalaganje … + Poteka nalaganje … + Skupna mapa prejetih sporočil + diff --git a/feature/widget/message-list/src/main/res/values-sq/strings.xml b/feature/widget/message-list/src/main/res/values-sq/strings.xml new file mode 100644 index 00000000000..f25d626815b --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-sq/strings.xml @@ -0,0 +1,7 @@ + + + Hartoni + Po ngarkohet… + Po ngarkohet… + Kuti Poste e Njësuar + diff --git a/feature/widget/message-list/src/main/res/values-sr/strings.xml b/feature/widget/message-list/src/main/res/values-sr/strings.xml new file mode 100644 index 00000000000..44d5a1f6385 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-sr/strings.xml @@ -0,0 +1,7 @@ + + + Састави + Учитавам… + Учитавам… + Обједињено сандуче + diff --git a/feature/widget/message-list/src/main/res/values-sv/strings.xml b/feature/widget/message-list/src/main/res/values-sv/strings.xml new file mode 100644 index 00000000000..5af6c025697 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-sv/strings.xml @@ -0,0 +1,7 @@ + + + Skriv + Läser in… + Läser in… + Samlad inkorg + diff --git a/feature/widget/message-list/src/main/res/values-ta-rIN/strings.xml b/feature/widget/message-list/src/main/res/values-ta-rIN/strings.xml new file mode 100644 index 00000000000..87dc1324f6e --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-ta-rIN/strings.xml @@ -0,0 +1,4 @@ + + + எழுது + diff --git a/feature/widget/message-list/src/main/res/values-tr/strings.xml b/feature/widget/message-list/src/main/res/values-tr/strings.xml new file mode 100644 index 00000000000..9db5a7b8797 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-tr/strings.xml @@ -0,0 +1,7 @@ + + + Oluştur + Yükleniyor… + Yükleniyor… + Birleşik Gelen Kutusu + diff --git a/feature/widget/message-list/src/main/res/values-uk/strings.xml b/feature/widget/message-list/src/main/res/values-uk/strings.xml new file mode 100644 index 00000000000..fdbf0bc00e8 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-uk/strings.xml @@ -0,0 +1,7 @@ + + + Написати новий лист + Завантаження… + Завантаження… + Об\'єднані Вхідні + diff --git a/feature/widget/message-list/src/main/res/values-vi/strings.xml b/feature/widget/message-list/src/main/res/values-vi/strings.xml new file mode 100644 index 00000000000..6552d92a582 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-vi/strings.xml @@ -0,0 +1,7 @@ + + + Soạn thư + Đang tải… + Đang tải… + Hộp thư đồng nhất + diff --git a/feature/widget/message-list/src/main/res/values-zh-rCN/strings.xml b/feature/widget/message-list/src/main/res/values-zh-rCN/strings.xml new file mode 100644 index 00000000000..dee2cb7fd37 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-zh-rCN/strings.xml @@ -0,0 +1,7 @@ + + + 撰写 + 正在加载… + 正在加载… + 统一收件箱 + diff --git a/feature/widget/message-list/src/main/res/values-zh-rTW/strings.xml b/feature/widget/message-list/src/main/res/values-zh-rTW/strings.xml new file mode 100644 index 00000000000..d740ad3d46d --- /dev/null +++ b/feature/widget/message-list/src/main/res/values-zh-rTW/strings.xml @@ -0,0 +1,7 @@ + + + 新郵件 + 載入中… + 載入中… + 全域收件匣 + diff --git a/app/ui/message-list-widget/src/main/res/values/colors.xml b/feature/widget/message-list/src/main/res/values/colors.xml similarity index 100% rename from app/ui/message-list-widget/src/main/res/values/colors.xml rename to feature/widget/message-list/src/main/res/values/colors.xml diff --git a/feature/widget/message-list/src/main/res/values/strings.xml b/feature/widget/message-list/src/main/res/values/strings.xml new file mode 100644 index 00000000000..853281a5e72 --- /dev/null +++ b/feature/widget/message-list/src/main/res/values/strings.xml @@ -0,0 +1,7 @@ + + + Compose + Loading… + Loading… + Unified Inbox + diff --git a/app/ui/message-list-widget/src/main/res/xml/message_list_widget_info.xml b/feature/widget/message-list/src/main/res/xml/message_list_widget_info.xml similarity index 100% rename from app/ui/message-list-widget/src/main/res/xml/message_list_widget_info.xml rename to feature/widget/message-list/src/main/res/xml/message_list_widget_info.xml diff --git a/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/KoinModule.kt b/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/KoinModule.kt index bfa299cb517..0aaf4731776 100644 --- a/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/KoinModule.kt +++ b/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/KoinModule.kt @@ -23,7 +23,7 @@ val unreadWidgetModule = module { single { UnreadWidgetUpdater( context = get(), - classProvider = get(), + config = get(), ) } single { UnreadWidgetUpdateListener(unreadWidgetUpdater = get()) } diff --git a/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetClassProvider.kt b/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetClassProvider.kt deleted file mode 100644 index a5dbb7585e9..00000000000 --- a/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetClassProvider.kt +++ /dev/null @@ -1,5 +0,0 @@ -package app.k9mail.feature.widget.unread - -fun interface UnreadWidgetClassProvider { - fun getUnreadWidgetClass(): Class<*> -} diff --git a/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetConfig.kt b/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetConfig.kt new file mode 100644 index 00000000000..ad0b5c0b526 --- /dev/null +++ b/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetConfig.kt @@ -0,0 +1,5 @@ +package app.k9mail.feature.widget.unread + +interface UnreadWidgetConfig { + val providerClass: Class +} diff --git a/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetUpdater.kt b/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetUpdater.kt index a3188fc3ce7..ae9356ce379 100644 --- a/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetUpdater.kt +++ b/feature/widget/unread/src/main/kotlin/app/k9mail/feature/widget/unread/UnreadWidgetUpdater.kt @@ -7,12 +7,12 @@ import android.content.Intent class UnreadWidgetUpdater( private val context: Context, - private val classProvider: UnreadWidgetClassProvider, + private val config: UnreadWidgetConfig, ) { private val appWidgetManager = AppWidgetManager.getInstance(context) fun updateAll() { - val thisWidget = ComponentName(context, classProvider.getUnreadWidgetClass()) + val thisWidget = ComponentName(context, config.providerClass) val widgetIds = appWidgetManager.getAppWidgetIds(thisWidget) updateWidgets(context, widgetIds) @@ -23,7 +23,7 @@ class UnreadWidgetUpdater( } private fun updateWidgets(context: Context, widgetIds: IntArray) { - val updateIntent = Intent(context, classProvider.getUnreadWidgetClass()) + val updateIntent = Intent(context, config.providerClass) updateIntent.action = AppWidgetManager.ACTION_APPWIDGET_UPDATE updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, widgetIds) diff --git a/settings.gradle.kts b/settings.gradle.kts index 2055cb0795c..a324f70be07 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -30,7 +30,6 @@ include( ":app:common", ":app:ui:base", ":app:ui:legacy", - ":app:ui:message-list-widget", ":app:core", ":app:storage", ":app:crypto-openpgp", @@ -69,6 +68,7 @@ include( ) include( + ":feature:widget:message-list", ":feature:widget:unread", )