Commit 39ab1a1c authored by Michael Enoma's avatar Michael Enoma 👽
Browse files

new tags

parents 10466cd4 ec7b141b
Pipeline #155463 passed with stage
in 4 minutes and 38 seconds
......@@ -54,7 +54,7 @@ jobs:
- name: Build debug APK
run: bash ./gradlew assembleDev --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v2.3.0
uses: actions/upload-artifact@v2.3.1
with:
name: app-dev-debug
path: app/build/outputs/apk/dev/debug/app-dev-debug.apk
......@@ -14,8 +14,8 @@ android {
applicationId "it.niedermann.owncloud.notes"
minSdkVersion 22
targetSdkVersion 31
versionCode 3004016
versionName "3.4.16"
versionCode 3004018
versionName "3.4.18"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
......@@ -78,7 +78,7 @@ dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
// Nextcloud SSO
implementation 'com.github.nextcloud:Android-SingleSignOn:0.6.0'
implementation 'com.github.nextcloud:Android-SingleSignOn:0.6.1'
implementation 'com.github.stefan-niedermann:android-commons:0.2.5'
implementation 'com.github.stefan-niedermann.nextcloud-commons:sso-glide:1.6.2'
implementation 'com.github.stefan-niedermann.nextcloud-commons:exception:1.6.2'
......@@ -117,7 +117,7 @@ dependencies {
testImplementation 'androidx.test:core:1.4.0'
testImplementation 'androidx.arch.core:core-testing:2.1.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:4.1.0'
testImplementation 'org.mockito:mockito-core:4.2.0'
testImplementation 'org.robolectric:robolectric:4.7.3'
implementation fileTree(dir: 'libs', include: ['*.jar'])
......
package it.niedermann.owncloud.notes.main.slots;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import it.niedermann.owncloud.notes.R;
import it.niedermann.owncloud.notes.main.items.section.SectionItem;
......@@ -58,9 +60,13 @@ public class SlotterUtil {
String lastInitials = null;
for (int i = 0; i < noteList.size(); i++) {
final var currentNote = noteList.get(i);
String initials = currentNote.getTitle().substring(0, 1).toUpperCase();
if (!initials.matches("[A-Z\\u00C0-\\u00DF]")) {
initials = initials.matches("[\\u0250-\\uFFFF]") ? context.getString(R.string.simple_other) : "#";
final var title = currentNote.getTitle();
String initials = "";
if(!TextUtils.isEmpty(title)) {
initials = title.substring(0, 1).toUpperCase();
if (!initials.matches("[A-Z\\u00C0-\\u00DF]")) {
initials = initials.matches("[\\u0250-\\uFFFF]") ? context.getString(R.string.simple_other) : "#";
}
}
if (i > 0 && !initials.equals(lastInitials)) {
itemList.add(new SectionItem(initials));
......
......@@ -162,7 +162,7 @@
<string name="error_dialog_server_app_enabled">Bitte stellen Sie sicher, dass die „Notes“-App auf Ihrem Server installiert und aktiviert ist.</string>
<string name="error_dialog_redirect">Ihr Server antwortet mit HTTP Status-Code 302. Dies bedeutet, dass entweder die Notes App nicht auf Ihrem Server installiert ist, oder eine Fehlkonfiguration vorliegt. Die Ursache kann im Überschreiben von Variablen in der .htaccess-Datei liegen, oder an Nextcloud Apps wie OID Client.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Bitte alle Batterieoptimierungen für Nextcloud und die Notes-App deaktivieren.</string>
<string name="error_dialog_min_version">Die Notes Android-app setzt voraus, dass die Nextcloud-Android-App mindestens Version 3.18 ist.</string>
<string name="error_dialog_min_version">Die Notes-App für Android setzt voraus, dass die Nextcloud-Android-App mindestens Version 3.18 ist.</string>
<string name="added_content">„%1$s“ hinzugefügt</string>
<string name="shared_text_empty">Der geteilte Text war ohne Inhalt</string>
<string name="append_to_note">An Notiz anhängen</string>
......
......@@ -66,7 +66,7 @@
<string name="about_source_title">Código fuente</string>
<string name="about_source">Este proyecto está alojado en GitHub: %1$s</string>
<string name="about_issues_title">Problemas</string>
<string name="about_issues">Puede reportar bugs, proponer mejoras y solicitar nuevas características en el rastreador de problemas de GitHub: %1$s</string>
<string name="about_issues">Puede informar de errores, proponer mejoras y solicitar nuevas características en el rastreador de problemas de GitHub: %1$s</string>
<string name="about_translate_title">Traducir</string>
<string name="about_translate">Únete al equipo de Nextcloud en Transifex y ayúdanos a traducir esta aplicación:%1$s</string>
<string name="about_app_license_title">Licencia de la aplicación</string>
......@@ -162,6 +162,7 @@
<string name="error_dialog_server_app_enabled">Por favor, asegúrate de que has instalado y activado la app «Notas» en tu servidor.</string>
<string name="error_dialog_redirect">Tu servidor respondió con el código de estado HTTP 302, lo que implica que no está instalada la aplicación Notas en su servidor o que algo está mal configurado. Esto puede estar causado por anulaciones personalizadas en un archivo .htaccess o por aplicaciones de Nextcloud como OID Client. </string>
<string name="error_dialog_tip_disable_battery_optimizations">Por favor, desactiva todas las optimizaciones de la batería para Nextcloud y la app de Notas.</string>
<string name="error_dialog_min_version">La aplicación de Android Notas necesita la versión 3.18 o superior de la aplicación Android Nextcloud</string>
<string name="added_content">Se ha añadido «%1$s»</string>
<string name="shared_text_empty">El texto compartido estaba vacío</string>
<string name="append_to_note">Añadir a la nota</string>
......@@ -268,6 +269,7 @@
<string name="error_action_open_battery_settings">Ajustes de batería</string>
<string name="error_action_open_deck_info">Abrir info de la app</string>
<string name="error_action_open_network">Configuración de red</string>
<string name="error_action_update_files_app">Actualizar</string>
<string name="no_account_configured_yet">Todavía no hay una cuenta configurada</string>
<string name="no_other_accounts">Aún no ha configurado ninguna otra cuenta.</string>
<string name="choose_account">Elija una cuenta</string>
......
......@@ -160,6 +160,7 @@
<string name="error_dialog_server_app_enabled">Veuillez vérifier que vous avez installé et activé l\'application \"Notes\" sur votre serveur.</string>
<string name="error_dialog_redirect">Votre serveur a répondu avec le code HTTP 302, ce qui implique que vous n\'avez pas installé l\'application Notes sur votre serveur ou que quelque chose est mal configuré. Cela peut être dû à des modifications du fichier .htaccess or à une autre application Nextcloud comme OID Client.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Veuillez désactiver toutes les options d\'optimalisation de la batterie pour les applications Nextcloud et Notes.</string>
<string name="error_dialog_min_version">L\'application Notes Android nécessite que l\'application Nextcloud Android soit au moins en version 3.18.</string>
<string name="added_content">\"%1$s\" ajouté</string>
<string name="shared_text_empty">Le texte partagé est vide</string>
<string name="append_to_note">Ajouter à la note</string>
......@@ -266,6 +267,7 @@
<string name="error_action_open_battery_settings">Paramètres de batterie</string>
<string name="error_action_open_deck_info">Ouvrir les informations de l\'application</string>
<string name="error_action_open_network">Paramètres réseau</string>
<string name="error_action_update_files_app">Mise à jour</string>
<string name="no_account_configured_yet">Aucun compte n\'est encore configuré</string>
<string name="no_other_accounts">Vous n\'avez pas encore configuré d\'autres comptes.</string>
<string name="choose_account">Sélectionnez un compte</string>
......
......@@ -12,6 +12,7 @@
<string name="action_search">Traži</string>
<string name="action_sorting_method">Način razvrstavanja</string>
<string name="simple_cancel">Odustani</string>
<string name="simple_switch">Promijeni</string>
<string name="simple_edit">Uredi</string>
<string name="simple_remove">Ukloni</string>
<string name="action_edit_save">Spremi</string>
......@@ -56,17 +57,25 @@
<string name="error_unknown">Došlo je do nepoznate pogreške.</string>
<string name="about_version_title">Inačica</string>
<string name="about_version">Trenutno se koristite %1$s</string>
<string name="about_maintainer_title">Održavatelj</string>
<string name="about_developers_title">Razvojni programeri</string>
<string name="about_translators_title">Prevoditelji</string>
<string name="about_translators_transifex">Zajednica Nextcloud na %1$s</string>
<string name="about_testers_title">Ispitivači</string>
<string name="about_source_title">Izvorni kod</string>
<string name="about_source">Ovaj je projekt smješten na platformi GitHub: %1$s</string>
<string name="about_issues_title">Poteškoće</string>
<string name="about_issues">Možete prijaviti pogreške, predložiti poboljšanja i zatražiti značajke putem GitHubovog alata za prijavu i praćenje poteškoća: %1$s</string>
<string name="about_translate_title">Prevedi</string>
<string name="about_translate">Pridružite se Nextcloudovom timu na Transifexu i pomozite nam da prevedemo ovu aplikaciju: %1$s</string>
<string name="about_app_license_title">Licenca za aplikaciju</string>
<string name="about_app_license">Ova je aplikacija licencirana pod OPĆOM JAVNOM LICENCOM ZA GNU v3+.</string>
<string name="about_app_license_button">Pogledaj licencu</string>
<string name="about_icons_disclaimer_title">Ikone</string>
<string name="about_icons_disclaimer_app_icon">Za izvornu ikonu pogledajte %1$s.</string>
<string name="about_icons_disclaimer_mdi_icons">Ostale ikone koje se upotrebljavaju u ovoj aplikaciji su %1$s koje je izradio Google Inc. i licencirane su pod licencom Apache 2.0.</string>
<string name="about_icons_disclaimer_mdi">Ikone materijalnog dizajna</string>
<string name="about_credits_tab_title">Zasluge</string>
<string name="about_contribution_tab_title">Doprinos</string>
<string name="about_license_tab_title">Licenca</string>
......@@ -76,6 +85,8 @@
<string name="widget_single_note_title">Jedna bilješka</string>
<string name="widget_single_note_placeholder_tv">Bilješka nije pronađena</string>
<string name="widget_not_logged_in">Prijavite se u aplikaciju Bilješke prije korištenja ovog widgeta</string>
<string name="widget_entry_fav_contentDescription">Ikona zvjezdice upotrebljava se za označavanje stavke kao favorita</string>
<string name="activity_select_single_note">Odaberi bilješku</string>
<string name="shortcut_create_long">Stvori novu bilješku</string>
......@@ -96,6 +107,34 @@
<string name="category_movies">Filmovi</string>
<string name="category_movie">Film</string>
<string name="category_work">Posao</string>
<string name="category_todo">Zadatak</string>
<string name="category_todos">Zadaci</string>
<string name="category_checklists">Kontrolni popisi</string>
<string name="category_tasks">Zadaci</string>
<string name="category_recipe">Recept</string>
<string name="category_recipes">Recepti</string>
<string name="category_restaurant">Restoran</string>
<string name="category_restaurants">Restorani</string>
<string name="category_food">Hrana</string>
<string name="category_bake">Peći</string>
<!-- This represents a category where one can place passwords and credentials -->
<string name="category_key">Ključ</string>
<!-- This represents a category where one can place passwords and credentials -->
<string name="category_keys">Ključevi</string>
<string name="category_password">Zaporka</string>
<string name="category_passwords">Zaporke</string>
<string name="category_credentials">Vjerodajnica</string>
<string name="category_game">Igra</string>
<string name="category_games">Igre</string>
<!-- This is a noun, analogue to "game", like "theatre" or "drama" -->
<string name="category_play">Zabava</string>
<string name="category_gift">Dar</string>
<string name="category_gifts">Darovi</string>
<!-- Like a gift -->
<string name="category_present">Prezentiraj</string>
<!-- Like a gift -->
<string name="category_presents">Prezentira</string>
<string name="account_already_imported">Račun je već uvezen</string>
<string name="no_notes_yet">Još nema bilješki</string>
<string name="no_notes_yet_description">Stvori novu bilješku s pomoću gumba +</string>
......@@ -222,6 +261,8 @@
<!-- Table cell value of a sample table -->
<string name="formatting_help_tables_value">Vrijednost %1d</string>
<string name="formatting_help_images_body_1">Poveznice moraju biti potpuni URL-ovi koji počinju s protokolom i domenom ili apsolutni putovi koji počinju sa znakom %1$s.</string>
<string name="formatting_help_images_body_2">Kako biste se pridržavali formata Markdown, upotrijebite znakove za izlaz u URL-u slike. Primjerice, zamijenite razmake s %1$s u URL-u.</string>
<string name="formatting_help_images_title">Slike</string>
<string name="formatting_help_images_alt">Vrhunska slika</string>
......@@ -259,4 +300,7 @@
<string name="settings_file_suffix_description">Ekstenzija datoteke za nove bilješke u Nextcloudu</string>
<string name="settings_file_suffix_success">Novi sufiks datoteke: %1$s</string>
<string name="http_status_code">Šifra statusa HTTP-a: %1$d</string>
</resources>
<string name="progress_import_indeterminate">Uvoz bilješki...</string>
<string name="progress_import">Uvoz bilješke %1$d od %2$d...</string>
<string name="account_imported">Račun je uvezen.</string>
</resources>
......@@ -162,6 +162,7 @@
<string name="error_dialog_server_app_enabled">Bizonyosodjon meg róla, hogy telepítette és bekapcsolta a „Jegyzetek” alkalmazást a szerverén.</string>
<string name="error_dialog_redirect">A kiszolgálója 302-es HTTP állapotkóddal válaszolt, amely arra utal, hogy nincs telepítve a Jegyzetek alkalmazás a kiszolgálón, vagy valami hibásan van beállítva. Ezt egyéni felülírások is okozhatják, mint egy .htaccess-fájl vagy az OID klienshez hasonló Nextcloud alkalmazások.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Kapcsoljon ki minden energiatakarékossági beállítást a Nextcloud valamint a Jegyzetek alkalmazáshoz.</string>
<string name="error_dialog_min_version">A Jegyzetek androidos alkalmazáshoz a Nextcloud androidos alkalmazásnak legalább a 3.18-as verziója szükséges.</string>
<string name="added_content">„%1$s” hozzáadva</string>
<string name="shared_text_empty">A megosztott szöveg üres volt</string>
<string name="append_to_note">Hozzáfűzés a jegyzethez</string>
......@@ -268,6 +269,7 @@
<string name="error_action_open_battery_settings">Akkumulátorbeállítások</string>
<string name="error_action_open_deck_info">Alkalmazásinformációk megnyitása</string>
<string name="error_action_open_network">Hálózati beállítások</string>
<string name="error_action_update_files_app">Frissítés</string>
<string name="no_account_configured_yet">Nincs még fiók beállítva</string>
<string name="no_other_accounts">Még egyetlen más fiókot sem állított be.</string>
<string name="choose_account">Válasszon fiókot</string>
......
......@@ -162,6 +162,7 @@
<string name="error_dialog_server_app_enabled">Assicurati di aver installato e abilitato l\'applicazione \"Note\" sul tuo server.</string>
<string name="error_dialog_redirect">Il tuo server ha risposto con un codice di stato HTTP 302, che implica che non hai installato l\'applicazione Note sul tuo server o qualcosa non è configurato correttamente. Questo può essere causato da configurazioni personalizzate nel file .htaccess o da applicazioni di Nextcloud come OID Client.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Disabilita tutte le ottimizzazioni della batteria per le applicazioni Nextcloud e Note.</string>
<string name="error_dialog_min_version">L\'app Note di Android richiede che l\'app Nextcloud di Android sia almeno alla versione 3.18.</string>
<string name="added_content">Aggiunto \"%1$s\"</string>
<string name="shared_text_empty">Il testo condiviso era vuoto</string>
<string name="append_to_note">Aggiungi a nota</string>
......@@ -268,6 +269,7 @@
<string name="error_action_open_battery_settings">Impostazioni batteria</string>
<string name="error_action_open_deck_info">Apri informazioni applicazione</string>
<string name="error_action_open_network">Impostazioni di rete</string>
<string name="error_action_update_files_app">Aggiorna</string>
<string name="no_account_configured_yet">Ancora nessun account configurato</string>
<string name="no_other_accounts">Non hai configurato ancora alcun account.</string>
<string name="choose_account">Scegli account</string>
......
......@@ -162,6 +162,7 @@
<string name="error_dialog_server_app_enabled">Verifique se você instalou e ativou o aplicativo \"Notes\" no seu servidor.</string>
<string name="error_dialog_redirect">Seu servidor respondeu com um código de status HTTP 302, o que implica que você não instalou o aplicativo Notes no servidor ou que algo está configurado incorretamente. Isso pode ser causado por alterações no arquivo .htaccess ou por aplicativos como o Client OID.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Desative todas as otimizações de bateria do Nextcloud e do aplicativo Notes.</string>
<string name="error_dialog_min_version">O aplicativo Notes Android requer que o aplicativo Nextcloud Android tenha pelo menos a versão 3.18.</string>
<string name="added_content">\"%1$s\" adicionado</string>
<string name="shared_text_empty">O texto compartilhado estava vazio</string>
<string name="append_to_note">Anexar à nota</string>
......@@ -268,6 +269,7 @@
<string name="error_action_open_battery_settings">Configurações da bateria</string>
<string name="error_action_open_deck_info">Abra as informações do Aplicativo</string>
<string name="error_action_open_network">Configurações da rede</string>
<string name="error_action_update_files_app">Atualizar</string>
<string name="no_account_configured_yet">Nenhuma conta foi configurada</string>
<string name="no_other_accounts">Você ainda não configurou nenhuma outra conta.</string>
<string name="choose_account">Escolha a conta </string>
......
......@@ -162,6 +162,7 @@
<string name="error_dialog_server_app_enabled">Te rugăm să te asiguri că ai instalat și activat aplicația \"Notes\" pe serverul tău.</string>
<string name="error_dialog_redirect">Serverul tău nu a răspuns cu codul HTTP 302, ceea ce sugerează că nu ai instalată aplicația Notes pe server ceva este configurat greșit. Acest lucru poate fi cauzat de un fișier customizat .htaccess-file sau de aplicația Nextcloud precum clientul OID.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Vă rugăm să dezactivați toate optimizările de baterie pentru aplicațiile Nextcloud și Notes.</string>
<string name="error_dialog_min_version">Aplicaţia Android Notes necesită ca versiunea aplicaţiei Android Nextcloud să fie cel puţin la versiunea 3.18.</string>
<string name="added_content">Adăugat \"%1$s\"</string>
<string name="shared_text_empty">Textul partajat a fost gol</string>
<string name="append_to_note">Atașează la notiță </string>
......@@ -272,6 +273,7 @@
<string name="error_action_open_battery_settings">Setări baterie</string>
<string name="error_action_open_deck_info">Deschide info-ul aplicației </string>
<string name="error_action_open_network">Setări de rețea </string>
<string name="error_action_update_files_app">Actualizare</string>
<string name="no_account_configured_yet">Nici un cont configurat încă </string>
<string name="no_other_accounts">Încă nu ai configurate alte conturi</string>
<string name="choose_account">Alege contul</string>
......
......@@ -107,7 +107,34 @@
<string name="category_movies">Фильмы</string>
<string name="category_movie">Фильм</string>
<string name="category_work">Рабочий</string>
<string name="category_todo">Задача</string>
<string name="category_todos">Задачи</string>
<string name="category_checklists">Чек-лист</string>
<string name="category_tasks">Задачи</string>
<string name="category_recipe">Рецепт</string>
<string name="category_recipes">Рецепты</string>
<string name="category_restaurant">Ресторан</string>
<string name="category_restaurants">Рестораны</string>
<string name="category_food">Еда</string>
<string name="category_bake">Мотоцикл</string>
<!-- This represents a category where one can place passwords and credentials -->
<string name="category_key">Ключ</string>
<!-- This represents a category where one can place passwords and credentials -->
<string name="category_keys">Ключи</string>
<string name="category_password">Пароль</string>
<string name="category_passwords">Пароли</string>
<string name="category_credentials">Учетные данные</string>
<string name="category_game">Игра</string>
<string name="category_games">Игры</string>
<!-- This is a noun, analogue to "game", like "theatre" or "drama" -->
<string name="category_play">Играть</string>
<string name="category_gift">Подарок</string>
<string name="category_gifts">Подарки</string>
<!-- Like a gift -->
<string name="category_present">Презентация</string>
<!-- Like a gift -->
<string name="category_presents">Презентации</string>
<string name="account_already_imported">Учётная запись уже импортирована</string>
<string name="no_notes_yet">Нет ни одной заметки</string>
<string name="no_notes_yet_description">Для создания заметки нажмите +</string>
......@@ -135,6 +162,7 @@
<string name="error_dialog_server_app_enabled">Проверьте, установлено ли на сервере приложение Заметки.</string>
<string name="error_dialog_redirect">На запрос сервер вернул код состояния HTTP 302, что означает, что приложение Заметки либо не установлено, либо сервер настроен неверно. Такое поведение может являться следствием замены стандартного файла .htaccess администратором сервера или приложением Nextcloud, таким как OID Client.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Пожалуйста отключите все оптимизации аккумулятора для приложений Nextcloud и Notes.</string>
<string name="error_dialog_min_version">Для запуска приложение \"Заметки\" необходима версия Nextcloud не ниже 3.18.</string>
<string name="added_content">Добавлена заметка «%1$s»</string>
<string name="shared_text_empty">Публикуемый текст пустой</string>
<string name="append_to_note">Добавить в заметку</string>
......@@ -247,6 +275,7 @@
<string name="error_action_open_battery_settings">Настройки баттареи</string>
<string name="error_action_open_deck_info">Открыть информацию о приложении</string>
<string name="error_action_open_network">Параметры сети</string>
<string name="error_action_update_files_app">Обновить</string>
<string name="no_account_configured_yet">Учётная запись пока не настроена</string>
<string name="no_other_accounts">Вы еще не настроили ни одного аккаунта</string>
<string name="choose_account">Выбрать учётную запись</string>
......@@ -276,4 +305,7 @@
<string name="settings_file_suffix_description">Расширение файла для новых заметок в вашей учётной записи Nextcloud</string>
<string name="settings_file_suffix_success">Новый суффикс файла: %1$s</string>
<string name="http_status_code">Код состояния HTTP: %1$d</string>
</resources>
<string name="progress_import_indeterminate">Импорт заметок...</string>
<string name="progress_import">Импортировано заметок %1$d из %2$d...</string>
<string name="account_imported">Учетная запись импортирована.</string>
</resources>
......@@ -162,6 +162,7 @@
<string name="error_dialog_server_app_enabled">Uistite sa, že ste na serveri nainštalovali a povolili aplikáciu Poznámky.</string>
<string name="error_dialog_redirect">Váš server odpovedal stavovým kódom HTTP 302, čo znamená, že na svojom serveri nemáte nainštalovanú aplikáciu Notes alebo je niečo nesprávne nastavené. Môže to byť spôsobené vlastnými zmenami v súbore .htaccess alebo aplikáciami Nextcloud, ako je OID Client.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Vypnite všetky optimalizácie batérie pre aplikácie Nextcloud a Poznámky.</string>
<string name="error_dialog_min_version">Aplikácia Notes pre Android potrebuje aplikáciu Nextcloud pre android aspoň vo verzii 3.18.</string>
<string name="added_content">Pridané \"%1$s\"</string>
<string name="shared_text_empty">Zdieľaný text bol prázdny</string>
<string name="append_to_note">Pripojiť k poznámke</string>
......@@ -276,6 +277,7 @@
<string name="error_action_open_battery_settings">Nastavenia batérie.</string>
<string name="error_action_open_deck_info">Otvoriť informácie o aplikácii</string>
<string name="error_action_open_network">Nastavenia siete</string>
<string name="error_action_update_files_app">Aktualizovať</string>
<string name="no_account_configured_yet">Nie je ešte nastavený žiadny účet</string>
<string name="no_other_accounts">Zatiaľ nemáte nastavené žiadne ďalšie účty.</string>
<string name="choose_account">Zvoliť účet</string>
......
......@@ -162,6 +162,7 @@
<string name="error_dialog_server_app_enabled">Prepričajte se, da ste namestili in omogočili tudi program »Notes« na strežniku.</string>
<string name="error_dialog_redirect">S strežnika je prejet odziv s kodo stanja HTTP 302, kar kaže na to, da program Notes ni nameščen, ali pa je napačno nastavljen. Napaka se pojavi tudi pri nekaterih določilih v datoteki .htaccess oziroma programih, kot je odjemalec OID.</string>
<string name="error_dialog_tip_disable_battery_optimizations">Onemogočite vso optimizacijo porabe baterije za programa Nextcloud in Notes.</string>
<string name="error_dialog_min_version">Program Notes za okolje Android zahteva vsaj različico Nextcloud 3.18.</string>
<string name="added_content">Dodano »%1$s«</string>
<string name="shared_text_empty">Besedilo v souporabi je brez vsebine</string>
<string name="append_to_note">Pripni k zabeležki</string>
......@@ -276,6 +277,7 @@
<string name="error_action_open_battery_settings">Nastavitve baterije</string>
<string name="error_action_open_deck_info">Odpri podrobnosti programa</string>
<string name="error_action_open_network">Nastavitve omrežja</string>
<string name="error_action_update_files_app">Posodobi</string>
<string name="no_account_configured_yet">Ni nastavljenega nobenega računa</string>
<string name="no_other_accounts">Ni nastavljenega nobenega drugega računa</string>
<string name="choose_account">Izbor računa</string>
......
......@@ -217,7 +217,7 @@
<string name="formatting_help_codefence_outer" translateable="false">````</string>
<string name="formatting_help_codefence_javascript" translateable="false">```javascript</string>
<string name="formatting_help_cbf_title">Bağlama göre biçimlendirme</string>
<string name="formatting_help_cbf_body_1">Notlar uygulamasının önemli bir tasarım amacı, dikkat dağıtmayan bir araç sağlamaktır. Yine de metinlerinizi Markdown kullanarak biçimlendirebilirsiniz. Aşağıdaki örneklerden bazılarında kısayolları kullanarak notlarınızı aşağıdaki kodları yazmadan biçimlendirebilirsiniz.</string>
<string name="formatting_help_cbf_body_1">Notlar uygulamasının önemli bir tasarım amacı, dikkat dağıtmayan bir araç sağlamaktır. Yine de metinlerinizi Markdown kullanarak biçimlendirebilirsiniz. Aşağıdaki örneklerden bazılarında kısayol tuşları kullanarak notlarınızı aşağıdaki kodları yazmadan biçimlendirebilirsiniz.</string>
<string name="formatting_help_cbf_body_2">Yalnız bir metin bölümü seçerek ya da herhangi bir konumda imlece dokunarak varsayılan kayıtların yanında açılan menüden %1$s, %2$s, %3$s, %4$s gibi kayıtlar ya da %5$s seçenekleri kullanabilirsiniz.</string>
<string name="formatting_help_text_title">Metin</string>
......
package it.niedermann.owncloud.notes.main.slots;
import static org.junit.Assert.assertEquals;
import androidx.test.core.app.ApplicationProvider;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import java.util.Calendar;
import java.util.List;
import it.niedermann.owncloud.notes.main.items.section.SectionItem;
import it.niedermann.owncloud.notes.persistence.entity.Note;
@RunWith(RobolectricTestRunner.class)
public class SlotterUtilTest {
@Test
public void fillListByInitials_shouldAddSectionItems() {
final var notes = List.of(
new Note(1L, Calendar.getInstance(), "Aaa", "", "", false, ""),
new Note(1L, Calendar.getInstance(), "Abc", "", "", false, ""),
new Note(1L, Calendar.getInstance(), "Bbb", "", "", false, ""),
new Note(1L, Calendar.getInstance(), "Bcd", "", "", false, ""),
new Note(1L, Calendar.getInstance(), "Def", "", "", false, "")
);
final var items = SlotterUtil.fillListByInitials(ApplicationProvider.getApplicationContext(), notes);
assertEquals(2, items.stream().filter(item -> item instanceof SectionItem).count());
assertEquals(SectionItem.class, items.get(2).getClass());
assertEquals(SectionItem.class, items.get(5).getClass());
}
@Test
public void fillListByInitials_shouldAcceptEmptyTitles() {
final var notes = List.of(
new Note(1L, Calendar.getInstance(), "", "", "", false, ""),
new Note(2L, Calendar.getInstance(), "Foo", "", "", false, ""),
new Note(3L, Calendar.getInstance(), "Bar", "", "", false, "")
);
final var items = SlotterUtil.fillListByInitials(ApplicationProvider.getApplicationContext(), notes);
}
}
- 🚫 Removed "Create note widget" in favor of quick settings tile (in your notification area) and shortcuts (press long on the app icon)
\ No newline at end of file
- 🚫 Removed "Create note widget" in favor of quick settings tile (in your notification area) and shortcuts (press long on the app icon)
- 🐞 Fix issue with empty titled notes while sorting alphabetically (#1435)
- 🐞 Fix issue when hitting enter multiple times quickly in a list (#1416, #1411, #1421, #1433, #1434)
\ No newline at end of file
- 🚫 Removed "Create note widget" in favor of quick settings tile (in your notification area) and shortcuts (press long on the app icon)
- 🐞 Fix issue with empty titled notes while sorting alphabetically (#1435)
- 🐞 Fix issue when hitting enter multiple times quickly in a list (#1416, #1411, #1421, #1433, #1434)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment