From 8995a973f801ae1044f2f7cdbedea22ca642f602 Mon Sep 17 00:00:00 2001 From: Agnieszka C <85929121+Aga-C@users.noreply.github.com> Date: Sat, 22 Jan 2022 14:55:07 +0100 Subject: [PATCH] Added shortcuts for new text note and checklist (#495) --- .../notes/pro/activities/MainActivity.kt | 72 +++++++++++++++++-- .../notes/pro/helpers/Constants.kt | 4 ++ app/src/main/res/drawable/shortcut_check.xml | 9 +++ app/src/main/res/values-ar/strings.xml | 4 +- app/src/main/res/values-az/strings.xml | 2 + app/src/main/res/values-cs/strings.xml | 2 + app/src/main/res/values-cy/strings.xml | 2 + app/src/main/res/values-da/strings.xml | 2 + app/src/main/res/values-de/strings.xml | 4 +- app/src/main/res/values-el/strings.xml | 2 + app/src/main/res/values-eo/strings.xml | 2 + app/src/main/res/values-es/strings.xml | 2 + app/src/main/res/values-et/strings.xml | 2 + app/src/main/res/values-fa/strings.xml | 2 + app/src/main/res/values-fi/strings.xml | 4 +- app/src/main/res/values-fr/strings.xml | 4 +- app/src/main/res/values-gl/strings.xml | 2 + app/src/main/res/values-hr/strings.xml | 2 + app/src/main/res/values-hu/strings.xml | 4 +- app/src/main/res/values-id/strings.xml | 2 + app/src/main/res/values-it/strings.xml | 4 +- app/src/main/res/values-ja/strings.xml | 2 + app/src/main/res/values-lt/strings.xml | 2 + app/src/main/res/values-nb-rNO/strings.xml | 2 + app/src/main/res/values-nl/strings.xml | 2 + app/src/main/res/values-pl/strings.xml | 4 +- app/src/main/res/values-pt-rBR/strings.xml | 2 + app/src/main/res/values-pt/strings.xml | 2 + app/src/main/res/values-ru/strings.xml | 4 +- app/src/main/res/values-sk/strings.xml | 2 + app/src/main/res/values-sv/strings.xml | 2 + app/src/main/res/values-tr/strings.xml | 4 +- app/src/main/res/values-uk/strings.xml | 2 + app/src/main/res/values-zh-rCN/strings.xml | 4 +- app/src/main/res/values-zh-rTW/strings.xml | 2 + app/src/main/res/values/strings.xml | 2 + 36 files changed, 157 insertions(+), 14 deletions(-) create mode 100644 app/src/main/res/drawable/shortcut_check.xml diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt index 56db0889..ad7340c1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt @@ -1,8 +1,12 @@ package com.simplemobiletools.notes.pro.activities +import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.Intent +import android.content.pm.ShortcutInfo +import android.graphics.drawable.Icon +import android.graphics.drawable.LayerDrawable import android.net.Uri import android.os.Bundle import android.print.PrintAttributes @@ -35,14 +39,13 @@ import com.simplemobiletools.notes.pro.databases.NotesDatabase import com.simplemobiletools.notes.pro.dialogs.* import com.simplemobiletools.notes.pro.extensions.* import com.simplemobiletools.notes.pro.fragments.TextFragment -import com.simplemobiletools.notes.pro.helpers.MIME_TEXT_PLAIN -import com.simplemobiletools.notes.pro.helpers.NoteType -import com.simplemobiletools.notes.pro.helpers.NotesHelper -import com.simplemobiletools.notes.pro.helpers.OPEN_NOTE_ID +import com.simplemobiletools.notes.pro.helpers.* import com.simplemobiletools.notes.pro.models.Note import java.io.File import java.nio.charset.Charset import kotlinx.android.synthetic.main.activity_main.* +import java.util.* +import kotlin.collections.ArrayList class MainActivity : SimpleActivity() { private val EXPORT_FILE_SYNC = 1 @@ -117,6 +120,8 @@ class MainActivity : SimpleActivity() { } updateTextColors(view_pager) + checkShortcuts() + search_wrapper.setBackgroundColor(config.primaryColor) val contrastColor = config.primaryColor.getContrastColor() arrayListOf(searchPrevBtn, searchNextBtn, searchClearBtn).forEach { @@ -268,6 +273,59 @@ class MainActivity : SimpleActivity() { private fun isCurrentItemChecklist() = if (this::mCurrentNote.isInitialized) mCurrentNote.type == NoteType.TYPE_CHECKLIST.value else false + @SuppressLint("NewApi") + private fun checkShortcuts() { + val appIconColor = config.appIconColor + if (isNougatMR1Plus() && config.lastHandledShortcutColor != appIconColor) { + val newTextNote = getNewTextNoteShortcut(appIconColor) + val newChecklist = getNewChecklistShortcut(appIconColor) + + try { + shortcutManager.dynamicShortcuts = Arrays.asList(newTextNote, newChecklist) + config.lastHandledShortcutColor = appIconColor + } catch (ignored: Exception) { + } + } + } + + @SuppressLint("NewApi") + private fun getNewTextNoteShortcut(appIconColor: Int): ShortcutInfo { + val shortLabel = getString(R.string.text_note) + val longLabel = getString(R.string.new_text_note) + val drawable = resources.getDrawable(R.drawable.shortcut_plus) + (drawable as LayerDrawable).findDrawableByLayerId(R.id.shortcut_plus_background).applyColorFilter(appIconColor) + val bmp = drawable.convertToBitmap() + + val intent = Intent(this, MainActivity::class.java) + intent.action = Intent.ACTION_VIEW + intent.putExtra(NEW_TEXT_NOTE, true) + return ShortcutInfo.Builder(this, SHORTCUT_NEW_TEXT_NOTE) + .setShortLabel(shortLabel) + .setLongLabel(longLabel) + .setIcon(Icon.createWithBitmap(bmp)) + .setIntent(intent) + .build() + } + + @SuppressLint("NewApi") + private fun getNewChecklistShortcut(appIconColor: Int): ShortcutInfo { + val shortLabel = getString(R.string.checklist) + val longLabel = getString(R.string.new_checklist) + val drawable = resources.getDrawable(R.drawable.shortcut_check) + (drawable as LayerDrawable).findDrawableByLayerId(R.id.shortcut_plus_background).applyColorFilter(appIconColor) + val bmp = drawable.convertToBitmap() + + val intent = Intent(this, MainActivity::class.java) + intent.action = Intent.ACTION_VIEW + intent.putExtra(NEW_CHECKLIST, true) + return ShortcutInfo.Builder(this, SHORTCUT_NEW_CHECKLIST) + .setShortLabel(shortLabel) + .setLongLabel(longLabel) + .setIcon(Icon.createWithBitmap(bmp)) + .setIntent(intent) + .build() + } + private fun checkIntents(intent: Intent) { intent.apply { if (action == Intent.ACTION_SEND && type == MIME_TEXT_PLAIN) { @@ -282,6 +340,12 @@ class MainActivity : SimpleActivity() { if (realPath != null && hasPermission(PERMISSION_READ_STORAGE)) { val file = File(realPath) handleUri(Uri.fromFile(file)) + } else if (intent.getBooleanExtra(NEW_TEXT_NOTE, false)) { + val newTextNote = Note(null, getCurrentFormattedDateTime(), "", NoteType.TYPE_TEXT.value, "", PROTECTION_NONE, "") + addNewNote(newTextNote) + } else if (intent.getBooleanExtra(NEW_CHECKLIST, false)) { + val newChecklist = Note(null, getCurrentFormattedDateTime(), "", NoteType.TYPE_CHECKLIST.value, "", PROTECTION_NONE, "") + addNewNote(newChecklist) } else { handleUri(data!!) } diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/Constants.kt index 74bb5393..3ca91baa 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/Constants.kt @@ -11,6 +11,10 @@ const val CUSTOMIZED_WIDGET_NOTE_ID = "customized_widget_note_id" const val CUSTOMIZED_WIDGET_BG_COLOR = "customized_widget_bg_color" const val CUSTOMIZED_WIDGET_TEXT_COLOR = "customized_widget_text_color" const val CUSTOMIZED_WIDGET_SHOW_TITLE = "customized_widget_show_title" +const val SHORTCUT_NEW_TEXT_NOTE = "shortcut_new_text_note" +const val SHORTCUT_NEW_CHECKLIST = "shortcut_new_checklist" +const val NEW_TEXT_NOTE = "new_text_note" +const val NEW_CHECKLIST = "new_checklist" val DEFAULT_WIDGET_TEXT_COLOR = Color.parseColor("#FFF57C00") // shared preferences diff --git a/app/src/main/res/drawable/shortcut_check.xml b/app/src/main/res/drawable/shortcut_check.xml new file mode 100644 index 00000000..6767562c --- /dev/null +++ b/app/src/main/res/drawable/shortcut_check.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/shortcut_plus_background"> + <shape android:shape="oval"> + <solid android:color="@color/color_primary"/> + </shape> + </item> + <item android:bottom="@dimen/medium_margin" android:drawable="@drawable/ic_check_vector" android:left="@dimen/medium_margin" android:right="@dimen/medium_margin" android:top="@dimen/medium_margin"/> +</layer-list> diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index e2821767..a350f5f1 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -27,6 +27,8 @@ <string name="note_content_locked">محتوى الملاحظات مؤمن.</string> <string name="show_content">إظهار المحتوى</string> <string name="locking_warning">تحذير: إذا نسيت كلمة مرور الملاحظات، فلن تتمكن من استعادتها أو الوصول إلى محتوى الملاحظات بعد الآن.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">فتح ملف</string> <string name="export_as_file">تصدير كملف</string> @@ -80,4 +82,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-az/strings.xml b/app/src/main/res/values-az/strings.xml index cc168be4..4ebeb542 100644 --- a/app/src/main/res/values-az/strings.xml +++ b/app/src/main/res/values-az/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Faylı Aç</string> diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index fba963b2..2bdbff75 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Otevřít soubor</string> diff --git a/app/src/main/res/values-cy/strings.xml b/app/src/main/res/values-cy/strings.xml index eeb59524..4781b3ba 100644 --- a/app/src/main/res/values-cy/strings.xml +++ b/app/src/main/res/values-cy/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Agor ffeil</string> diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml index 66b077d2..c777c341 100644 --- a/app/src/main/res/values-da/strings.xml +++ b/app/src/main/res/values-da/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Åbn fil …</string> diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index bc254996..a50bcd6d 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">Der Inhalt der Notizen ist gesperrt.</string> <string name="show_content">Inhalt anzeigen</string> <string name="locking_warning">ACHTUNG: Wenn Sie das Kennwort für die Notizen vergessen, können Sie es nicht mehr wiederherstellen oder auf den Inhalt der Notizen zugreifen.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Datei öffnen</string> <string name="export_as_file">Als Datei exportieren</string> @@ -79,4 +81,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index 4ca013a0..f6a0a054 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">Το περιεχόμενο των Σημειώσεων είναι κλειδωμένο.</string> <string name="show_content">Εμφάνιση περιεχομένου</string> <string name="locking_warning">ΠΡΟΣΟΧΗ: Εάν ξεχάσετε τον κωδικό των σημειώσεων, δεν θα μπορείτε πλέον να τον ανακτήσετε ή να αποκτήσετε πρόσβαση στο περιεχόμενο τους.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Άνοιγμα αρχείου</string> diff --git a/app/src/main/res/values-eo/strings.xml b/app/src/main/res/values-eo/strings.xml index bfd3f7a1..3aea8513 100644 --- a/app/src/main/res/values-eo/strings.xml +++ b/app/src/main/res/values-eo/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Montri enhavon</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Malfermi dosieron</string> <string name="export_as_file">Export as file</string> diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 5deda088..ab8e6029 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">El contenido de esta nota está bloqueado.</string> <string name="show_content">Mostrar contenido</string> <string name="locking_warning">ADVERTENCIA: Si olvidas la contraseña de esta nota, ya no podrás recuperar su contenido.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Abrir archivo</string> diff --git a/app/src/main/res/values-et/strings.xml b/app/src/main/res/values-et/strings.xml index 1346fb18..ed338400 100644 --- a/app/src/main/res/values-et/strings.xml +++ b/app/src/main/res/values-et/strings.xml @@ -27,6 +27,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Ava fail</string> diff --git a/app/src/main/res/values-fa/strings.xml b/app/src/main/res/values-fa/strings.xml index 4280a402..49526057 100644 --- a/app/src/main/res/values-fa/strings.xml +++ b/app/src/main/res/values-fa/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">محتویات یادداشت، قفل است</string> <string name="show_content">نمایش محتویات</string> <string name="locking_warning">هشدار: اگر گذرواژهٔ یادداشت را فراموش کنید، دیگر قادر به بازیابی آن یا دسترسی به محتویات یادداشت نیستید.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">بازکردن پرونده</string> diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 3c11e6eb..53ab75d7 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">Muistiinpanon sisältö on lukittu.</string> <string name="show_content">Näytä sisältö</string> <string name="locking_warning">VAROITUS: Jos unohdat muistiinpanon salasanan, sitä ei ole mahdollista palauttaa etkä pääse enää käsiksi muistiinpanoon.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Avaa tiedosto</string> <string name="export_as_file">Vie tiedostona</string> @@ -109,4 +111,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 2b801a3f..2c718c34 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">Le contenu des notes est verrouillé.</string> <string name="show_content">Montrer le contenu</string> <string name="locking_warning">AVERTISSEMENT : Si vous oubliez le mot de passe des notes, vous ne pourrez plus le récupérer ni accéder au contenu des notes.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Ouvrir le fichier</string> <string name="export_as_file">Exporter dans un fichier</string> @@ -79,4 +81,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-gl/strings.xml b/app/src/main/res/values-gl/strings.xml index 9e49f253..8593bd40 100644 --- a/app/src/main/res/values-gl/strings.xml +++ b/app/src/main/res/values-gl/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Abrir ficheiro</string> diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index 4c6005fc..d6dbd7c7 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Otvori datoteku</string> diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index a6c0223f..92faf900 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -27,6 +27,8 @@ <string name="note_content_locked">A jegyzet tartalma zárolva van.</string> <string name="show_content">Show content</string> <string name="locking_warning">FIGYELMEZTETÉS: Ha elfelejti a jegyzetek jelszavát, akkor többé nem fogja tudni helyreállítani vagy elérni a jegyzetek tartalmát.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Fájl megnyitása</string> <string name="export_as_file">Exportálás fájlba</string> @@ -80,4 +82,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-id/strings.xml b/app/src/main/res/values-id/strings.xml index 251d5ea6..183140c9 100644 --- a/app/src/main/res/values-id/strings.xml +++ b/app/src/main/res/values-id/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Buka berkas</string> diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index fb4f7774..6beff573 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">Il contenuto delle note è bloccato.</string> <string name="show_content">Mostra il contenuto</string> <string name="locking_warning">ATTENZIONE: Se dimentichi la password delle note, non sarai più in grado di recuperarla o di accedere al contenuto delle note.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Apri file</string> <string name="export_as_file">Esporta come file</string> @@ -79,4 +81,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 59513afc..a5fbf55f 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">ファイルを開く</string> diff --git a/app/src/main/res/values-lt/strings.xml b/app/src/main/res/values-lt/strings.xml index a4a5a99e..3512658a 100644 --- a/app/src/main/res/values-lt/strings.xml +++ b/app/src/main/res/values-lt/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Atverti bylą</string> diff --git a/app/src/main/res/values-nb-rNO/strings.xml b/app/src/main/res/values-nb-rNO/strings.xml index 273c707c..17359490 100644 --- a/app/src/main/res/values-nb-rNO/strings.xml +++ b/app/src/main/res/values-nb-rNO/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">Notatinnholdet er låst.</string> <string name="show_content">Vis innhold</string> <string name="locking_warning">Advarsel: Hvis du glemmer notatpassordet vil du ikke kunne gjenopprette det eller innholdet.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Åpne fil</string> <string name="export_as_file">Eksporter som fil</string> diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index c1b56cc1..4f6c7a42 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">De inhoud van deze notitie is vergrendeld.</string> <string name="show_content">Inhoud weergeven</string> <string name="locking_warning">WAARSCHUWING: Zonder het wachtwoord kan de inhoud van de notitie niet meer worden hersteld.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Bestand openen</string> diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index cda586fe..79306c45 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">Treść notatki jest zablokowana.</string> <string name="show_content">Pokaż zawartość</string> <string name="locking_warning">OSTRZEŻENIE: Jeśli zapomnisz hasła do notatki, nie będziesz już mógł/mogła jej odzyskać ani uzyskać dostępu do treści notatki.</string> + <string name="new_text_note">Nowa notatka tekstowa</string> + <string name="new_checklist">Nowa lista kontrolna</string> <!-- File notes --> <string name="open_file">Otwórz plik</string> <string name="export_as_file">Eksportuj jako plik</string> @@ -79,4 +81,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index b410a015..75c8a343 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">O conteúdo da anotação está bloqueado.</string> <string name="show_content">Mostrar conteúdo</string> <string name="locking_warning">AVISO: Caso você esqueça a senha, não conseguirá acessar o conteúdo.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Abrir arquivo</string> diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index 2cc2ca18..a49f0405 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">O conteúdo da nota está bloqueado.</string> <string name="show_content">Mostrar conteúdo</string> <string name="locking_warning">AVISO: se esquecer a palavra-passe, não conseguirá aceder à nota nem recuperar o seu conteúdo.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Abrir ficheiro</string> diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 9eab5044..6e28ad33 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">Содержимое заметки заблокировано.</string> <string name="show_content">Показывать содержание</string> <string name="locking_warning">ПРЕДУПРЕЖДЕНИЕ: если вы забудете пароль, то не сможете восстановить его или получить доступ к содержимому заметок.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Открыть файл</string> <string name="export_as_file">Экспортировать в файл</string> @@ -109,4 +111,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index a63f5099..a1294994 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">Obsah poznámky je uzamknutý.</string> <string name="show_content">Zobraziť obsah</string> <string name="locking_warning">UPOZORNENIE: Ak zabudnete heslo poznámky, nebudete ho môcť obnoviť, ani sa už dostať k obsahu poznámky.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Otvoriť súbor</string> diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 0b6fb03c..72254546 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Öppna fil</string> diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 63910c02..fbe969c9 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">Notların içeriği kilitlendi.</string> <string name="show_content">İçeriği göster</string> <string name="locking_warning">UYARI: Notların parolasını unutursanız, onu kurtaramaz veya notların içeriğine artık erişemezsiniz.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Dosya aç</string> <string name="export_as_file">Dosya olarak aktar</string> @@ -79,4 +81,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index fb8047e9..e584b730 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">Нотатку заблоковано.</string> <string name="show_content">Показати нотатку</string> <string name="locking_warning">УВАГА: Якщо ви забудете пароль доступу до нотатки, ви більше не зможете його відновити або прочитати нотатку.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Відкрити файл</string> diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index fd74713d..df5bf253 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -26,6 +26,8 @@ <string name="note_content_locked">笔记的内容被锁定。</string> <string name="show_content">显示内容</string> <string name="locking_warning">警告:如果您忘记了笔记的密码,您将无法恢复或访问笔记的内容。</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">打开文件</string> <string name="export_as_file">以文件的形式导出</string> @@ -79,4 +81,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> -</resources> \ No newline at end of file +</resources> diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index d3738aac..8f438d2e 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">打開檔案</string> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 36769069..314f80b8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -25,6 +25,8 @@ <string name="note_content_locked">The notes\' content is locked.</string> <string name="show_content">Show content</string> <string name="locking_warning">WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.</string> + <string name="new_text_note">New text note</string> + <string name="new_checklist">New checklist</string> <!-- File notes --> <string name="open_file">Open file</string>