diff --git a/.editorconfig b/.editorconfig
index b762e8045..697c8a67a 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,9 +1,3 @@
-# Copying and distribution of this file, with or without modification,
-# are permitted in any medium without royalty provided this notice is
-# preserved. This file is offered as-is, without any warranty.
-# Names of contributors must not be used to endorse or promote products
-# derived from this file without specific prior written permission.
-
# EditorConfig
# http://EditorConfig.org
@@ -17,3 +11,12 @@ insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
+continuation_indent_size = 4
+max_line_length = 160
+
+[*.xml]
+continuation_indent_size = 4
+
+[*.kt]
+ij_kotlin_name_count_to_use_star_import = 5
+ij_kotlin_name_count_to_use_star_import_for_members = 5
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
index bef563799..05a411d76 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yml
@@ -1,3 +1,3 @@
github: [tibbi]
patreon: tiborkaputa
-custom: ["https://www.paypal.me/SimpleMobileTools", "https://www.simplemobiletools.com/donate"]
+custom: ["https://www.paypal.me/simplemobiletools"]
diff --git a/.gitignore b/.gitignore
index 4cd1c5eed..21da4996b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,6 @@
/captures
keystore.jks
keystore.properties
+fastlane/fastlane.json
+Gemfile
+Gemfile.lock
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 24b71c772..017d51994 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,281 @@
Changelog
==========
+Version 6.17.0 *(2023-09-19)*
+----------------------------
+
+ * Show smaller preview of notes at Open Note dialog
+ * Added some stability translation improvements
+
+Version 6.16.5 *(2023-08-30)*
+----------------------------
+
+ * Show smaller preview of notes at Open Note dialog
+ * Added some stability translation improvements
+
+Version 6.16.4 *(2023-08-16)*
+----------------------------
+
+ * Added some stability translation improvements
+
+Version 6.16.3 *(2023-08-15)*
+----------------------------
+
+ * Added some stability translation improvements
+
+Version 6.16.2 *(2023-08-14)*
+----------------------------
+
+ * Added some stability translation improvements
+
+Version 6.16.1 *(2023-08-03)*
+----------------------------
+
+ * Avoid showing locked note contents at the Open Note dialog
+
+Version 6.16.0 *(2023-08-02)*
+----------------------------
+
+ * Properly handle importing both txt and json files
+ * Redesigned the Open Note dialog
+ * Fix sorting of checklist items and notes with accents
+ * Add support for periodic automatic backups
+ * Added some UI, stability and translation improvements
+
+Version 6.15.6 *(2023-07-17)*
+----------------------------
+
+ * Moved note exporting and importing to app settings
+ * Added some stability and translation improvements
+
+Version 6.15.5 *(2023-05-12)*
+----------------------------
+
+ * Improved the UX at importing files
+ * Added some stability and translation improvements
+
+Version 6.15.4 *(2023-03-27)*
+----------------------------
+
+ * Improve exporting of password protected notes
+ * Allow creating note shortcuts
+ * Added some stability, translation and UX improvements
+
+Version 6.15.3 *(2023-03-07)*
+----------------------------
+
+ * Added some stability, translation and UX improvements
+
+Version 6.15.2 *(2023-01-28)*
+----------------------------
+
+ * Allow adding new checklist items at the top at custom sorting
+ * Make horizontal swiping between notes more reliable
+ * Allow clicking on top note titles
+ * Added some stability, translation and UX improvements
+
+Version 6.15.1 *(2022-12-26)*
+----------------------------
+
+ * Fixed a note scrolling glitch
+
+Version 6.15.0 *(2022-12-25)*
+----------------------------
+
+ * Use Material You theme by default on Android 12+
+ * Increased minimal required Android OS version to 6
+ * Added some UI, translation and stability improvements
+
+Version 6.14.1 *(2022-10-10)*
+----------------------------
+
+ * Adding a Get Simple Phone button into the About section
+ * Added some translation, stability and UX improvements
+
+Version 6.14.0 *(2022-08-24)*
+----------------------------
+
+ * Added Monochrome icon and Language picker support on Android 13+
+ * Added some translation and stability improvements
+
+Version 6.13.0 *(2022-07-12)*
+----------------------------
+
+ * Adding some more materialish design, especially for System theme users
+ * Added some translation and stability improvements
+
+Version 6.12.3 *(2022-06-26)*
+----------------------------
+
+ * Added some translation, stability and UX improvements
+
+Version 6.12.2 *(2022-06-14)*
+----------------------------
+
+ * Change batch note exporting from json to txt
+ * Added some stability, UX and translation improvements
+
+Version 6.12.1 *(2022-05-23)*
+----------------------------
+
+ * Added some stability, UX and translation improvements
+
+Version 6.12.0 *(2022-04-03)*
+----------------------------
+
+ * Added Material You support on Android 12+
+ * Added some translation and stability improvements
+
+Version 6.11.1 *(2022-03-17)*
+----------------------------
+
+ * Fixed synced checklist item visibility at widgets (by Aga-C)
+ * Added some translation and stability improvements
+
+Version 6.11.0 *(2022-03-10)*
+----------------------------
+
+ * Allow exporting and importing all notes at once on Android 10+ (by Aga-C)
+ * Fix checklist file synchronization (by Aga-C)
+ * Added a Privacy policy
+ * Added some translation, UX and stability improvements
+
+Version 6.10.2 *(2022-02-08)*
+----------------------------
+
+ * Allow quick note creation from homescreen shortcuts (by Aga-C)
+ * Added some translation, stability and UX improvements
+
+Version 6.10.1 *(2021-12-25)*
+----------------------------
+
+ * Do not show the "Remove done items" checklist menu button as an icon
+ * Added many translation improvements
+
+Version 6.10.0 *(2021-11-18)*
+----------------------------
+
+ * Redesigned some screens, added an Auto theme
+ * Added many translation, stability and UX improvements
+
+Version 6.9.1 *(2021-10-12)*
+----------------------------
+
+ * Fixed some sorting related glitches
+
+Version 6.9.0 *(2021-10-08)*
+----------------------------
+
+ * Allow changing checklist item sorting
+ * Make it easier to add multiple checklist items at once
+ * Some stability, translation and UX improvements
+
+Version 6.8.2 *(2021-09-13)*
+----------------------------
+
+ * Added biometric protection on Android 11+
+ * Fixed a glitch with note content vanishing on export error
+
+Version 6.8.1 *(2021-08-23)*
+----------------------------
+
+ * Fixed a glitch related to saving notes into files
+ * Some translation improvements
+
+Version 6.8.0 *(2021-05-21)*
+----------------------------
+
+ * Allow locking notes with passwords
+ * Adding a 60% and 90% font size
+ * Some stability and translation improvements
+
+Version 6.7.1 *(2021-04-20)*
+----------------------------
+
+ * Fixed some issues related to notes being synced with files
+ * Some stability and translation improvements
+
+Version 6.7.0 *(2021-03-21)*
+----------------------------
+
+ * Removed the Storage permission on Android 9+, notes synced to files have to be set up again
+ * Limit file size to 1 MB in all cases
+ * Some design, stability and translation improvements
+
+Version 6.6.2 *(2021-02-20)*
+----------------------------
+
+ * Added a White theme with special handling
+ * Some stability and translation improvements
+
+Version 6.6.1 *(2021-01-22)*
+----------------------------
+
+ * Allow quickly moving checklist items at the top or bottom (by tanvir-ahmod)
+ * Fixing a glitch at sharing checklists
+ * Make sure undo/redo work properly
+ * Some translation and stability improvements
+
+Version 6.6.0 *(2021-01-10)*
+----------------------------
+
+ * Properly handle importing checklist type of files
+ * Adding a way to quickly remove done checklist items (by tanvir-ahmod)
+ * Some stability, translation and UX improvements
+
+Version 6.5.6 *(2020-11-04)*
+----------------------------
+
+ * Properly handle printing text with hashtag in it
+ * Added some translation and stability improvements
+
+Version 6.5.5 *(2020-10-29)*
+----------------------------
+
+ * Allow printing notes
+ * Added some translation and stability improvements
+
+Version 6.5.4 *(2020-09-19)*
+----------------------------
+
+ * Allow creating a new note from the Open Note dialog
+ * Added some translation and UX improvements
+
+Version 6.5.3 *(2020-05-30)*
+----------------------------
+
+ * Adding a crashfix
+
+Version 6.5.2 *(2020-05-28)*
+----------------------------
+
+ * Add a bigger range of available font sizes
+ * Use a nicer app icon on older devices
+ * Fix bad looking text on checklist items
+ * A couple other UI, stability and translation improvements
+
+Version 6.5.1 *(2020-04-20)*
+----------------------------
+
+ * Fix showing the keyboard on startup, if selected so
+ * Added rounded corners at the widget
+ * Show a hint at the main screens textview, if empty
+
+Version 6.5.0 *(2020-03-29)*
+----------------------------
+
+ * Added Search at plain text notes
+ * Limiting some features on new installs to slowly get rid of the Storage permission
+ * Handling some file related intents with Scoped Storage
+ * Couple translation and UI improvements
+
+Version 6.4.1 *(2020-03-08)*
+----------------------------
+
+ * Allow importing text as checklist items split at new lines
+ * Fixed some crashes at importing text with special characters
+ * Other stability and translation improvements
+
Version 6.4.0 *(2020-01-30)*
----------------------------
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 000000000..0730468ba
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,8 @@
+### Reporting
+Before you report something, read the reporting rules [here](https://github.com/SimpleMobileTools/General-Discussion#how-do-i-suggest-an-improvement-ask-a-question-or-report-an-issue) please.
+
+### Contributing as a developer
+Some instructions about code style and everything that has to be done to increase the change of your code getting accepted can be found at the [General Discussion](https://github.com/SimpleMobileTools/General-Discussion#contribution-rules-for-developers) section.
+
+### Contributing as a non developer
+In case you just want to for example improve a translation, you can find the way of doing it [here](https://github.com/SimpleMobileTools/General-Discussion#how-can-i-suggest-an-edit-to-a-file).
diff --git a/README.md b/README.md
index fe5993d41..08ca2c6dc 100644
--- a/README.md
+++ b/README.md
@@ -1,21 +1,38 @@
# Simple Notes
-
+
-A simple textfield for adding quick notes.
+★ Need to take a quick note to make a shopping list, reminder for an address, or a startup idea? Then look no further as this is the simple organizer tool you've been looking for : Simple Notes: To-do list organizer and planner! The best of note taking apps and sticky notes free for android mobile phones. No complicated setup steps needed, just tap the screen and type in what you came for and create notes, quick lists, checklist or backup for any idea. With your simple personal notebook you can remember anything fast! Shopping list for groceries, to-do list for your daily agenda and easier note-taking to make setting up meetings a walk in the park ★
-Need to take a quick note of something to buy, an address, or a startup idea? Then this is the app you've been looking for! No complicated setup steps needed, just type in what you came for. Comes with autosave, so you will not discard your changes by mistake. Supports creating multiple independent notes.
+Simple notes planner is quick, simple to use organizer and remarkable note-taking colorful widget and it will serve as an invaluable tool helping you to remember necessary pieces of information or shopping list in the mall!
-You can access the note in no time by using the customizable and resizable widget, which opens the app on click.
+Our reminder agenda planner tool allows you to keep track of your duties, create daily sticky ideas and shopping list for items or ideas with unprecedented simplicity, notability and unrivaled time-saving value. Manage your schedule with proper and good notes - use one of our note-taking apps - Simple Notes or Simple Notes Pro :)
+
+Simple Notes Pro: To-do list organizer and planner note-taking reminder tool comes with an autosave so you will not discard your changes by mistake. It also supports creating multiple independent plain text notes and lists very fast.
+
+You can easily access your lists and organize your to-do list not notepad in no time by using the customizable and resizable widget, which opens the goodnotes organization apps on tap.
+
+It is user friendly and contains absolutely no ads or unnecessary permissions - no strings attached. It is fully opensource goodnotes widget, provides customizable colors which can be adjusted with quick and fast tweaking.
+
+Simple Notes: To-do list organizer and planner is the best item organizer and note taking apps you can use with no ads. If you need a high quality organizer for quick, reliable & good notepad, a simple shopping list reminder that is truly easy to use. Download our note-taking apps right now :) Have your own personal memo apps in your pocket every day and have a backup planner so you will not have to worry about forgetting an important meeting or your shopping list :)
+
+It comes with material design and dark theme by default, provides great user experience for easy usage. The lack of internet access gives you more privacy, security and stability than other apps.
Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
-This app is just one piece of a bigger series of apps. You can find the rest of them at https://www.simplemobiletools.com
+Get it on F-Droid
-
-
+Support us:
+IBAN: SK4083300000002000965231
+Bitcoin: 19Hc8A7sWGud8sP19VXDC5a5j28UyJfpyJ
+Ethereum: 0xB7a2DD6f2408Bce77334655CF5E7639aE31feb30
+Litecoin: LYACbHTKaM9ZubKQGxJ4NRyVy1gHUuztRP
+Bitcoin Cash: qz6dvmhq5vzkcsypxpp2mnur30muxdah4gvulx3y85
+Tether: 0x250f9cC32863E59b87037a14955Ed64F879653F0
+PayPal
+Patreon
-
-
-
+
+
+
diff --git a/app/build.gradle b/app/build.gradle
deleted file mode 100644
index ec6450857..000000000
--- a/app/build.gradle
+++ /dev/null
@@ -1,66 +0,0 @@
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply plugin: 'kotlin-android-extensions'
-apply plugin: 'kotlin-kapt'
-
-def keystorePropertiesFile = rootProject.file("keystore.properties")
-def keystoreProperties = new Properties()
-if (keystorePropertiesFile.exists()) {
- keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
-}
-
-android {
- compileSdkVersion 29
- buildToolsVersion "29.0.2"
-
- defaultConfig {
- applicationId "com.simplemobiletools.notes.pro"
- minSdkVersion 21
- targetSdkVersion 29
- versionCode 69
- versionName "6.4.0"
- setProperty("archivesBaseName", "notes")
- }
-
- signingConfigs {
- if (keystorePropertiesFile.exists()) {
- release {
- keyAlias keystoreProperties['keyAlias']
- keyPassword keystoreProperties['keyPassword']
- storeFile file(keystoreProperties['storeFile'])
- storePassword keystoreProperties['storePassword']
- }
- }
- }
-
- buildTypes {
- debug {
- applicationIdSuffix ".debug"
- }
- release {
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- if (keystorePropertiesFile.exists()) {
- signingConfig signingConfigs.release
- }
- }
- }
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- lintOptions {
- checkReleaseBuilds false
- abortOnError false
- }
-}
-
-dependencies {
- implementation 'com.simplemobiletools:commons:5.22.10'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
-
- kapt 'androidx.room:room-compiler:2.2.2'
- implementation 'androidx.room:room-runtime:2.2.2'
- annotationProcessor 'androidx.room:room-compiler:2.2.2'
-}
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
new file mode 100644
index 000000000..8e504b5ac
--- /dev/null
+++ b/app/build.gradle.kts
@@ -0,0 +1,106 @@
+import java.io.FileInputStream
+import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
+import org.jetbrains.kotlin.konan.properties.Properties
+
+plugins {
+ alias(libs.plugins.android)
+ alias(libs.plugins.kotlinAndroid)
+ alias(libs.plugins.ksp)
+ alias(libs.plugins.kotlinSerialization)
+ base
+}
+
+base {
+ archivesName.set("notes")
+}
+
+val keystorePropertiesFile: File = rootProject.file("keystore.properties")
+val keystoreProperties = Properties()
+if (keystorePropertiesFile.exists()) {
+ keystoreProperties.load(FileInputStream(keystorePropertiesFile))
+}
+
+android {
+ compileSdk = project.libs.versions.app.build.compileSDKVersion.get().toInt()
+
+ defaultConfig {
+ applicationId = libs.versions.app.version.appId.get()
+ minSdk = project.libs.versions.app.build.minimumSDK.get().toInt()
+ targetSdk = project.libs.versions.app.build.targetSDK.get().toInt()
+ versionName = project.libs.versions.app.version.versionName.get()
+ versionCode = project.libs.versions.app.version.versionCode.get().toInt()
+ ksp {
+ arg("room.schemaLocation", "$projectDir/schemas")
+ }
+ }
+
+ signingConfigs {
+ if (keystorePropertiesFile.exists()) {
+ register("release") {
+ keyAlias = keystoreProperties.getProperty("keyAlias")
+ keyPassword = keystoreProperties.getProperty("keyPassword")
+ storeFile = file(keystoreProperties.getProperty("storeFile"))
+ storePassword = keystoreProperties.getProperty("storePassword")
+ }
+ }
+ }
+
+ buildFeatures {
+ viewBinding = true
+ buildConfig = true
+ }
+
+ buildTypes {
+ debug {
+ applicationIdSuffix = ".debug"
+ }
+ release {
+ isMinifyEnabled = true
+ proguardFiles(
+ getDefaultProguardFile("proguard-android-optimize.txt"),
+ "proguard-rules.pro"
+ )
+ if (keystorePropertiesFile.exists()) {
+ signingConfig = signingConfigs.getByName("release")
+ }
+ }
+ }
+
+ flavorDimensions.add("variants")
+ productFlavors {
+ register("core")
+ register("fdroid")
+ register("prepaid")
+ }
+
+ sourceSets {
+ getByName("main").java.srcDirs("src/main/kotlin")
+ }
+
+ compileOptions {
+ val currentJavaVersionFromLibs = JavaVersion.valueOf(libs.versions.app.build.javaVersion.get().toString())
+ sourceCompatibility = currentJavaVersionFromLibs
+ targetCompatibility = currentJavaVersionFromLibs
+ }
+
+ tasks.withType {
+ kotlinOptions.jvmTarget = project.libs.versions.app.build.kotlinJVMTarget.get()
+ }
+
+ namespace = libs.versions.app.version.appId.get()
+
+ lint {
+ checkReleaseBuilds = false
+ abortOnError = false
+ }
+}
+
+dependencies {
+ implementation(libs.simple.tools.commons)
+ implementation(libs.androidx.constraintlayout)
+ implementation(libs.androidx.documentfile)
+ implementation(libs.kotlinx.serialization.json)
+
+ implementation(libs.bundles.room)
+ ksp(libs.androidx.room.compiler)
+}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
index e69de29bb..10b9d3110 100644
--- a/app/proguard-rules.pro
+++ b/app/proguard-rules.pro
@@ -0,0 +1,33 @@
+-keep class com.simplemobiletools.notes.pro.models.* {
+ ;
+}
+
+# Keep `Companion` object fields of serializable classes.
+# This avoids serializer lookup through `getDeclaredClasses` as done for named companion objects.
+-if @kotlinx.serialization.Serializable class **
+-keepclassmembers class <1> {
+ static <1>$Companion Companion;
+}
+
+# Keep `serializer()` on companion objects (both default and named) of serializable classes.
+-if @kotlinx.serialization.Serializable class ** {
+ static **$* *;
+}
+-keepclassmembers class <2>$<3> {
+ kotlinx.serialization.KSerializer serializer(...);
+}
+
+# Keep `INSTANCE.serializer()` of serializable objects.
+-if @kotlinx.serialization.Serializable class ** {
+ public static ** INSTANCE;
+}
+-keepclassmembers class <1> {
+ public static <1> INSTANCE;
+ kotlinx.serialization.KSerializer serializer(...);
+}
+
+# Needed for using TypeToken with Gson
+# Taken from: https://r8.googlesource.com/r8/+/refs/heads/main/compatibility-faq.md#troubleshooting-gson-gson
+-keepattributes Signature
+-keep class com.google.gson.reflect.TypeToken { *; }
+-keep class * extends com.google.gson.reflect.TypeToken
diff --git a/app/schemas/com.simplemobiletools.notes.pro.databases.NotesDatabase/4.json b/app/schemas/com.simplemobiletools.notes.pro.databases.NotesDatabase/4.json
new file mode 100644
index 000000000..976d803f3
--- /dev/null
+++ b/app/schemas/com.simplemobiletools.notes.pro.databases.NotesDatabase/4.json
@@ -0,0 +1,140 @@
+{
+ "formatVersion": 1,
+ "database": {
+ "version": 4,
+ "identityHash": "e470b6e1411ee6659417cf4dbe54f453",
+ "entities": [
+ {
+ "tableName": "notes",
+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `title` TEXT NOT NULL, `value` TEXT NOT NULL, `type` INTEGER NOT NULL, `path` TEXT NOT NULL, `protection_type` INTEGER NOT NULL, `protection_hash` TEXT NOT NULL)",
+ "fields": [
+ {
+ "fieldPath": "id",
+ "columnName": "id",
+ "affinity": "INTEGER",
+ "notNull": false
+ },
+ {
+ "fieldPath": "title",
+ "columnName": "title",
+ "affinity": "TEXT",
+ "notNull": true
+ },
+ {
+ "fieldPath": "value",
+ "columnName": "value",
+ "affinity": "TEXT",
+ "notNull": true
+ },
+ {
+ "fieldPath": "type",
+ "columnName": "type",
+ "affinity": "INTEGER",
+ "notNull": true
+ },
+ {
+ "fieldPath": "path",
+ "columnName": "path",
+ "affinity": "TEXT",
+ "notNull": true
+ },
+ {
+ "fieldPath": "protectionType",
+ "columnName": "protection_type",
+ "affinity": "INTEGER",
+ "notNull": true
+ },
+ {
+ "fieldPath": "protectionHash",
+ "columnName": "protection_hash",
+ "affinity": "TEXT",
+ "notNull": true
+ }
+ ],
+ "primaryKey": {
+ "autoGenerate": true,
+ "columnNames": [
+ "id"
+ ]
+ },
+ "indices": [
+ {
+ "name": "index_notes_id",
+ "unique": true,
+ "columnNames": [
+ "id"
+ ],
+ "orders": [],
+ "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_notes_id` ON `${TABLE_NAME}` (`id`)"
+ }
+ ],
+ "foreignKeys": []
+ },
+ {
+ "tableName": "widgets",
+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `widget_id` INTEGER NOT NULL, `note_id` INTEGER NOT NULL, `widget_bg_color` INTEGER NOT NULL, `widget_text_color` INTEGER NOT NULL, `widget_show_title` INTEGER NOT NULL)",
+ "fields": [
+ {
+ "fieldPath": "id",
+ "columnName": "id",
+ "affinity": "INTEGER",
+ "notNull": false
+ },
+ {
+ "fieldPath": "widgetId",
+ "columnName": "widget_id",
+ "affinity": "INTEGER",
+ "notNull": true
+ },
+ {
+ "fieldPath": "noteId",
+ "columnName": "note_id",
+ "affinity": "INTEGER",
+ "notNull": true
+ },
+ {
+ "fieldPath": "widgetBgColor",
+ "columnName": "widget_bg_color",
+ "affinity": "INTEGER",
+ "notNull": true
+ },
+ {
+ "fieldPath": "widgetTextColor",
+ "columnName": "widget_text_color",
+ "affinity": "INTEGER",
+ "notNull": true
+ },
+ {
+ "fieldPath": "widgetShowTitle",
+ "columnName": "widget_show_title",
+ "affinity": "INTEGER",
+ "notNull": true
+ }
+ ],
+ "primaryKey": {
+ "autoGenerate": true,
+ "columnNames": [
+ "id"
+ ]
+ },
+ "indices": [
+ {
+ "name": "index_widgets_widget_id",
+ "unique": true,
+ "columnNames": [
+ "widget_id"
+ ],
+ "orders": [],
+ "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_widgets_widget_id` ON `${TABLE_NAME}` (`widget_id`)"
+ }
+ ],
+ "foreignKeys": []
+ }
+ ],
+ "views": [],
+ "setupQueries": [
+ "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
+ "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'e470b6e1411ee6659417cf4dbe54f453')"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/app/src/fdroid/res/values/bools.xml b/app/src/fdroid/res/values/bools.xml
new file mode 100644
index 000000000..ac02880ed
--- /dev/null
+++ b/app/src/fdroid/res/values/bools.xml
@@ -0,0 +1,6 @@
+
+
+ true
+ true
+ true
+
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index beee67c76..67cc4ec4f 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -1,344 +1,393 @@
-
-
+ android:name="android.permission.WRITE_EXTERNAL_STORAGE"
+ android:maxSdkVersion="28" />
+
+
+
+
+ android:required="false" />
+
+
+
+
+
+ android:theme="@style/SplashTheme" />
-
-
-
+
+
+
-
-
-
+
+
+
-
+
+ android:parentActivityName=".activities.MainActivity" />
-
-
-
-
+ android:parentActivityName=".activities.SettingsActivity" />
+ android:parentActivityName=".activities.MainActivity">
+
+
+
+
+
+
+ android:exported="true"
+ android:permission="android.permission.BIND_REMOTEVIEWS" />
-
+
+ android:resource="@xml/widget_info" />
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
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 b0a829123..77414759e 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,18 +1,34 @@
package com.simplemobiletools.notes.pro.activities
+import android.accounts.NetworkErrorException
+import android.annotation.SuppressLint
+import android.app.Activity
+import android.content.ActivityNotFoundException
+import android.content.Context
import android.content.Intent
+import android.content.pm.ShortcutInfo
+import android.content.pm.ShortcutManager
+import android.graphics.drawable.Icon
+import android.graphics.drawable.LayerDrawable
import android.net.Uri
import android.os.Bundle
+import android.print.PrintAttributes
+import android.print.PrintManager
import android.text.method.ArrowKeyMovementMethod
import android.text.method.LinkMovementMethod
import android.util.TypedValue
import android.view.ActionMode
import android.view.Gravity
-import android.view.Menu
import android.view.MenuItem
-import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
-import com.simplemobiletools.commons.dialogs.FilePickerDialog
-import com.simplemobiletools.commons.dialogs.RadioGroupDialog
+import android.view.inputmethod.EditorInfo
+import android.webkit.WebResourceRequest
+import android.webkit.WebView
+import android.webkit.WebViewClient
+import android.widget.ImageView
+import android.widget.TextView
+import android.widget.Toast
+import androidx.viewpager.widget.ViewPager
+import com.simplemobiletools.commons.dialogs.*
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.models.FAQItem
@@ -24,20 +40,29 @@ import com.simplemobiletools.notes.pro.BuildConfig
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.adapters.NotesPagerAdapter
import com.simplemobiletools.notes.pro.databases.NotesDatabase
+import com.simplemobiletools.notes.pro.databinding.ActivityMainBinding
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.*
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.activity_main.*
+import com.simplemobiletools.notes.pro.models.NoteType
import java.io.File
import java.nio.charset.Charset
+import java.util.*
class MainActivity : SimpleActivity() {
private val EXPORT_FILE_SYNC = 1
private val EXPORT_FILE_NO_SYNC = 2
+ private val IMPORT_FILE_SYNC = 1
+ private val IMPORT_FILE_NO_SYNC = 2
+
+ private val PICK_OPEN_FILE_INTENT = 1
+ private val PICK_EXPORT_FILE_INTENT = 2
+
private lateinit var mCurrentNote: Note
- private var mNotes = ArrayList()
+ private var mNotes = listOf()
private var mAdapter: NotesPagerAdapter? = null
private var noteViewWithTextSelected: MyEditText? = null
private var saveNoteButton: MenuItem? = null
@@ -47,41 +72,97 @@ class MainActivity : SimpleActivity() {
private var showSaveButton = false
private var showUndoButton = false
private var showRedoButton = false
+ private var searchIndex = 0
+ private var searchMatches = emptyList()
+ private var isSearchActive = false
+
+ private lateinit var searchQueryET: MyEditText
+ private lateinit var searchPrevBtn: ImageView
+ private lateinit var searchNextBtn: ImageView
+ private lateinit var searchClearBtn: ImageView
+
+ private val binding by viewBinding(ActivityMainBinding::inflate)
override fun onCreate(savedInstanceState: Bundle?) {
+ isMaterialActivity = true
super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_main)
+ setContentView(binding.root)
appLaunched(BuildConfig.APPLICATION_ID)
+ setupOptionsMenu()
+ refreshMenuItems()
+
+ updateMaterialActivityViews(binding.mainCoordinator, null, useTransparentNavigation = false, useTopSearchMenu = false)
+
+ searchQueryET = findViewById(com.simplemobiletools.commons.R.id.search_query)
+ searchPrevBtn = findViewById(com.simplemobiletools.commons.R.id.search_previous)
+ searchNextBtn = findViewById(com.simplemobiletools.commons.R.id.search_next)
+ searchClearBtn = findViewById(com.simplemobiletools.commons.R.id.search_clear)
+
+ val noteToOpen = intent.getLongExtra(OPEN_NOTE_ID, -1L)
+ initViewPager(noteToOpen)
+ binding.pagerTabStrip.drawFullUnderline = false
+ val textSize = getPercentageFontSize()
+ binding.pagerTabStrip.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize)
+ binding.pagerTabStrip.layoutParams.height =
+ (textSize + resources.getDimension(com.simplemobiletools.commons.R.dimen.medium_margin) * 2).toInt()
+ (binding.pagerTabStrip.layoutParams as ViewPager.LayoutParams).isDecor = true
+
+ val hasNoIntent = intent.action.isNullOrEmpty() && noteToOpen == -1L
- initViewPager(intent.getLongExtra(OPEN_NOTE_ID, -1L))
- pager_title_strip.setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize())
- pager_title_strip.layoutParams.height = (pager_title_strip.height + resources.getDimension(R.dimen.activity_margin) * 2).toInt()
checkWhatsNewDialog()
checkIntents(intent)
storeStateVariables()
- if (config.showNotePicker && savedInstanceState == null) {
+ if (config.showNotePicker && savedInstanceState == null && hasNoIntent) {
displayOpenNoteDialog()
}
wasInit = true
+
checkAppOnSDCard()
+ setupSearchButtons()
+
+ if (isPackageInstalled("com.simplemobiletools.notes")) {
+ val dialogText = getString(com.simplemobiletools.commons.R.string.upgraded_from_free_notes)
+ ConfirmationDialog(this, dialogText, 0, com.simplemobiletools.commons.R.string.ok, 0, false) {}
+ }
}
override fun onResume() {
super.onResume()
+ setupToolbar(binding.mainToolbar)
if (storedEnableLineWrap != config.enableLineWrap) {
initViewPager()
}
- invalidateOptionsMenu()
- pager_title_strip.apply {
- setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize())
+ NotesHelper(this).getNotes { lastestNotes ->
+ if (mNotes.size != lastestNotes.size) {
+ initViewPager()
+ }
+ }
+
+ refreshMenuItems()
+ binding.pagerTabStrip.apply {
+ val textSize = getPercentageFontSize()
+ setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize)
+ layoutParams.height =
+ (textSize + resources.getDimension(com.simplemobiletools.commons.R.dimen.medium_margin) * 2).toInt()
setGravity(Gravity.CENTER_VERTICAL)
setNonPrimaryAlpha(0.4f)
- setTextColor(config.textColor)
+ setTextColor(getProperPrimaryColor())
+ tabIndicatorColor = getProperPrimaryColor()
+ }
+ updateTextColors(binding.viewPager)
+
+ checkShortcuts()
+
+ binding.searchWrapper.setBackgroundColor(getProperStatusBarColor())
+ val contrastColor = getProperPrimaryColor().getContrastColor()
+ arrayListOf(searchPrevBtn, searchNextBtn, searchClearBtn).forEach {
+ it.applyColorFilter(contrastColor)
}
- updateTextColors(view_pager)
+
+ updateTopBarColors(binding.mainToolbar, getProperBackgroundColor())
}
override fun onPause() {
@@ -96,56 +177,73 @@ class MainActivity : SimpleActivity() {
}
}
- override fun onCreateOptionsMenu(menu: Menu): Boolean {
- menuInflater.inflate(R.menu.menu, menu)
- menu.apply {
- findItem(R.id.undo).isVisible = showUndoButton && mCurrentNote.type == NoteType.TYPE_TEXT.value
- findItem(R.id.redo).isVisible = showRedoButton && mCurrentNote.type == NoteType.TYPE_TEXT.value
- }
+ private fun refreshMenuItems() {
+ val multipleNotesExist = mNotes.size > 1
+ val isCurrentItemChecklist = isCurrentItemChecklist()
- updateMenuItemColors(menu)
- return true
- }
+ binding.mainToolbar.menu.apply {
+ findItem(R.id.undo).apply {
+ isVisible = showUndoButton && mCurrentNote.type == NoteType.TYPE_TEXT
+ icon?.alpha = if (isEnabled) 255 else 127
+ }
+
+ findItem(R.id.redo).apply {
+ isVisible = showRedoButton && mCurrentNote.type == NoteType.TYPE_TEXT
+ icon?.alpha = if (isEnabled) 255 else 127
+ }
- override fun onPrepareOptionsMenu(menu: Menu): Boolean {
- val shouldBeVisible = mNotes.size > 1
- menu.apply {
- findItem(R.id.rename_note).isVisible = shouldBeVisible
- findItem(R.id.open_note).isVisible = shouldBeVisible
- findItem(R.id.delete_note).isVisible = shouldBeVisible
- findItem(R.id.export_all_notes).isVisible = shouldBeVisible
+ findItem(R.id.rename_note).isVisible = multipleNotesExist
+ findItem(R.id.open_note).isVisible = multipleNotesExist
+ findItem(R.id.delete_note).isVisible = multipleNotesExist
+ findItem(R.id.open_search).isVisible = !isCurrentItemChecklist
+ findItem(R.id.remove_done_items).isVisible = isCurrentItemChecklist
+ findItem(R.id.sort_checklist).isVisible = isCurrentItemChecklist
+ findItem(R.id.import_folder).isVisible = !isQPlus()
+ findItem(R.id.lock_note).isVisible = mNotes.isNotEmpty() && (::mCurrentNote.isInitialized && !mCurrentNote.isLocked())
+ findItem(R.id.unlock_note).isVisible = mNotes.isNotEmpty() && (::mCurrentNote.isInitialized && mCurrentNote.isLocked())
+ findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(com.simplemobiletools.commons.R.bool.hide_google_relations)
saveNoteButton = findItem(R.id.save_note)
- saveNoteButton!!.isVisible = !config.autosaveNotes && showSaveButton && mCurrentNote.type == NoteType.TYPE_TEXT.value
+ saveNoteButton!!.isVisible =
+ !config.autosaveNotes && showSaveButton && (::mCurrentNote.isInitialized && mCurrentNote.type == NoteType.TYPE_TEXT)
}
- pager_title_strip.beVisibleIf(shouldBeVisible)
- return super.onPrepareOptionsMenu(menu)
+ binding.pagerTabStrip.beVisibleIf(multipleNotesExist)
}
- override fun onOptionsItemSelected(item: MenuItem): Boolean {
- if (config.autosaveNotes) {
- saveCurrentNote(false)
- }
+ private fun setupOptionsMenu() {
+ binding.mainToolbar.setOnMenuItemClickListener { menuItem ->
+ if (config.autosaveNotes && menuItem.itemId != R.id.undo && menuItem.itemId != R.id.redo) {
+ saveCurrentNote(false)
+ }
- when (item.itemId) {
- R.id.open_note -> displayOpenNoteDialog()
- R.id.save_note -> saveNote()
- R.id.undo -> undo()
- R.id.redo -> redo()
- R.id.new_note -> displayNewNoteDialog()
- R.id.rename_note -> displayRenameDialog()
- R.id.share -> shareText()
- R.id.open_file -> tryOpenFile()
- R.id.import_folder -> tryOpenFolder()
- R.id.export_as_file -> tryExportAsFile()
- R.id.export_all_notes -> tryExportAllNotes()
- R.id.delete_note -> displayDeleteNotePrompt()
- R.id.settings -> startActivity(Intent(applicationContext, SettingsActivity::class.java))
- R.id.about -> launchAbout()
- else -> return super.onOptionsItemSelected(item)
+ val fragment = getCurrentFragment()
+ when (menuItem.itemId) {
+ R.id.open_search -> fragment?.handleUnlocking { openSearch() }
+ R.id.open_note -> displayOpenNoteDialog()
+ R.id.save_note -> fragment?.handleUnlocking { saveNote() }
+ R.id.undo -> undo()
+ R.id.redo -> redo()
+ R.id.new_note -> displayNewNoteDialog()
+ R.id.rename_note -> fragment?.handleUnlocking { displayRenameDialog() }
+ R.id.share -> fragment?.handleUnlocking { shareText() }
+ R.id.cab_create_shortcut -> createShortcut()
+ R.id.lock_note -> lockNote()
+ R.id.unlock_note -> unlockNote()
+ R.id.open_file -> tryOpenFile()
+ R.id.import_folder -> openFolder()
+ R.id.export_as_file -> fragment?.handleUnlocking { tryExportAsFile() }
+ R.id.print -> fragment?.handleUnlocking { printText() }
+ R.id.delete_note -> fragment?.handleUnlocking { displayDeleteNotePrompt() }
+ R.id.more_apps_from_us -> launchMoreAppsFromUsIntent()
+ R.id.settings -> launchSettings()
+ R.id.about -> launchAbout()
+ R.id.remove_done_items -> fragment?.handleUnlocking { removeDoneItems() }
+ R.id.sort_checklist -> fragment?.handleUnlocking { displaySortChecklistDialog() }
+ else -> return@setOnMenuItemClickListener false
+ }
+ return@setOnMenuItemClickListener true
}
- return true
}
// https://code.google.com/p/android/issues/detail?id=191430 quickfix
@@ -153,7 +251,7 @@ class MainActivity : SimpleActivity() {
super.onActionModeStarted(mode)
if (wasInit) {
currentNotesView()?.apply {
- if (config.clickableLinks || movementMethod is LinkMovementMethod) {
+ if (config.clickableLinks || movementMethod is LinkMovementMethod || movementMethod is MyMovementMethod) {
movementMethod = ArrowKeyMovementMethod.getInstance()
noteViewWithTextSelected = this
}
@@ -164,18 +262,26 @@ class MainActivity : SimpleActivity() {
override fun onActionModeFinished(mode: ActionMode?) {
super.onActionModeFinished(mode)
if (config.clickableLinks) {
- noteViewWithTextSelected?.movementMethod = LinkMovementMethod.getInstance()
+ noteViewWithTextSelected?.movementMethod = MyMovementMethod.getInstance()
}
}
override fun onBackPressed() {
if (!config.autosaveNotes && mAdapter?.anyHasUnsavedChanges() == true) {
- ConfirmationAdvancedDialog(this, "", R.string.unsaved_changes_warning, R.string.save, R.string.discard) {
+ ConfirmationAdvancedDialog(
+ this,
+ "",
+ R.string.unsaved_changes_warning,
+ com.simplemobiletools.commons.R.string.save,
+ com.simplemobiletools.commons.R.string.discard
+ ) {
if (it) {
mAdapter?.saveAllFragmentTexts()
}
super.onBackPressed()
}
+ } else if (isSearchActive) {
+ closeSearch()
} else {
super.onBackPressed()
}
@@ -184,10 +290,76 @@ class MainActivity : SimpleActivity() {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
val wantedNoteId = intent.getLongExtra(OPEN_NOTE_ID, -1L)
- view_pager.currentItem = getWantedNoteIndex(wantedNoteId)
+ binding.viewPager.currentItem = getWantedNoteIndex(wantedNoteId)
checkIntents(intent)
}
+ override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
+ super.onActivityResult(requestCode, resultCode, resultData)
+ if (requestCode == PICK_OPEN_FILE_INTENT && resultCode == RESULT_OK && resultData != null && resultData.data != null) {
+ importUri(resultData.data!!)
+ } else if (requestCode == PICK_EXPORT_FILE_INTENT && resultCode == Activity.RESULT_OK && resultData != null && resultData.data != null && mNotes.isNotEmpty()) {
+ val takeFlags = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
+ applicationContext.contentResolver.takePersistableUriPermission(resultData.data!!, takeFlags)
+ showExportFilePickUpdateDialog(resultData.dataString!!, getCurrentNoteValue())
+ }
+ }
+
+ private fun isCurrentItemChecklist() = if (::mCurrentNote.isInitialized) mCurrentNote.type == NoteType.TYPE_CHECKLIST 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(com.simplemobiletools.commons.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) {
@@ -199,14 +371,25 @@ class MainActivity : SimpleActivity() {
if (action == Intent.ACTION_VIEW) {
val realPath = intent.getStringExtra(REAL_FILE_PATH)
- if (realPath != null) {
- val file = File(realPath)
- handleUri(Uri.fromFile(file))
- } else {
- handleUri(data!!)
+ val isFromHistory = intent.flags and Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY != 0
+ if (!isFromHistory) {
+ 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, "", PROTECTION_NONE, "")
+ addNewNote(newTextNote)
+ } else if (intent.getBooleanExtra(NEW_CHECKLIST, false)) {
+ val newChecklist = Note(null, getCurrentFormattedDateTime(), "", NoteType.TYPE_CHECKLIST, "", PROTECTION_NONE, "")
+ addNewNote(newChecklist)
+ } else {
+ handleUri(data!!)
+ }
}
intent.removeCategory(Intent.CATEGORY_DEFAULT)
intent.action = null
+ intent.removeExtra(NEW_CHECKLIST)
+ intent.removeExtra(NEW_TEXT_NOTE)
}
}
}
@@ -245,24 +428,22 @@ class MainActivity : SimpleActivity() {
return@getNoteIdWithPath
}
- handlePermission(PERMISSION_WRITE_STORAGE) {
- if (it) {
- NotesHelper(this).getNotes {
- mNotes = it
- importUri(uri)
- }
- }
+ NotesHelper(this).getNotes {
+ mNotes = it
+ importUri(uri)
}
}
}
private fun initViewPager(wantedNoteId: Long? = null) {
- NotesHelper(this).getNotes {
- mNotes = it
- invalidateOptionsMenu()
+ NotesHelper(this).getNotes { notes ->
+ notes.filter { it.shouldBeUnlocked(this) }
+ .forEach(::removeProtection)
+
+ mNotes = notes
mCurrentNote = mNotes[0]
mAdapter = NotesPagerAdapter(supportFragmentManager, mNotes, this)
- view_pager.apply {
+ binding.viewPager.apply {
adapter = mAdapter
currentItem = getWantedNoteIndex(wantedNoteId)
config.currentNoteId = mCurrentNote.id!!
@@ -270,26 +451,146 @@ class MainActivity : SimpleActivity() {
onPageChangeListener {
mCurrentNote = mNotes[it]
config.currentNoteId = mCurrentNote.id!!
- invalidateOptionsMenu()
+ refreshMenuItems()
}
}
- if (!config.showKeyboard || mCurrentNote.type == NoteType.TYPE_CHECKLIST.value) {
+ if (!config.showKeyboard || mCurrentNote.type == NoteType.TYPE_CHECKLIST) {
hideKeyboard()
}
+ refreshMenuItems()
}
}
+ private fun setupSearchButtons() {
+ searchQueryET.onTextChangeListener {
+ searchTextChanged(it)
+ }
+
+ searchPrevBtn.setOnClickListener {
+ goToPrevSearchResult()
+ }
+
+ searchNextBtn.setOnClickListener {
+ goToNextSearchResult()
+ }
+
+ searchClearBtn.setOnClickListener {
+ closeSearch()
+ }
+
+ binding.viewPager.onPageChangeListener {
+ currentTextFragment?.removeTextWatcher()
+ currentNotesView()?.let { noteView ->
+ noteView.text!!.clearBackgroundSpans()
+ }
+
+ closeSearch()
+ currentTextFragment?.setTextWatcher()
+ }
+
+ searchQueryET.setOnEditorActionListener(TextView.OnEditorActionListener { _, actionId, _ ->
+ if (actionId == EditorInfo.IME_ACTION_SEARCH) {
+ searchNextBtn.performClick()
+ return@OnEditorActionListener true
+ }
+
+ false
+ })
+ }
+
+ private fun searchTextChanged(text: String) {
+ currentNotesView()?.let { noteView ->
+ currentTextFragment?.removeTextWatcher()
+ noteView.text!!.clearBackgroundSpans()
+
+ if (text.isNotBlank() && text.length > 1) {
+ searchMatches = noteView.value.searchMatches(text)
+ noteView.highlightText(text, getProperPrimaryColor())
+ }
+
+ currentTextFragment?.setTextWatcher()
+
+ if (searchMatches.isNotEmpty()) {
+ noteView.requestFocus()
+ noteView.setSelection(searchMatches.getOrNull(searchIndex) ?: 0)
+ }
+
+ searchQueryET.postDelayed({
+ searchQueryET.requestFocus()
+ }, 50)
+ }
+ }
+
+ private fun goToPrevSearchResult() {
+ currentNotesView()?.let { noteView ->
+ if (searchIndex > 0) {
+ searchIndex--
+ } else {
+ searchIndex = searchMatches.lastIndex
+ }
+
+ selectSearchMatch(noteView)
+ }
+ }
+
+ private fun goToNextSearchResult() {
+ currentNotesView()?.let { noteView ->
+ if (searchIndex < searchMatches.lastIndex) {
+ searchIndex++
+ } else {
+ searchIndex = 0
+ }
+
+ selectSearchMatch(noteView)
+ }
+ }
+
+ private fun getCurrentFragment() = mAdapter?.getFragment(binding.viewPager.currentItem)
+
+ private val currentTextFragment: TextFragment? get() = mAdapter?.textFragment(binding.viewPager.currentItem)
+
+ private fun selectSearchMatch(editText: MyEditText) {
+ if (searchMatches.isNotEmpty()) {
+ editText.requestFocus()
+ editText.setSelection(searchMatches.getOrNull(searchIndex) ?: 0)
+ } else {
+ hideKeyboard()
+ }
+ }
+
+ private fun openSearch() {
+ isSearchActive = true
+ binding.searchWrapper.fadeIn()
+ showKeyboard(searchQueryET)
+
+ currentNotesView()?.let { noteView ->
+ noteView.requestFocus()
+ noteView.setSelection(0)
+ }
+
+ searchQueryET.postDelayed({
+ searchQueryET.requestFocus()
+ }, 250)
+ }
+
+ private fun closeSearch() {
+ searchQueryET.text?.clear()
+ isSearchActive = false
+ binding.searchWrapper.fadeOut()
+ hideKeyboard()
+ }
+
private fun getWantedNoteIndex(wantedNoteId: Long?): Int {
intent.removeExtra(OPEN_NOTE_ID)
val noteIdToOpen = if (wantedNoteId == null || wantedNoteId == -1L) config.currentNoteId else wantedNoteId
return getNoteIndexWithId(noteIdToOpen)
}
- private fun currentNotesView() = if (view_pager == null) {
+ private fun currentNotesView() = if (binding.viewPager == null) {
null
} else {
- mAdapter?.getCurrentNotesView(view_pager.currentItem)
+ mAdapter?.getCurrentNotesView(binding.viewPager.currentItem)
}
private fun displayRenameDialog() {
@@ -308,14 +609,15 @@ class MainActivity : SimpleActivity() {
}
} else {
val index = getNoteIndexWithId(id)
- view_pager.currentItem = index
+ binding.viewPager.currentItem = index
mCurrentNote = mNotes[index]
}
}
- private fun displayNewNoteDialog(value: String = "") {
- NewNoteDialog(this) {
+ private fun displayNewNoteDialog(value: String = "", title: String? = null, path: String = "", setChecklistAsDefault: Boolean = false) {
+ NewNoteDialog(this, title, setChecklistAsDefault) {
it.value = value
+ it.path = path
addNewNote(it)
}
}
@@ -324,49 +626,79 @@ class MainActivity : SimpleActivity() {
NotesHelper(this).insertOrUpdateNote(note) {
val newNoteId = it
showSaveButton = false
+ showUndoButton = false
+ showRedoButton = false
initViewPager(newNoteId)
updateSelectedNote(newNoteId)
- view_pager.onGlobalLayout {
+ binding.viewPager.onGlobalLayout {
mAdapter?.focusEditText(getNoteIndexWithId(newNoteId))
}
}
}
+ private fun launchSettings() {
+ hideKeyboard()
+ startActivity(Intent(applicationContext, SettingsActivity::class.java))
+ }
+
private fun launchAbout() {
val licenses = LICENSE_RTL
val faqItems = arrayListOf(
- FAQItem(R.string.faq_1_title_commons, R.string.faq_1_text_commons),
- FAQItem(R.string.faq_1_title, R.string.faq_1_text),
- FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons),
- FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons),
- FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons)
+ FAQItem(com.simplemobiletools.commons.R.string.faq_1_title_commons, com.simplemobiletools.commons.R.string.faq_1_text_commons),
+ FAQItem(R.string.faq_1_title, R.string.faq_1_text)
)
+ if (!resources.getBoolean(com.simplemobiletools.commons.R.bool.hide_google_relations)) {
+ faqItems.add(FAQItem(com.simplemobiletools.commons.R.string.faq_2_title_commons, com.simplemobiletools.commons.R.string.faq_2_text_commons))
+ faqItems.add(FAQItem(com.simplemobiletools.commons.R.string.faq_6_title_commons, com.simplemobiletools.commons.R.string.faq_6_text_commons))
+ faqItems.add(FAQItem(com.simplemobiletools.commons.R.string.faq_7_title_commons, com.simplemobiletools.commons.R.string.faq_7_text_commons))
+ faqItems.add(FAQItem(com.simplemobiletools.commons.R.string.faq_10_title_commons, com.simplemobiletools.commons.R.string.faq_10_text_commons))
+ }
+
startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)
}
private fun tryOpenFile() {
- handlePermission(PERMISSION_WRITE_STORAGE) {
- if (it) {
- openFile()
+ hideKeyboard()
+ if (hasPermission(PERMISSION_READ_STORAGE)) {
+ openFile()
+ } else {
+ Intent(Intent.ACTION_OPEN_DOCUMENT).apply {
+ addCategory(Intent.CATEGORY_OPENABLE)
+ type = "*/*"
+
+ try {
+ val mimetypes = arrayOf("text/*", "application/json")
+ putExtra(Intent.EXTRA_MIME_TYPES, mimetypes)
+ startActivityForResult(this, PICK_OPEN_FILE_INTENT)
+ } catch (e: ActivityNotFoundException) {
+ toast(com.simplemobiletools.commons.R.string.system_service_disabled, Toast.LENGTH_LONG)
+ } catch (e: Exception) {
+ showErrorToast(e)
+ }
}
}
}
private fun openFile() {
FilePickerDialog(this, canAddShowHiddenButton = true) {
- openFile(it, true) {
+ checkFile(it, true) {
ensureBackgroundThread {
val fileText = it.readText().trim()
val checklistItems = fileText.parseChecklistItems()
if (checklistItems != null) {
- val note = Note(null, it.absolutePath.getFilenameFromPath().substringBeforeLast('.'), fileText, NoteType.TYPE_CHECKLIST.value)
- addNewNote(note)
+ val title = it.absolutePath.getFilenameFromPath().substringBeforeLast('.')
+ val note = Note(null, title, fileText, NoteType.TYPE_CHECKLIST, "", PROTECTION_NONE, "")
+ runOnUiThread {
+ OpenFileDialog(this, it.path) {
+ displayNewNoteDialog(note.value, title = it.title, it.path, setChecklistAsDefault = true)
+ }
+ }
} else {
runOnUiThread {
OpenFileDialog(this, it.path) {
- addNewNote(it)
+ displayNewNoteDialog(it.value, title = it.title, it.path)
}
}
}
@@ -375,10 +707,10 @@ class MainActivity : SimpleActivity() {
}
}
- private fun openFile(path: String, checkTitle: Boolean, onChecksPassed: (file: File) -> Unit) {
+ private fun checkFile(path: String, checkTitle: Boolean, onChecksPassed: (file: File) -> Unit) {
val file = File(path)
if (path.isMediaFile()) {
- toast(R.string.invalid_file_format)
+ toast(com.simplemobiletools.commons.R.string.invalid_file_format)
} else if (file.length() > 1000 * 1000) {
toast(R.string.file_too_large)
} else if (checkTitle && mNotes.any { it.title.equals(path.getFilenameFromPath(), true) }) {
@@ -388,6 +720,21 @@ class MainActivity : SimpleActivity() {
}
}
+ private fun checkUri(uri: Uri, onChecksPassed: () -> Unit) {
+ val inputStream = try {
+ contentResolver.openInputStream(uri) ?: return
+ } catch (e: Exception) {
+ showErrorToast(e)
+ return
+ }
+
+ if (inputStream.available() > 1000 * 1000) {
+ toast(R.string.file_too_large)
+ } else {
+ onChecksPassed()
+ }
+ }
+
private fun openFolder(path: String, onChecksPassed: (file: File) -> Unit) {
val file = File(path)
if (file.isDirectory) {
@@ -400,25 +747,79 @@ class MainActivity : SimpleActivity() {
"file" -> openPath(uri.path!!)
"content" -> {
val realPath = getRealPathFromURI(uri)
- if (realPath != null) {
- openPath(realPath)
+ if (hasPermission(PERMISSION_READ_STORAGE)) {
+ if (realPath != null) {
+ openPath(realPath)
+ } else {
+ com.simplemobiletools.commons.R.string.unknown_error_occurred
+ }
+ } else if (realPath != null && realPath != "") {
+ checkFile(realPath, false) {
+ addNoteFromUri(uri, realPath.getFilenameFromPath())
+ }
} else {
- R.string.unknown_error_occurred
+ checkUri(uri) {
+ addNoteFromUri(uri)
+ }
}
}
}
}
+ private fun addNoteFromUri(uri: Uri, filename: String? = null) {
+ val noteTitle = when {
+ filename?.isEmpty() == false -> filename
+ uri.toString().startsWith("content://") -> getFilenameFromContentUri(uri) ?: getNewNoteTitle()
+ else -> getNewNoteTitle()
+ }
+
+ val inputStream = contentResolver.openInputStream(uri)
+ val content = inputStream?.bufferedReader().use { it!!.readText() }
+ val checklistItems = content.parseChecklistItems()
+
+ // if we got here by some other app invoking the file open intent, we have no permission for updating the original file itself
+ // we can do it only after using "Export as file" or "Open file" from our app
+ val canSyncNoteWithFile = if (hasPermission(PERMISSION_WRITE_STORAGE)) {
+ true
+ } else {
+ try {
+ val takeFlags = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
+ applicationContext.contentResolver.takePersistableUriPermission(uri, takeFlags)
+ true
+ } catch (e: Exception) {
+ false
+ }
+ }
+
+ val noteType = if (checklistItems != null) NoteType.TYPE_CHECKLIST else NoteType.TYPE_TEXT
+ if (!canSyncNoteWithFile) {
+ val note = Note(null, noteTitle, content, noteType, "", PROTECTION_NONE, "")
+ displayNewNoteDialog(note.value, title = noteTitle, "")
+ } else {
+ val items = arrayListOf(
+ RadioItem(IMPORT_FILE_SYNC, getString(R.string.update_file_at_note)),
+ RadioItem(IMPORT_FILE_NO_SYNC, getString(R.string.only_import_file_content))
+ )
+
+ RadioGroupDialog(this, items) {
+ val syncFile = it as Int == IMPORT_FILE_SYNC
+ val path = if (syncFile) uri.toString() else ""
+ val note = Note(null, noteTitle, content, noteType, "", PROTECTION_NONE, "")
+ displayNewNoteDialog(note.value, title = noteTitle, path)
+ }
+ }
+ }
+
private fun openPath(path: String) {
- openFile(path, false) {
+ checkFile(path, false) {
val title = path.getFilenameFromPath()
try {
val fileText = it.readText().trim()
val checklistItems = fileText.parseChecklistItems()
val note = if (checklistItems != null) {
- Note(null, title.substringBeforeLast('.'), fileText, NoteType.TYPE_CHECKLIST.value)
+ Note(null, title.substringBeforeLast('.'), fileText, NoteType.TYPE_CHECKLIST, "", PROTECTION_NONE, "")
} else {
- Note(null, title, "", NoteType.TYPE_TEXT.value, path)
+ Note(null, title, "", NoteType.TYPE_TEXT, path, PROTECTION_NONE, "")
}
if (mNotes.any { it.title.equals(note.title, true) }) {
@@ -432,132 +833,107 @@ class MainActivity : SimpleActivity() {
}
}
- private fun tryOpenFolder() {
- handlePermission(PERMISSION_READ_STORAGE) {
- if (it) {
- openFolder()
+ private fun openFolder() {
+ handlePermission(PERMISSION_READ_STORAGE) { hasPermission ->
+ if (hasPermission) {
+ FilePickerDialog(this, pickFile = false, canAddShowHiddenButton = true) {
+ openFolder(it) {
+ ImportFolderDialog(this, it.path) {
+ NotesHelper(this).getNotes {
+ mNotes = it
+ showSaveButton = false
+ initViewPager()
+ }
+ }
+ }
+ }
+ } else {
+ toast(com.simplemobiletools.commons.R.string.no_storage_permissions)
}
}
}
- private fun openFolder() {
- FilePickerDialog(this, pickFile = false, canAddShowHiddenButton = true) {
- openFolder(it) {
- ImportFolderDialog(this, it.path) {
- NotesHelper(this).getNotes {
- mNotes = it
- showSaveButton = false
- initViewPager()
- }
- }
+ private fun getNewNoteTitle(): String {
+ val base = getString(R.string.text_note)
+ var i = 1
+ while (true) {
+ val tryTitle = "$base $i"
+ if (mNotes.none { it.title == tryTitle }) {
+ return tryTitle
}
+ i++
}
}
private fun tryExportAsFile() {
- handlePermission(PERMISSION_WRITE_STORAGE) {
- if (it) {
- exportAsFile()
+ hideKeyboard()
+ if (hasPermission(PERMISSION_WRITE_STORAGE)) {
+ exportAsFile()
+ } else {
+ Intent(Intent.ACTION_CREATE_DOCUMENT).apply {
+ type = "text/*"
+ putExtra(Intent.EXTRA_TITLE, "${mCurrentNote.title.removeSuffix(".txt")}.txt")
+ addCategory(Intent.CATEGORY_OPENABLE)
+
+ try {
+ startActivityForResult(this, PICK_EXPORT_FILE_INTENT)
+ } catch (e: ActivityNotFoundException) {
+ toast(com.simplemobiletools.commons.R.string.system_service_disabled, Toast.LENGTH_LONG)
+ } catch (e: NetworkErrorException) {
+ toast(getString(R.string.cannot_load_over_internet), Toast.LENGTH_LONG)
+ } catch (e: Exception) {
+ showErrorToast(e)
+ }
}
}
}
private fun exportAsFile() {
ExportFileDialog(this, mCurrentNote) {
- val textToExport = if (mCurrentNote.type == NoteType.TYPE_TEXT.value) getCurrentNoteText() else mCurrentNote.value
+ val textToExport = if (mCurrentNote.type == NoteType.TYPE_TEXT) getCurrentNoteText() else mCurrentNote.value
if (textToExport == null || textToExport.isEmpty()) {
- toast(R.string.unknown_error_occurred)
- } else if (mCurrentNote.type == NoteType.TYPE_TEXT.value) {
+ toast(com.simplemobiletools.commons.R.string.unknown_error_occurred)
+ } else if (mCurrentNote.type == NoteType.TYPE_TEXT) {
showExportFilePickUpdateDialog(it, textToExport)
} else {
- tryExportNoteValueToFile(it, textToExport, true)
+ tryExportNoteValueToFile(it, mCurrentNote.title, textToExport, true)
}
}
}
private fun showExportFilePickUpdateDialog(exportPath: String, textToExport: String) {
val items = arrayListOf(
- RadioItem(EXPORT_FILE_SYNC, getString(R.string.update_file_at_note)),
- RadioItem(EXPORT_FILE_NO_SYNC, getString(R.string.only_export_file_content)))
+ RadioItem(EXPORT_FILE_SYNC, getString(R.string.update_file_at_note)),
+ RadioItem(EXPORT_FILE_NO_SYNC, getString(R.string.only_export_file_content))
+ )
RadioGroupDialog(this, items) {
val syncFile = it as Int == EXPORT_FILE_SYNC
- tryExportNoteValueToFile(exportPath, textToExport, true) {
- if (syncFile) {
- mCurrentNote.path = exportPath
- mCurrentNote.value = ""
- } else {
- mCurrentNote.path = ""
- mCurrentNote.value = textToExport
- }
-
- getPagerAdapter().updateCurrentNoteData(view_pager.currentItem, mCurrentNote.path, mCurrentNote.value)
- NotesHelper(this).insertOrUpdateNote(mCurrentNote)
- }
- }
- }
-
- private fun tryExportAllNotes() {
- handlePermission(PERMISSION_WRITE_STORAGE) {
- if (it) {
- exportAllNotes()
- }
- }
- }
-
- private fun exportAllNotes() {
- ExportFilesDialog(this, mNotes) { parent, extension ->
- val items = arrayListOf(
- RadioItem(EXPORT_FILE_SYNC, getString(R.string.update_file_at_note)),
- RadioItem(EXPORT_FILE_NO_SYNC, getString(R.string.only_export_file_content)))
-
- RadioGroupDialog(this, items) {
- val syncFile = it as Int == EXPORT_FILE_SYNC
- var failCount = 0
- NotesHelper(this).getNotes {
- mNotes = it
- mNotes.forEachIndexed { index, note ->
- val filename = if (extension.isEmpty()) note.title else "${note.title}.$extension"
- val file = File(parent, filename)
- if (!filename.isAValidFilename()) {
- toast(String.format(getString(R.string.filename_invalid_characters_placeholder, filename)))
- } else {
- val noteStoredValue = note.getNoteStoredValue() ?: ""
- tryExportNoteValueToFile(file.absolutePath, note.value, false) {
- if (syncFile) {
- note.path = file.absolutePath
- note.value = ""
- } else {
- note.path = ""
- note.value = noteStoredValue
- }
-
- NotesHelper(this).insertOrUpdateNote(note)
- if (mCurrentNote.id == note.id) {
- mCurrentNote.value = note.value
- mCurrentNote.path = note.path
- getPagerAdapter().updateCurrentNoteData(view_pager.currentItem, mCurrentNote.path, mCurrentNote.value)
- }
-
- if (!it) {
- failCount++
- }
-
- if (index == mNotes.size - 1) {
- toast(if (failCount == 0) R.string.exporting_successful else R.string.exporting_some_entries_failed)
- }
- }
- }
+ tryExportNoteValueToFile(exportPath, mCurrentNote.title, textToExport, true) { exportedSuccessfully ->
+ if (exportedSuccessfully) {
+ if (syncFile) {
+ mCurrentNote.path = exportPath
+ mCurrentNote.value = ""
+ } else {
+ mCurrentNote.path = ""
+ mCurrentNote.value = textToExport
}
+
+ getPagerAdapter().updateCurrentNoteData(binding.viewPager.currentItem, mCurrentNote.path, mCurrentNote.value)
+ NotesHelper(this).insertOrUpdateNote(mCurrentNote)
}
}
}
}
- fun tryExportNoteValueToFile(path: String, content: String, showSuccessToasts: Boolean, callback: ((success: Boolean) -> Unit)? = null) {
- handlePermission(PERMISSION_WRITE_STORAGE) {
- if (it) {
- exportNoteValueToFile(path, content, showSuccessToasts, callback)
+ fun tryExportNoteValueToFile(path: String, title: String, content: String, showSuccessToasts: Boolean, callback: ((success: Boolean) -> Unit)? = null) {
+ if (path.startsWith("content://")) {
+ exportNoteValueToUri(Uri.parse(path), title, content, showSuccessToasts, callback)
+ } else {
+ handlePermission(PERMISSION_WRITE_STORAGE) {
+ if (it) {
+ exportNoteValueToFile(path, content, showSuccessToasts, callback)
+ }
}
}
}
@@ -565,7 +941,7 @@ class MainActivity : SimpleActivity() {
private fun exportNoteValueToFile(path: String, content: String, showSuccessToasts: Boolean, callback: ((success: Boolean) -> Unit)? = null) {
try {
if (File(path).isDirectory) {
- toast(R.string.name_taken)
+ toast(com.simplemobiletools.commons.R.string.name_taken)
return
}
@@ -592,9 +968,8 @@ class MainActivity : SimpleActivity() {
}
} else {
val file = File(path)
- file.printWriter().use { out ->
- out.write(content)
- }
+ file.writeText(content)
+
if (showSuccessToasts) {
noteExportedSuccessfully(path.getFilenameFromPath())
}
@@ -606,6 +981,22 @@ class MainActivity : SimpleActivity() {
}
}
+ private fun exportNoteValueToUri(uri: Uri, title: String, content: String, showSuccessToasts: Boolean, callback: ((success: Boolean) -> Unit)? = null) {
+ try {
+ val outputStream = contentResolver.openOutputStream(uri, "rwt")
+ outputStream!!.bufferedWriter().use { out ->
+ out.write(content)
+ }
+ if (showSuccessToasts) {
+ noteExportedSuccessfully(title)
+ }
+ callback?.invoke(true)
+ } catch (e: Exception) {
+ showErrorToast(e)
+ callback?.invoke(false)
+ }
+ }
+
private fun noteExportedSuccessfully(title: String) {
val message = String.format(getString(R.string.note_exported_successfully), title)
toast(message)
@@ -618,16 +1009,66 @@ class MainActivity : SimpleActivity() {
}
}
- private fun getPagerAdapter() = view_pager.adapter as NotesPagerAdapter
+ private fun printText() {
+ try {
+ val webView = WebView(this)
+ webView.webViewClient = object : WebViewClient() {
+ override fun shouldOverrideUrlLoading(view: WebView, request: WebResourceRequest) = false
+
+ override fun onPageFinished(view: WebView, url: String) {
+ createWebPrintJob(view)
+ }
+ }
+
+ webView.loadData(getPrintableText().replace("#", "%23"), "text/plain", "UTF-8")
+ } catch (e: Exception) {
+ showErrorToast(e)
+ }
+ }
+
+ private fun createWebPrintJob(webView: WebView) {
+ val jobName = mCurrentNote.title
+ val printAdapter = webView.createPrintDocumentAdapter(jobName)
- private fun getCurrentNoteText() = getPagerAdapter().getCurrentNoteViewText(view_pager.currentItem)
+ (getSystemService(Context.PRINT_SERVICE) as? PrintManager)?.apply {
+ try {
+ print(jobName, printAdapter, PrintAttributes.Builder().build())
+ } catch (e: IllegalStateException) {
+ showErrorToast(e)
+ }
+ }
+ }
- private fun addTextToCurrentNote(text: String) = getPagerAdapter().appendText(view_pager.currentItem, text)
+ private fun getPagerAdapter() = binding.viewPager.adapter as NotesPagerAdapter
+
+ private fun getCurrentNoteText() = getPagerAdapter().getCurrentNoteViewText(binding.viewPager.currentItem)
+
+ private fun getCurrentNoteValue(): String {
+ return if (mCurrentNote.type == NoteType.TYPE_TEXT) {
+ getCurrentNoteText() ?: ""
+ } else {
+ getPagerAdapter().getNoteChecklistItems(binding.viewPager.currentItem) ?: ""
+ }
+ }
+
+ private fun getPrintableText(): String {
+ return if (mCurrentNote.type == NoteType.TYPE_TEXT) {
+ getCurrentNoteText() ?: ""
+ } else {
+ var printableText = ""
+ getPagerAdapter().getNoteChecklistRawItems(binding.viewPager.currentItem)?.forEach {
+ printableText += "${it.title}\n\n"
+ }
+ printableText
+ }
+ }
+
+ private fun addTextToCurrentNote(text: String) = getPagerAdapter().appendText(binding.viewPager.currentItem, text)
private fun saveCurrentNote(force: Boolean) {
- getPagerAdapter().saveCurrentNote(view_pager.currentItem, force)
- if (mCurrentNote.type == NoteType.TYPE_CHECKLIST.value) {
- mCurrentNote.value = getPagerAdapter().getNoteChecklistItems(view_pager.currentItem) ?: ""
+ getPagerAdapter().saveCurrentNote(binding.viewPager.currentItem, force)
+ if (mCurrentNote.type == NoteType.TYPE_CHECKLIST) {
+ mCurrentNote.value = getPagerAdapter().getNoteChecklistItems(binding.viewPager.currentItem) ?: ""
}
}
@@ -653,17 +1094,21 @@ class MainActivity : SimpleActivity() {
private fun doDeleteNote(note: Note, deleteFile: Boolean) {
ensureBackgroundThread {
+ val currentNoteIndex = mNotes.indexOf(note)
+ val noteToRefresh = mNotes[if (currentNoteIndex > 0) currentNoteIndex - 1 else currentNoteIndex + 1]
+
notesDB.deleteNote(note)
widgetsDB.deleteNoteWidgets(note.id!!)
- refreshNotes(note, deleteFile)
+
+ refreshNotes(noteToRefresh, deleteFile)
}
}
private fun refreshNotes(note: Note, deleteFile: Boolean) {
NotesHelper(this).getNotes {
mNotes = it
- val firstNoteId = mNotes[0].id
- updateSelectedNote(firstNoteId!!)
+ val noteId = note.id
+ updateSelectedNote(noteId!!)
if (config.widgetNoteId == note.id) {
config.widgetNoteId = mCurrentNote.id!!
updateWidgets()
@@ -674,31 +1119,39 @@ class MainActivity : SimpleActivity() {
if (deleteFile) {
deleteFile(FileDirItem(note.path, note.title)) {
if (!it) {
- toast(R.string.unknown_error_occurred)
+ toast(com.simplemobiletools.commons.R.string.unknown_error_occurred)
}
}
}
+
+ if (it.size == 1 && config.showNotePicker) {
+ config.showNotePicker = false
+ }
}
}
private fun displayOpenNoteDialog() {
- OpenNoteDialog(this) {
- updateSelectedNote(it)
+ OpenNoteDialog(this) { noteId, newNote ->
+ if (newNote == null) {
+ updateSelectedNote(noteId)
+ } else {
+ addNewNote(newNote)
+ }
}
}
private fun saveNote() {
saveCurrentNote(true)
showSaveButton = false
- invalidateOptionsMenu()
+ refreshMenuItems()
}
private fun undo() {
- mAdapter?.undo(view_pager.currentItem)
+ mAdapter?.undo(binding.viewPager.currentItem)
}
private fun redo() {
- mAdapter?.redo(view_pager.currentItem)
+ mAdapter?.redo(binding.viewPager.currentItem)
}
private fun getNoteIndexWithId(id: Long): Int {
@@ -712,14 +1165,14 @@ class MainActivity : SimpleActivity() {
}
private fun shareText() {
- val text = if (mCurrentNote.type == NoteType.TYPE_TEXT.value) getCurrentNoteText() else mCurrentNote.value
- if (text == null || text.isEmpty()) {
+ val text = if (mCurrentNote.type == NoteType.TYPE_TEXT) getCurrentNoteText() else mCurrentNote.value
+ if (text.isNullOrEmpty()) {
toast(R.string.cannot_share_empty_text)
return
}
val res = resources
- val shareTitle = res.getString(R.string.share_via)
+ val shareTitle = res.getString(com.simplemobiletools.commons.R.string.share_via)
Intent().apply {
action = Intent.ACTION_SEND
putExtra(Intent.EXTRA_SUBJECT, mCurrentNote.title)
@@ -729,27 +1182,89 @@ class MainActivity : SimpleActivity() {
}
}
- fun currentNoteTextChanged(newText: String, showUndo: Boolean, showRedo: Boolean) {
- var shouldRecreateMenu = false
- if (showUndo != showUndoButton) {
- showUndoButton = showUndo
- shouldRecreateMenu = true
+ @SuppressLint("NewApi")
+ private fun createShortcut() {
+ val manager = getSystemService(ShortcutManager::class.java)
+ if (manager.isRequestPinShortcutSupported) {
+ val note = mCurrentNote
+ val drawable = resources.getDrawable(R.drawable.shortcut_note).mutate()
+ val appIconColor = baseConfig.appIconColor
+ (drawable as LayerDrawable).findDrawableByLayerId(R.id.shortcut_plus_background).applyColorFilter(appIconColor)
+
+ val intent = Intent(this, SplashActivity::class.java)
+ intent.action = Intent.ACTION_VIEW
+ intent.putExtra(OPEN_NOTE_ID, note.id)
+ intent.flags = intent.flags or Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NO_HISTORY
+
+ val shortcut = ShortcutInfo.Builder(this, note.hashCode().toString())
+ .setShortLabel(mCurrentNote.title)
+ .setIcon(Icon.createWithBitmap(drawable.convertToBitmap()))
+ .setIntent(intent)
+ .build()
+
+ manager.requestPinShortcut(shortcut, null)
}
+ }
- if (showRedo != showRedoButton) {
- showRedoButton = showRedo
- shouldRecreateMenu = true
+ private fun lockNote() {
+ ConfirmationDialog(this, "", R.string.locking_warning, com.simplemobiletools.commons.R.string.ok, com.simplemobiletools.commons.R.string.cancel) {
+ SecurityDialog(this, "", SHOW_ALL_TABS) { hash, type, success ->
+ if (success) {
+ mCurrentNote.protectionHash = hash
+ mCurrentNote.protectionType = type
+ NotesHelper(this).insertOrUpdateNote(mCurrentNote) {
+ refreshMenuItems()
+ }
+ }
+ }
}
+ }
- if (!config.autosaveNotes) {
- showSaveButton = newText != mCurrentNote.value
- if (showSaveButton != saveNoteButton?.isVisible) {
- shouldRecreateMenu = true
+ private fun unlockNote() {
+ performSecurityCheck(
+ protectionType = mCurrentNote.protectionType,
+ requiredHash = mCurrentNote.protectionHash,
+ successCallback = { _, _ -> removeProtection(mCurrentNote) }
+ )
+ }
+
+ private fun removeProtection(note: Note) {
+ note.protectionHash = ""
+ note.protectionType = PROTECTION_NONE
+ NotesHelper(this).insertOrUpdateNote(note) {
+ if (note == mCurrentNote) {
+ getCurrentFragment()?.apply {
+ shouldShowLockedContent = true
+ checkLockState()
+ }
+ refreshMenuItems()
}
}
+ }
- if (shouldRecreateMenu) {
- invalidateOptionsMenu()
+ fun currentNoteTextChanged(newText: String, showUndo: Boolean, showRedo: Boolean) {
+ if (!isSearchActive) {
+ var shouldRecreateMenu = false
+ if (showUndo != showUndoButton) {
+ showUndoButton = showUndo
+ shouldRecreateMenu = true
+ }
+
+ if (showRedo != showRedoButton) {
+ showRedoButton = showRedo
+ shouldRecreateMenu = true
+ }
+
+ if (!config.autosaveNotes) {
+ showSaveButton = newText != mCurrentNote.value
+ if (showSaveButton != saveNoteButton?.isVisible) {
+ shouldRecreateMenu = true
+ }
+ }
+
+ if (shouldRecreateMenu) {
+ refreshMenuItems()
+ }
}
}
@@ -766,7 +1281,20 @@ class MainActivity : SimpleActivity() {
add(Release(62, R.string.release_62))
add(Release(64, R.string.release_64))
add(Release(67, R.string.release_67))
+ add(Release(81, R.string.release_81))
+ add(Release(86, R.string.release_86))
checkWhatsNew(this, BuildConfig.VERSION_CODE)
}
}
+
+ private fun removeDoneItems() {
+ getPagerAdapter().removeDoneCheckListItems(binding.viewPager.currentItem)
+ }
+
+ private fun displaySortChecklistDialog() {
+ SortChecklistDialog(this) {
+ getPagerAdapter().refreshChecklist(binding.viewPager.currentItem)
+ updateWidgets()
+ }
+ }
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt
index 5c8b69d62..11ed19aa7 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt
@@ -1,39 +1,56 @@
package com.simplemobiletools.notes.pro.activities
import android.content.Intent
+import android.net.Uri
import android.os.Bundle
import android.view.Menu
+import androidx.activity.result.contract.ActivityResultContracts
+import androidx.core.text.TextUtilsCompat
+import androidx.core.view.ViewCompat
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.notes.pro.R
-import com.simplemobiletools.notes.pro.extensions.config
-import com.simplemobiletools.notes.pro.extensions.updateWidgets
-import com.simplemobiletools.notes.pro.extensions.widgetsDB
+import com.simplemobiletools.notes.pro.databinding.ActivitySettingsBinding
+import com.simplemobiletools.notes.pro.dialogs.ExportNotesDialog
+import com.simplemobiletools.notes.pro.dialogs.ManageAutoBackupsDialog
+import com.simplemobiletools.notes.pro.extensions.*
import com.simplemobiletools.notes.pro.helpers.*
+import com.simplemobiletools.notes.pro.models.Note
import com.simplemobiletools.notes.pro.models.Widget
-import kotlinx.android.synthetic.main.activity_settings.*
-import java.util.*
+import kotlinx.serialization.SerializationException
+import kotlinx.serialization.encodeToString
+import kotlinx.serialization.json.Json
+import java.util.Locale
+import kotlin.system.exitProcess
class SettingsActivity : SimpleActivity() {
+ private val notesFileType = "application/json"
+ private val binding by viewBinding(ActivitySettingsBinding::inflate)
+
override fun onCreate(savedInstanceState: Bundle?) {
+ isMaterialActivity = true
super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_settings)
+ setContentView(binding.root)
+
+ updateMaterialActivityViews(binding.settingsCoordinator, binding.settingsHolder, useTransparentNavigation = true, useTopSearchMenu = false)
+ setupMaterialScrollListener(binding.settingsNestedScrollview, binding.settingsToolbar)
}
override fun onResume() {
super.onResume()
+ setupToolbar(binding.settingsToolbar, NavigationIcon.Arrow)
setupCustomizeColors()
setupUseEnglish()
+ setupLanguage()
setupAutosaveNotes()
setupDisplaySuccess()
setupClickableLinks()
setupMonospacedFont()
setupShowKeyboard()
setupShowNotePicker()
- setupMoveUndoneChecklistItems()
setupShowWordCount()
setupEnableLineWrap()
setupFontSize()
@@ -41,9 +58,23 @@ class SettingsActivity : SimpleActivity() {
setupCursorPlacement()
setupIncognitoMode()
setupCustomizeWidgetColors()
- updateTextColors(settings_scrollview)
- setupSectionColors()
- invalidateOptionsMenu()
+ setupNotesExport()
+ setupNotesImport()
+ setupEnableAutomaticBackups()
+ setupManageAutomaticBackups()
+ updateTextColors(binding.settingsNestedScrollview)
+
+ arrayOf(
+ binding.settingsColorCustomizationSectionLabel,
+ binding.settingsGeneralSettingsLabel,
+ binding.settingsTextLabel,
+ binding.settingsStartupLabel,
+ binding.settingsSavingLabel,
+ binding.settingsMigratingLabel,
+ binding.settingsBackupsLabel,
+ ).forEach {
+ it.setTextColor(getProperPrimaryColor())
+ }
}
override fun onCreateOptionsMenu(menu: Menu): Boolean {
@@ -51,156 +82,189 @@ class SettingsActivity : SimpleActivity() {
return super.onCreateOptionsMenu(menu)
}
- private fun setupSectionColors() {
- val adjustedPrimaryColor = getAdjustedPrimaryColor()
- arrayListOf(text_label, startup_label, saving_label, widgets_label).forEach {
- it.setTextColor(adjustedPrimaryColor)
+ private val getContent = registerForActivityResult(ActivityResultContracts.GetContent()) { uri ->
+ if (uri != null) {
+ toast(com.simplemobiletools.commons.R.string.importing)
+ importNotes(uri)
+ }
+ }
+
+ private val saveDocument = registerForActivityResult(ActivityResultContracts.CreateDocument(notesFileType)) { uri ->
+ if (uri != null) {
+ toast(com.simplemobiletools.commons.R.string.exporting)
+ NotesHelper(this).getNotes { notes ->
+ requestUnlockNotes(notes) { unlockedNotes ->
+ val notLockedNotes = notes.filterNot { it.isLocked() }
+ val notesToExport = unlockedNotes + notLockedNotes
+ exportNotes(notesToExport, uri)
+ }
+ }
}
}
private fun setupCustomizeColors() {
- settings_customize_colors_holder.setOnClickListener {
+ binding.settingsColorCustomizationHolder.setOnClickListener {
startCustomizationActivity()
}
}
private fun setupUseEnglish() {
- settings_use_english_holder.beVisibleIf(config.wasUseEnglishToggled || Locale.getDefault().language != "en")
- settings_use_english.isChecked = config.useEnglish
- settings_use_english_holder.setOnClickListener {
- settings_use_english.toggle()
- config.useEnglish = settings_use_english.isChecked
- System.exit(0)
+ binding.settingsUseEnglishHolder.beVisibleIf((config.wasUseEnglishToggled || Locale.getDefault().language != "en") && !isTiramisuPlus())
+ binding.settingsUseEnglish.isChecked = config.useEnglish
+ binding.settingsUseEnglishHolder.setOnClickListener {
+ binding.settingsUseEnglish.toggle()
+ config.useEnglish = binding.settingsUseEnglish.isChecked
+ exitProcess(0)
+ }
+ }
+
+ private fun setupLanguage() {
+ binding.settingsLanguage.text = Locale.getDefault().displayLanguage
+ binding.settingsLanguageHolder.beVisibleIf(isTiramisuPlus())
+ binding.settingsLanguageHolder.setOnClickListener {
+ launchChangeAppLanguageIntent()
}
}
private fun setupAutosaveNotes() {
- settings_autosave_notes.isChecked = config.autosaveNotes
- settings_autosave_notes_holder.setOnClickListener {
- settings_autosave_notes.toggle()
- config.autosaveNotes = settings_autosave_notes.isChecked
+ binding.settingsAutosaveNotes.isChecked = config.autosaveNotes
+ binding.settingsAutosaveNotesHolder.setOnClickListener {
+ binding.settingsAutosaveNotes.toggle()
+ config.autosaveNotes = binding.settingsAutosaveNotes.isChecked
}
}
private fun setupDisplaySuccess() {
- settings_display_success.isChecked = config.displaySuccess
- settings_display_success_holder.setOnClickListener {
- settings_display_success.toggle()
- config.displaySuccess = settings_display_success.isChecked
+ binding.settingsDisplaySuccess.isChecked = config.displaySuccess
+ binding.settingsDisplaySuccessHolder.setOnClickListener {
+ binding.settingsDisplaySuccess.toggle()
+ config.displaySuccess = binding.settingsDisplaySuccess.isChecked
}
}
private fun setupClickableLinks() {
- settings_clickable_links.isChecked = config.clickableLinks
- settings_clickable_links_holder.setOnClickListener {
- settings_clickable_links.toggle()
- config.clickableLinks = settings_clickable_links.isChecked
+ binding.settingsClickableLinks.isChecked = config.clickableLinks
+ binding.settingsClickableLinksHolder.setOnClickListener {
+ binding.settingsClickableLinks.toggle()
+ config.clickableLinks = binding.settingsClickableLinks.isChecked
}
}
private fun setupMonospacedFont() {
- settings_monospaced_font.isChecked = config.monospacedFont
- settings_monospaced_font_holder.setOnClickListener {
- settings_monospaced_font.toggle()
- config.monospacedFont = settings_monospaced_font.isChecked
+ binding.settingsMonospacedFont.isChecked = config.monospacedFont
+ binding.settingsMonospacedFontHolder.setOnClickListener {
+ binding.settingsMonospacedFont.toggle()
+ config.monospacedFont = binding.settingsMonospacedFont.isChecked
+ updateWidgets()
}
}
private fun setupShowKeyboard() {
- settings_show_keyboard.isChecked = config.showKeyboard
- settings_show_keyboard_holder.setOnClickListener {
- settings_show_keyboard.toggle()
- config.showKeyboard = settings_show_keyboard.isChecked
+ binding.settingsShowKeyboard.isChecked = config.showKeyboard
+ binding.settingsShowKeyboardHolder.setOnClickListener {
+ binding.settingsShowKeyboard.toggle()
+ config.showKeyboard = binding.settingsShowKeyboard.isChecked
}
}
private fun setupShowNotePicker() {
NotesHelper(this).getNotes {
- settings_show_note_picker_holder.beVisibleIf(it.size > 1)
+ binding.settingsShowNotePickerHolder.beVisibleIf(it.size > 1)
}
- settings_show_note_picker.isChecked = config.showNotePicker
- settings_show_note_picker_holder.setOnClickListener {
- settings_show_note_picker.toggle()
- config.showNotePicker = settings_show_note_picker.isChecked
- }
- }
-
- private fun setupMoveUndoneChecklistItems() {
- settings_move_undone_checklist_items.isChecked = config.moveUndoneChecklistItems
- settings_move_undone_checklist_items_holder.setOnClickListener {
- settings_move_undone_checklist_items.toggle()
- config.moveUndoneChecklistItems = settings_move_undone_checklist_items.isChecked
+ binding.settingsShowNotePicker.isChecked = config.showNotePicker
+ binding.settingsShowNotePickerHolder.setOnClickListener {
+ binding.settingsShowNotePicker.toggle()
+ config.showNotePicker = binding.settingsShowNotePicker.isChecked
}
}
private fun setupShowWordCount() {
- settings_show_word_count.isChecked = config.showWordCount
- settings_show_word_count_holder.setOnClickListener {
- settings_show_word_count.toggle()
- config.showWordCount = settings_show_word_count.isChecked
+ binding.settingsShowWordCount.isChecked = config.showWordCount
+ binding.settingsShowWordCountHolder.setOnClickListener {
+ binding.settingsShowWordCount.toggle()
+ config.showWordCount = binding.settingsShowWordCount.isChecked
}
}
private fun setupEnableLineWrap() {
- settings_enable_line_wrap.isChecked = config.enableLineWrap
- settings_enable_line_wrap_holder.setOnClickListener {
- settings_enable_line_wrap.toggle()
- config.enableLineWrap = settings_enable_line_wrap.isChecked
+ binding.settingsEnableLineWrap.isChecked = config.enableLineWrap
+ binding.settingsEnableLineWrapHolder.setOnClickListener {
+ binding.settingsEnableLineWrap.toggle()
+ config.enableLineWrap = binding.settingsEnableLineWrap.isChecked
}
}
private fun setupFontSize() {
- settings_font_size.text = getFontSizeText()
- settings_font_size_holder.setOnClickListener {
+ binding.settingsFontSize.text = getFontSizePercentText(config.fontSizePercentage)
+ binding.settingsFontSizeHolder.setOnClickListener {
val items = arrayListOf(
- RadioItem(FONT_SIZE_SMALL, getString(R.string.small)),
- RadioItem(FONT_SIZE_MEDIUM, getString(R.string.medium)),
- RadioItem(FONT_SIZE_LARGE, getString(R.string.large)),
- RadioItem(FONT_SIZE_EXTRA_LARGE, getString(R.string.extra_large)))
-
- RadioGroupDialog(this@SettingsActivity, items, config.fontSize) {
- config.fontSize = it as Int
- settings_font_size.text = getFontSizeText()
+ RadioItem(FONT_SIZE_50_PERCENT, getFontSizePercentText(FONT_SIZE_50_PERCENT)),
+ RadioItem(FONT_SIZE_60_PERCENT, getFontSizePercentText(FONT_SIZE_60_PERCENT)),
+ RadioItem(FONT_SIZE_75_PERCENT, getFontSizePercentText(FONT_SIZE_75_PERCENT)),
+ RadioItem(FONT_SIZE_90_PERCENT, getFontSizePercentText(FONT_SIZE_90_PERCENT)),
+ RadioItem(FONT_SIZE_100_PERCENT, getFontSizePercentText(FONT_SIZE_100_PERCENT)),
+ RadioItem(FONT_SIZE_125_PERCENT, getFontSizePercentText(FONT_SIZE_125_PERCENT)),
+ RadioItem(FONT_SIZE_150_PERCENT, getFontSizePercentText(FONT_SIZE_150_PERCENT)),
+ RadioItem(FONT_SIZE_175_PERCENT, getFontSizePercentText(FONT_SIZE_175_PERCENT)),
+ RadioItem(FONT_SIZE_200_PERCENT, getFontSizePercentText(FONT_SIZE_200_PERCENT)),
+ RadioItem(FONT_SIZE_250_PERCENT, getFontSizePercentText(FONT_SIZE_250_PERCENT)),
+ RadioItem(FONT_SIZE_300_PERCENT, getFontSizePercentText(FONT_SIZE_300_PERCENT))
+ )
+
+ RadioGroupDialog(this@SettingsActivity, items, config.fontSizePercentage) {
+ config.fontSizePercentage = it as Int
+ binding.settingsFontSize.text = getFontSizePercentText(config.fontSizePercentage)
updateWidgets()
}
}
}
- private fun setupGravity() {
- settings_gravity.text = getGravityText()
- settings_gravity_holder.setOnClickListener {
- val items = arrayListOf(
- RadioItem(GRAVITY_LEFT, getString(R.string.left)),
- RadioItem(GRAVITY_CENTER, getString(R.string.center)),
- RadioItem(GRAVITY_RIGHT, getString(R.string.right)))
+ private fun getFontSizePercentText(fontSizePercentage: Int): String = "$fontSizePercentage%"
- RadioGroupDialog(this@SettingsActivity, items, config.gravity) {
+ private fun setupGravity() {
+ binding.settingsGravity.text = getGravityText()
+ binding.settingsGravityHolder.setOnClickListener {
+ val items = listOf(GRAVITY_START, GRAVITY_CENTER, GRAVITY_END).map { RadioItem(it, getGravityOptionLabel(it)) }
+ RadioGroupDialog(this@SettingsActivity, ArrayList(items), config.gravity) {
config.gravity = it as Int
- settings_gravity.text = getGravityText()
+ binding.settingsGravity.text = getGravityText()
updateWidgets()
}
}
}
- private fun getGravityText() = getString(when (config.gravity) {
- GRAVITY_LEFT -> R.string.left
- GRAVITY_CENTER -> R.string.center
- else -> R.string.right
- })
+ private fun getGravityOptionLabel(gravity: Int): String {
+ val leftToRightDirection = TextUtilsCompat.getLayoutDirectionFromLocale(Locale.getDefault()) == ViewCompat.LAYOUT_DIRECTION_LTR
+ val leftRightLabels = listOf(R.string.left, R.string.right)
+ val startEndLabels = if (leftToRightDirection) {
+ leftRightLabels
+ } else {
+ leftRightLabels.reversed()
+ }
+ return getString(
+ when (gravity) {
+ GRAVITY_START -> startEndLabels.first()
+ GRAVITY_CENTER -> R.string.center
+ else -> startEndLabels.last()
+ }
+ )
+ }
+
+ private fun getGravityText() = getGravityOptionLabel(config.gravity)
private fun setupCursorPlacement() {
- settings_cursor_placement.isChecked = config.placeCursorToEnd
- settings_cursor_placement_holder.setOnClickListener {
- settings_cursor_placement.toggle()
- config.placeCursorToEnd = settings_cursor_placement.isChecked
+ binding.settingsCursorPlacement.isChecked = config.placeCursorToEnd
+ binding.settingsCursorPlacementHolder.setOnClickListener {
+ binding.settingsCursorPlacement.toggle()
+ config.placeCursorToEnd = binding.settingsCursorPlacement.isChecked
}
}
private fun setupCustomizeWidgetColors() {
var widgetToCustomize: Widget? = null
- settings_customize_widget_colors_holder.setOnClickListener {
+ binding.settingsWidgetColorCustomizationHolder.setOnClickListener {
Intent(this, WidgetConfigureActivity::class.java).apply {
putExtra(IS_CUSTOMIZING_COLORS, true)
@@ -210,6 +274,7 @@ class SettingsActivity : SimpleActivity() {
putExtra(CUSTOMIZED_WIDGET_NOTE_ID, noteId)
putExtra(CUSTOMIZED_WIDGET_BG_COLOR, widgetBgColor)
putExtra(CUSTOMIZED_WIDGET_TEXT_COLOR, widgetTextColor)
+ putExtra(CUSTOMIZED_WIDGET_SHOW_TITLE, widgetShowTitle)
}
startActivity(this)
@@ -220,20 +285,114 @@ class SettingsActivity : SimpleActivity() {
val widgets = widgetsDB.getWidgets().filter { it.widgetId != 0 }
if (widgets.size == 1) {
widgetToCustomize = widgets.first()
- } else if (widgets.size > 1) {
- arrayListOf(widgets_divider, widgets_label, settings_customize_widget_colors_holder).forEach {
- it.beGone()
- }
}
}
}
private fun setupIncognitoMode() {
- settings_use_incognito_mode_holder.beVisibleIf(isOreoPlus())
- settings_use_incognito_mode.isChecked = config.useIncognitoMode
- settings_use_incognito_mode_holder.setOnClickListener {
- settings_use_incognito_mode.toggle()
- config.useIncognitoMode = settings_use_incognito_mode.isChecked
+ binding.settingsUseIncognitoModeHolder.beVisibleIf(isOreoPlus())
+ binding.settingsUseIncognitoMode.isChecked = config.useIncognitoMode
+ binding.settingsUseIncognitoModeHolder.setOnClickListener {
+ binding.settingsUseIncognitoMode.toggle()
+ config.useIncognitoMode = binding.settingsUseIncognitoMode.isChecked
+ }
+ }
+
+ private fun setupNotesExport() {
+ binding.settingsExportNotesHolder.setOnClickListener {
+ ExportNotesDialog(this) { filename ->
+ saveDocument.launch(filename)
+ }
+ }
+ }
+
+ private fun setupNotesImport() {
+ binding.settingsImportNotesHolder.setOnClickListener {
+ getContent.launch(notesFileType)
+ }
+ }
+
+ private fun exportNotes(notes: List, uri: Uri) {
+ if (notes.isEmpty()) {
+ toast(com.simplemobiletools.commons.R.string.no_entries_for_exporting)
+ } else {
+ try {
+ val outputStream = contentResolver.openOutputStream(uri)!!
+
+ val jsonString = Json.encodeToString(notes)
+ outputStream.use {
+ it.write(jsonString.toByteArray())
+ }
+ toast(com.simplemobiletools.commons.R.string.exporting_successful)
+ } catch (e: Exception) {
+ showErrorToast(e)
+ }
}
}
+
+ private fun importNotes(uri: Uri) {
+ try {
+ val jsonString = contentResolver.openInputStream(uri)!!.use { inputStream ->
+ inputStream.bufferedReader().readText()
+ }
+ val objects = Json.decodeFromString>(jsonString)
+ if (objects.isEmpty()) {
+ toast(com.simplemobiletools.commons.R.string.no_entries_for_importing)
+ return
+ }
+ NotesHelper(this).importNotes(this, objects) { importResult ->
+ when (importResult) {
+ NotesHelper.ImportResult.IMPORT_OK -> toast(com.simplemobiletools.commons.R.string.importing_successful)
+ NotesHelper.ImportResult.IMPORT_PARTIAL -> toast(com.simplemobiletools.commons.R.string.importing_some_entries_failed)
+ NotesHelper.ImportResult.IMPORT_NOTHING_NEW -> toast(com.simplemobiletools.commons.R.string.no_new_items)
+ else -> toast(com.simplemobiletools.commons.R.string.importing_failed)
+ }
+ }
+ } catch (_: SerializationException) {
+ toast(com.simplemobiletools.commons.R.string.invalid_file_format)
+ } catch (_: IllegalArgumentException) {
+ toast(com.simplemobiletools.commons.R.string.invalid_file_format)
+ } catch (e: Exception) {
+ showErrorToast(e)
+ }
+ }
+
+ private fun setupEnableAutomaticBackups() {
+ binding.settingsBackupsLabel.beVisibleIf(isRPlus())
+ binding.settingsEnableAutomaticBackupsHolder.beVisibleIf(isRPlus())
+ binding.settingsEnableAutomaticBackups.isChecked = config.autoBackup
+ binding.settingsEnableAutomaticBackupsHolder.setOnClickListener {
+ val wasBackupDisabled = !config.autoBackup
+ if (wasBackupDisabled) {
+ ManageAutoBackupsDialog(
+ activity = this,
+ onSuccess = {
+ enableOrDisableAutomaticBackups(true)
+ scheduleNextAutomaticBackup()
+ }
+ )
+ } else {
+ cancelScheduledAutomaticBackup()
+ enableOrDisableAutomaticBackups(false)
+ }
+ }
+ }
+
+ private fun setupManageAutomaticBackups() {
+ binding.settingsManageAutomaticBackupsHolder.beVisibleIf(isRPlus() && config.autoBackup)
+ binding.settingsManageAutomaticBackupsHolder.setOnClickListener {
+ ManageAutoBackupsDialog(
+ activity = this,
+ onSuccess = {
+ scheduleNextAutomaticBackup()
+ }
+ )
+ }
+ }
+
+ private fun enableOrDisableAutomaticBackups(enable: Boolean) {
+ config.autoBackup = enable
+ binding.settingsEnableAutomaticBackups.isChecked = enable
+ binding.settingsManageAutomaticBackupsHolder.beVisibleIf(enable)
+ }
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt
index 079a42965..fe58a85db 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt
@@ -3,11 +3,12 @@ package com.simplemobiletools.notes.pro.activities
import android.app.Activity
import android.appwidget.AppWidgetManager
import android.content.Intent
+import android.content.res.ColorStateList
import android.graphics.Color
+import android.graphics.Typeface
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.util.TypedValue
-import android.view.Menu
import android.widget.RemoteViews
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
@@ -15,17 +16,20 @@ import com.simplemobiletools.commons.dialogs.ColorPickerDialog
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.IS_CUSTOMIZING_COLORS
+import com.simplemobiletools.commons.helpers.PROTECTION_NONE
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.adapters.ChecklistAdapter
+import com.simplemobiletools.notes.pro.databinding.WidgetConfigBinding
import com.simplemobiletools.notes.pro.extensions.config
+import com.simplemobiletools.notes.pro.extensions.getPercentageFontSize
import com.simplemobiletools.notes.pro.extensions.widgetsDB
import com.simplemobiletools.notes.pro.helpers.*
import com.simplemobiletools.notes.pro.models.ChecklistItem
import com.simplemobiletools.notes.pro.models.Note
+import com.simplemobiletools.notes.pro.models.NoteType
import com.simplemobiletools.notes.pro.models.Widget
-import kotlinx.android.synthetic.main.widget_config.*
class WidgetConfigureActivity : SimpleActivity() {
private var mBgAlpha = 0f
@@ -35,13 +39,15 @@ class WidgetConfigureActivity : SimpleActivity() {
private var mTextColor = 0
private var mCurrentNoteId = 0L
private var mIsCustomizingColors = false
- private var mNotes = ArrayList()
+ private var mShowTitle = false
+ private var mNotes = listOf()
+ private val binding by viewBinding(WidgetConfigBinding::inflate)
public override fun onCreate(savedInstanceState: Bundle?) {
useDynamicTheme = false
super.onCreate(savedInstanceState)
setResult(RESULT_CANCELED)
- setContentView(R.layout.widget_config)
+ setContentView(binding.root)
initVariables()
mWidgetId = intent.extras?.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID) ?: AppWidgetManager.INVALID_APPWIDGET_ID
@@ -50,43 +56,46 @@ class WidgetConfigureActivity : SimpleActivity() {
finish()
}
- updateTextColors(notes_picker_holder)
- config_save.setOnClickListener { saveConfig() }
- config_bg_color.setOnClickListener { pickBackgroundColor() }
- config_text_color.setOnClickListener { pickTextColor() }
- notes_picker_value.setOnClickListener { showNoteSelector() }
- notes_picker_holder.background = ColorDrawable(config.backgroundColor)
+ updateTextColors(binding.notesPickerHolder)
+ binding.configSave.setOnClickListener { saveConfig() }
+ binding.configBgColor.setOnClickListener { pickBackgroundColor() }
+ binding.configTextColor.setOnClickListener { pickTextColor() }
+ binding.notesPickerValue.setOnClickListener { showNoteSelector() }
+
+ val primaryColor = getProperPrimaryColor()
+ binding.configBgSeekbar.setColors(mTextColor, primaryColor, primaryColor)
+ binding.notesPickerHolder.background = ColorDrawable(getProperBackgroundColor())
+
+ binding.showNoteTitleHolder.setOnClickListener {
+ binding.showNoteTitle.toggle()
+ handleNoteTitleDisplay()
+ }
}
override fun onResume() {
super.onResume()
- text_note_view.setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize())
- }
-
- override fun onCreateOptionsMenu(menu: Menu): Boolean {
- updateMenuItemColors(menu)
- return super.onCreateOptionsMenu(menu)
+ binding.textNoteView.setTextSize(TypedValue.COMPLEX_UNIT_PX, getPercentageFontSize())
}
private fun initVariables() {
val extras = intent.extras
- if (extras?.getLong(CUSTOMIZED_WIDGET_ID, 0L) == 0L) {
+ if (extras?.getInt(CUSTOMIZED_WIDGET_ID, 0) == 0) {
mBgColor = config.widgetBgColor
mTextColor = config.widgetTextColor
} else {
mBgColor = extras?.getInt(CUSTOMIZED_WIDGET_BG_COLOR) ?: config.widgetBgColor
mTextColor = extras?.getInt(CUSTOMIZED_WIDGET_TEXT_COLOR) ?: config.widgetTextColor
+ mShowTitle = extras?.getBoolean(CUSTOMIZED_WIDGET_SHOW_TITLE) ?: false
}
- if (mBgColor == 1) {
- mBgColor = Color.BLACK
- mBgAlpha = .2f
- } else {
- mBgAlpha = Color.alpha(mBgColor) / 255f
+ if (mTextColor == resources.getColor(com.simplemobiletools.commons.R.color.default_widget_text_color) && config.isUsingSystemTheme) {
+ mTextColor = resources.getColor(com.simplemobiletools.commons.R.color.you_primary_color, theme)
}
+ mBgAlpha = Color.alpha(mBgColor) / 255.toFloat()
+
mBgColorWithoutTransparency = Color.rgb(Color.red(mBgColor), Color.green(mBgColor), Color.blue(mBgColor))
- config_bg_seekbar.apply {
+ binding.configBgSeekbar.apply {
progress = (mBgAlpha * 100).toInt()
onSeekBarChangeListener {
@@ -98,12 +107,29 @@ class WidgetConfigureActivity : SimpleActivity() {
updateTextColor()
mIsCustomizingColors = extras?.getBoolean(IS_CUSTOMIZING_COLORS) ?: false
- notes_picker_holder.beVisibleIf(!mIsCustomizingColors)
+ binding.notesPickerHolder.beVisibleIf(!mIsCustomizingColors)
+ binding.textNoteViewTitle.beGoneIf(!mShowTitle)
NotesHelper(this).getNotes {
mNotes = it
- notes_picker_holder.beVisibleIf(mNotes.size > 1 && !mIsCustomizingColors)
- updateCurrentNote(mNotes.first())
+ binding.notesPickerHolder.beVisibleIf(mNotes.size > 1 && !mIsCustomizingColors)
+ var note = mNotes.firstOrNull { !it.isLocked() }
+
+ if (mNotes.size == 1 && note == null) {
+ note = mNotes.first()
+ if (note.shouldBeUnlocked(this)) {
+ updateCurrentNote(note)
+ } else {
+ performSecurityCheck(
+ protectionType = note.protectionType,
+ requiredHash = note.protectionHash,
+ successCallback = { _, _ -> updateCurrentNote(note) },
+ failureCallback = { finish() }
+ )
+ }
+ } else if (note != null) {
+ updateCurrentNote(note)
+ }
}
}
@@ -115,51 +141,67 @@ class WidgetConfigureActivity : SimpleActivity() {
RadioGroupDialog(this, items, mCurrentNoteId.toInt()) {
val selectedId = it as Int
- updateCurrentNote(mNotes.first { it.id!!.toInt() == selectedId })
+ val note = mNotes.firstOrNull { it.id!!.toInt() == selectedId } ?: return@RadioGroupDialog
+ if (note.protectionType == PROTECTION_NONE || note.shouldBeUnlocked(this)) {
+ updateCurrentNote(note)
+ } else {
+ performSecurityCheck(
+ protectionType = note.protectionType,
+ requiredHash = note.protectionHash,
+ successCallback = { _, _ -> updateCurrentNote(note) }
+ )
+ }
}
}
private fun updateCurrentNote(note: Note) {
mCurrentNoteId = note.id!!
- notes_picker_value.text = note.title
- if (note.type == NoteType.TYPE_CHECKLIST.value) {
+ binding.notesPickerValue.text = note.title
+ binding.textNoteViewTitle.text = note.title
+ if (note.type == NoteType.TYPE_CHECKLIST) {
val checklistItemType = object : TypeToken>() {}.type
val items = Gson().fromJson>(note.value, checklistItemType) ?: ArrayList(1)
items.apply {
if (isEmpty()) {
- add(ChecklistItem(0, "Milk", true))
- add(ChecklistItem(1, "Butter", true))
- add(ChecklistItem(2, "Salt", false))
- add(ChecklistItem(3, "Water", false))
- add(ChecklistItem(4, "Meat", true))
+ add(ChecklistItem(0, System.currentTimeMillis(), "Milk", true))
+ add(ChecklistItem(1, System.currentTimeMillis(), "Butter", true))
+ add(ChecklistItem(2, System.currentTimeMillis(), "Salt", false))
+ add(ChecklistItem(3, System.currentTimeMillis(), "Water", false))
+ add(ChecklistItem(4, System.currentTimeMillis(), "Meat", true))
}
}
- ChecklistAdapter(this, items, null, checklist_note_view, false) {}.apply {
+ ChecklistAdapter(this, items, null, binding.checklistNoteView, false) {}.apply {
updateTextColor(mTextColor)
- checklist_note_view.adapter = this
+ binding.checklistNoteView.adapter = this
}
- text_note_view.beGone()
- checklist_note_view.beVisible()
+ binding.textNoteView.beGone()
+ binding.checklistNoteView.beVisible()
} else {
val sampleValue = if (note.value.isEmpty() || mIsCustomizingColors) getString(R.string.widget_config) else note.value
- text_note_view.text = sampleValue
- text_note_view.beVisible()
- checklist_note_view.beGone()
+ binding.textNoteView.text = sampleValue
+ binding.textNoteView.typeface = if (config.monospacedFont) Typeface.MONOSPACE else Typeface.DEFAULT
+ binding.textNoteView.beVisible()
+ binding.checklistNoteView.beGone()
}
}
private fun saveConfig() {
+ if (mCurrentNoteId == 0L) {
+ finish()
+ return
+ }
+
val views = RemoteViews(packageName, R.layout.activity_main)
views.setBackgroundColor(R.id.text_note_view, mBgColor)
views.setBackgroundColor(R.id.checklist_note_view, mBgColor)
- AppWidgetManager.getInstance(this).updateAppWidget(mWidgetId, views)
+ AppWidgetManager.getInstance(this)?.updateAppWidget(mWidgetId, views) ?: return
val extras = intent.extras
val id = if (extras?.containsKey(CUSTOMIZED_WIDGET_KEY_ID) == true) extras.getLong(CUSTOMIZED_WIDGET_KEY_ID) else null
mWidgetId = extras?.getInt(CUSTOMIZED_WIDGET_ID, mWidgetId) ?: mWidgetId
mCurrentNoteId = extras?.getLong(CUSTOMIZED_WIDGET_NOTE_ID, mCurrentNoteId) ?: mCurrentNoteId
- val widget = Widget(id, mWidgetId, mCurrentNoteId, mBgColor, mTextColor)
+ val widget = Widget(id, mWidgetId, mCurrentNoteId, mBgColor, mTextColor, mShowTitle)
ensureBackgroundThread {
widgetsDB.insertOrUpdate(widget)
}
@@ -190,17 +232,19 @@ class WidgetConfigureActivity : SimpleActivity() {
private fun updateBackgroundColor() {
mBgColor = mBgColorWithoutTransparency.adjustAlpha(mBgAlpha)
- text_note_view.setBackgroundColor(mBgColor)
- checklist_note_view.setBackgroundColor(mBgColor)
- config_save.setBackgroundColor(mBgColor)
- config_bg_color.setFillWithStroke(mBgColor, Color.BLACK)
+ binding.textNoteView.setBackgroundColor(mBgColor)
+ binding.checklistNoteView.setBackgroundColor(mBgColor)
+ binding.textNoteViewTitle.setBackgroundColor(mBgColor)
+ binding.configBgColor.setFillWithStroke(mBgColor, mBgColor)
+ binding.configSave.backgroundTintList = ColorStateList.valueOf(getProperPrimaryColor())
}
private fun updateTextColor() {
- config_save.setTextColor(mTextColor)
- text_note_view.setTextColor(mTextColor)
- (checklist_note_view.adapter as? ChecklistAdapter)?.updateTextColor(mTextColor)
- config_text_color.setFillWithStroke(mTextColor, Color.BLACK)
+ binding.textNoteView.setTextColor(mTextColor)
+ binding.textNoteViewTitle.setTextColor(mTextColor)
+ (binding.checklistNoteView.adapter as? ChecklistAdapter)?.updateTextColor(mTextColor)
+ binding.configTextColor.setFillWithStroke(mTextColor, mTextColor)
+ binding.configSave.setTextColor(getProperPrimaryColor().getContrastColor())
}
private fun pickBackgroundColor() {
@@ -220,4 +264,10 @@ class WidgetConfigureActivity : SimpleActivity() {
}
}
}
+
+ private fun handleNoteTitleDisplay() {
+ val showTitle = binding.showNoteTitle.isChecked
+ binding.textNoteViewTitle.beGoneIf(!showTitle)
+ mShowTitle = showTitle
+ }
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/ChecklistAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/ChecklistAdapter.kt
index a8ad8b323..0c7193a33 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/ChecklistAdapter.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/ChecklistAdapter.kt
@@ -14,23 +14,27 @@ import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
import com.simplemobiletools.commons.extensions.applyColorFilter
import com.simplemobiletools.commons.extensions.beVisibleIf
import com.simplemobiletools.commons.extensions.getColoredDrawableWithColor
-import com.simplemobiletools.commons.extensions.getTextSize
+import com.simplemobiletools.commons.extensions.removeBit
+import com.simplemobiletools.commons.helpers.SORT_BY_CUSTOM
+import com.simplemobiletools.commons.interfaces.ItemMoveCallback
+import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
+import com.simplemobiletools.commons.interfaces.StartReorderDragListener
import com.simplemobiletools.commons.views.MyRecyclerView
import com.simplemobiletools.notes.pro.R
+import com.simplemobiletools.notes.pro.databinding.ItemChecklistBinding
import com.simplemobiletools.notes.pro.dialogs.RenameChecklistItemDialog
import com.simplemobiletools.notes.pro.extensions.config
+import com.simplemobiletools.notes.pro.extensions.getPercentageFontSize
import com.simplemobiletools.notes.pro.helpers.DONE_CHECKLIST_ITEM_ALPHA
import com.simplemobiletools.notes.pro.interfaces.ChecklistItemsListener
-import com.simplemobiletools.notes.pro.interfaces.ItemMoveCallback
-import com.simplemobiletools.notes.pro.interfaces.ItemTouchHelperContract
-import com.simplemobiletools.notes.pro.interfaces.StartReorderDragListener
import com.simplemobiletools.notes.pro.models.ChecklistItem
-import kotlinx.android.synthetic.main.item_checklist.view.*
-import java.util.*
+import java.util.Collections
-class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList, val listener: ChecklistItemsListener?,
- recyclerView: MyRecyclerView, val showIcons: Boolean, itemClick: (Any) -> Unit) :
- MyRecyclerViewAdapter(activity, recyclerView, null, itemClick), ItemTouchHelperContract {
+class ChecklistAdapter(
+ activity: BaseSimpleActivity, var items: MutableList, val listener: ChecklistItemsListener?,
+ recyclerView: MyRecyclerView, val showIcons: Boolean, itemClick: (Any) -> Unit
+) :
+ MyRecyclerViewAdapter(activity, recyclerView, itemClick), ItemTouchHelperContract {
private lateinit var crossDrawable: Drawable
private lateinit var checkDrawable: Drawable
@@ -59,6 +63,8 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList moveSelectedItemsToTop()
+ R.id.cab_move_to_bottom -> moveSelectedItemsToBottom()
R.id.cab_rename -> renameChecklistItem()
R.id.cab_delete -> deleteSelection()
}
@@ -72,13 +78,9 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList()
+ selectedKeys.reversed().forEach { checklistId ->
+ val position = items.indexOfFirst { it.id == checklistId }
+ val tempItem = items[position]
+ items.removeAt(position)
+ movedPositions.add(position)
+ items.add(0, tempItem)
+ }
+
+ movedPositions.forEach {
+ notifyItemMoved(it, 0)
+ }
listener?.saveChecklist()
- if (items.isEmpty()) {
- listener?.refreshItems()
+ }
+
+ private fun moveSelectedItemsToBottom() {
+ activity.config.sorting = SORT_BY_CUSTOM
+ val movedPositions = mutableListOf()
+ selectedKeys.forEach { checklistId ->
+ val position = items.indexOfFirst { it.id == checklistId }
+ val tempItem = items[position]
+ items.removeAt(position)
+ movedPositions.add(position)
+ items.add(items.size, tempItem)
}
+
+ movedPositions.forEach {
+ notifyItemMoved(it, items.size - 1)
+ }
+ listener?.saveChecklist()
}
private fun getItemWithKey(key: Int): ChecklistItem? = items.firstOrNull { it.id == key }
@@ -150,29 +195,29 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList
+ checklistDragHandle.beVisibleIf(selectedKeys.isNotEmpty())
+ checklistDragHandle.applyColorFilter(textColor)
+ checklistDragHandle.setOnTouchListener { v, event ->
if (event.action == MotionEvent.ACTION_DOWN) {
startReorderDragListener.requestDrag(holder)
}
@@ -182,6 +227,7 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList, val activity: Activity) : FragmentStatePagerAdapter(fm) {
private var fragments: HashMap = LinkedHashMap()
@@ -30,7 +30,7 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List, val activity
return fragments[position]!!
}
- val fragment = if (note.type == NoteType.TYPE_TEXT.value) TextFragment() else ChecklistFragment()
+ val fragment = if (note.type == NoteType.TYPE_TEXT) TextFragment() else ChecklistFragment()
fragment.arguments = bundle
fragments[position] = fragment
return fragment
@@ -39,12 +39,16 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List, val activity
override fun getPageTitle(position: Int) = notes[position].title
fun updateCurrentNoteData(position: Int, path: String, value: String) {
- (fragments[position] as? TextFragment)?.apply {
+ (fragments[position])?.apply {
updateNotePath(path)
updateNoteValue(value)
}
}
+ fun getFragment(position: Int) = fragments[position]
+
+ fun textFragment(position: Int): TextFragment? = (fragments[position] as? TextFragment)
+
fun getCurrentNotesView(position: Int) = (fragments[position] as? TextFragment)?.getNotesView()
fun getCurrentNoteViewText(position: Int) = (fragments[position] as? TextFragment)?.getCurrentNoteViewText()
@@ -59,7 +63,9 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List, val activity
fun saveAllFragmentTexts() = fragments.values.forEach { (it as? TextFragment)?.saveText(false) }
- fun getNoteChecklistItems(position: Int) = (fragments[position] as? ChecklistFragment)?.checklistItems
+ fun getNoteChecklistRawItems(position: Int) = (fragments[position] as? ChecklistFragment)?.items
+
+ fun getNoteChecklistItems(position: Int) = (fragments[position] as? ChecklistFragment)?.getChecklistItems()
fun undo(position: Int) = (fragments[position] as? TextFragment)?.undo()
@@ -83,4 +89,12 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List, val activity
fragments[position] = fragment
return fragment
}
+
+ fun removeDoneCheckListItems(position: Int) {
+ (fragments[position] as? ChecklistFragment)?.removeDoneItems()
+ }
+
+ fun refreshChecklist(position: Int) {
+ (fragments[position] as? ChecklistFragment)?.refreshItems()
+ }
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/OpenNoteAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/OpenNoteAdapter.kt
new file mode 100644
index 000000000..904222d24
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/OpenNoteAdapter.kt
@@ -0,0 +1,140 @@
+package com.simplemobiletools.notes.pro.adapters
+
+import android.content.Context
+import android.graphics.Color
+import android.text.SpannableString
+import android.text.style.StrikethroughSpan
+import android.view.Menu
+import android.view.View
+import android.view.ViewGroup
+import com.google.gson.Gson
+import com.google.gson.reflect.TypeToken
+import com.simplemobiletools.commons.activities.BaseSimpleActivity
+import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
+import com.simplemobiletools.commons.extensions.beGoneIf
+import com.simplemobiletools.commons.extensions.beVisibleIf
+import com.simplemobiletools.commons.extensions.getColoredDrawableWithColor
+import com.simplemobiletools.commons.extensions.isBlackAndWhiteTheme
+import com.simplemobiletools.commons.helpers.LOWER_ALPHA_INT
+import com.simplemobiletools.commons.helpers.SORT_BY_CUSTOM
+import com.simplemobiletools.commons.views.MyRecyclerView
+import com.simplemobiletools.notes.pro.databinding.OpenNoteItemBinding
+import com.simplemobiletools.notes.pro.extensions.config
+import com.simplemobiletools.notes.pro.models.ChecklistItem
+import com.simplemobiletools.notes.pro.models.Note
+import com.simplemobiletools.notes.pro.models.NoteType
+
+class OpenNoteAdapter(
+ activity: BaseSimpleActivity, var items: List,
+ recyclerView: MyRecyclerView, itemClick: (Any) -> Unit
+) : MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
+ override fun getActionMenuId() = 0
+
+ override fun actionItemPressed(id: Int) {}
+
+ override fun getSelectableItemCount() = itemCount
+
+ override fun getIsItemSelectable(position: Int) = false
+
+ override fun getItemSelectionKey(position: Int) = items.getOrNull(position)?.id?.toInt()
+
+ override fun getItemKeyPosition(key: Int) = items.indexOfFirst { it.id?.toInt() == key }
+
+ override fun onActionModeCreated() {}
+
+ override fun onActionModeDestroyed() {}
+
+ override fun prepareActionMode(menu: Menu) {}
+
+ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
+ return createViewHolder(OpenNoteItemBinding.inflate(layoutInflater, parent, false).root)
+ }
+
+ override fun onBindViewHolder(holder: ViewHolder, position: Int) {
+ val item = items[position]
+ holder.bindView(item, true, false) { itemView, layoutPosition ->
+ setupView(itemView, item)
+ }
+ bindViewHolder(holder)
+ }
+
+ override fun getItemCount() = items.size
+
+ private fun setupView(view: View, note: Note) {
+ OpenNoteItemBinding.bind(view).apply {
+ root.setupCard()
+ openNoteItemTitle.apply {
+ text = note.title
+ setTextColor(properPrimaryColor)
+ }
+ val formattedText = note.getFormattedValue(root.context)
+ openNoteItemText.beGoneIf(formattedText.isNullOrBlank() || note.isLocked())
+ iconLock.beVisibleIf(note.isLocked())
+ iconLock.setImageDrawable(activity.resources.getColoredDrawableWithColor(com.simplemobiletools.commons.R.drawable.ic_lock_vector, properPrimaryColor))
+ openNoteItemText.apply {
+ text = formattedText
+ setTextColor(textColor)
+ }
+ }
+ }
+
+ private fun View.setupCard() {
+ if (context.isBlackAndWhiteTheme()) {
+ setBackgroundResource(com.simplemobiletools.commons.R.drawable.black_dialog_background)
+ } else {
+ val cardBackgroundColor = if (backgroundColor == Color.BLACK) {
+ Color.WHITE
+ } else {
+ Color.BLACK
+ }
+ val cardBackground = if (context.config.isUsingSystemTheme) {
+ com.simplemobiletools.commons.R.drawable.dialog_you_background
+ } else {
+ com.simplemobiletools.commons.R.drawable.dialog_bg
+ }
+ background =
+ activity.resources.getColoredDrawableWithColor(cardBackground, cardBackgroundColor, LOWER_ALPHA_INT)
+ }
+ }
+
+ private fun Note.getFormattedValue(context: Context): CharSequence? {
+ return when (type) {
+ NoteType.TYPE_TEXT -> getNoteStoredValue(context)
+ NoteType.TYPE_CHECKLIST -> {
+ val checklistItemType = object : TypeToken>() {}.type
+ var items = Gson().fromJson>(getNoteStoredValue(context), checklistItemType) ?: listOf()
+ items = items.filter { it.title != null }.let {
+ val sorting = context.config.sorting
+ ChecklistItem.sorting = sorting
+ if (ChecklistItem.sorting and SORT_BY_CUSTOM == 0) {
+ it.sorted().let {
+ if (context.config.moveDoneChecklistItems) {
+ it.sortedBy { it.isDone }
+ } else {
+ it
+ }
+ }
+ } else {
+ it
+ }
+ }
+ val linePrefix = "• "
+ val stringifiedItems = items.joinToString(separator = System.lineSeparator()) {
+ "${linePrefix}${it.title}"
+ }
+
+ val formattedText = SpannableString(stringifiedItems)
+ var currentPos = 0
+ items.forEach { item ->
+ currentPos += linePrefix.length
+ if (item.isDone) {
+ formattedText.setSpan(StrikethroughSpan(), currentPos, currentPos + item.title.length, 0)
+ }
+ currentPos += item.title.length
+ currentPos += System.lineSeparator().length
+ }
+ formattedText
+ }
+ }
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/WidgetAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/WidgetAdapter.kt
index d46732363..8aaf006ff 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/WidgetAdapter.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/WidgetAdapter.kt
@@ -6,27 +6,35 @@ import android.graphics.Paint
import android.view.View
import android.widget.RemoteViews
import android.widget.RemoteViewsService
-import com.google.gson.Gson
-import com.google.gson.reflect.TypeToken
import com.simplemobiletools.commons.extensions.adjustAlpha
-import com.simplemobiletools.commons.extensions.getTextSize
import com.simplemobiletools.commons.extensions.setText
import com.simplemobiletools.commons.extensions.setTextSize
+import com.simplemobiletools.commons.helpers.SORT_BY_CUSTOM
import com.simplemobiletools.commons.helpers.WIDGET_TEXT_COLOR
import com.simplemobiletools.notes.pro.R
-import com.simplemobiletools.notes.pro.R.id.checklist_title
import com.simplemobiletools.notes.pro.R.id.widget_text_holder
import com.simplemobiletools.notes.pro.extensions.config
+import com.simplemobiletools.notes.pro.extensions.getPercentageFontSize
import com.simplemobiletools.notes.pro.extensions.notesDB
import com.simplemobiletools.notes.pro.helpers.*
import com.simplemobiletools.notes.pro.models.ChecklistItem
import com.simplemobiletools.notes.pro.models.Note
+import com.simplemobiletools.notes.pro.models.NoteType
+import kotlinx.serialization.decodeFromString
+import kotlinx.serialization.json.Json
class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsService.RemoteViewsFactory {
- private val textIds = arrayOf(R.id.widget_text_left, R.id.widget_text_center, R.id.widget_text_right)
+ private val textIds = arrayOf(
+ R.id.widget_text_left, R.id.widget_text_center, R.id.widget_text_right,
+ R.id.widget_text_left_monospace, R.id.widget_text_center_monospace, R.id.widget_text_right_monospace
+ )
+ private val checklistIds = arrayOf(
+ R.id.checklist_text_left, R.id.checklist_text_center, R.id.checklist_text_right,
+ R.id.checklist_text_left_monospace, R.id.checklist_text_center_monospace, R.id.checklist_text_right_monospace
+ )
private var widgetTextColor = DEFAULT_WIDGET_TEXT_COLOR
private var note: Note? = null
- private var checklistItems = ArrayList()
+ private var checklistItems = mutableListOf()
override fun getViewAt(position: Int): RemoteViews {
val noteId = intent.getLongExtra(NOTE_ID, 0L)
@@ -36,27 +44,31 @@ class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsServi
return RemoteViews(context.packageName, R.layout.widget_text_layout)
}
- val textSize = context.getTextSize() / context.resources.displayMetrics.density
- if (note!!.type == NoteType.TYPE_CHECKLIST.value) {
+ val textSize = context.getPercentageFontSize() / context.resources.displayMetrics.density
+ if (note!!.type == NoteType.TYPE_CHECKLIST) {
remoteView = RemoteViews(context.packageName, R.layout.item_checklist_widget).apply {
val checklistItem = checklistItems.getOrNull(position) ?: return@apply
- setText(checklist_title, checklistItem.title)
-
val widgetNewTextColor = if (checklistItem.isDone) widgetTextColor.adjustAlpha(DONE_CHECKLIST_ITEM_ALPHA) else widgetTextColor
- setTextColor(checklist_title, widgetNewTextColor)
- setTextSize(checklist_title, textSize)
+ val paintFlags = if (checklistItem.isDone) Paint.STRIKE_THRU_TEXT_FLAG or Paint.ANTI_ALIAS_FLAG else Paint.ANTI_ALIAS_FLAG
+
+ for (id in checklistIds) {
+ setText(id, checklistItem.title)
+ setTextColor(id, widgetNewTextColor)
+ setTextSize(id, textSize)
+ setInt(id, "setPaintFlags", paintFlags)
+ setViewVisibility(id, View.GONE)
+ }
- val paintFlags = if (checklistItem.isDone) Paint.STRIKE_THRU_TEXT_FLAG or Paint.ANTI_ALIAS_FLAG else 0
- setInt(checklist_title, "setPaintFlags", paintFlags)
+ setViewVisibility(getProperChecklistTextView(context), View.VISIBLE)
Intent().apply {
putExtra(OPEN_NOTE_ID, noteId)
- setOnClickFillInIntent(checklist_title, this)
+ setOnClickFillInIntent(R.id.checklist_text_holder, this)
}
}
} else {
remoteView = RemoteViews(context.packageName, R.layout.widget_text_layout).apply {
- val noteText = note!!.getNoteStoredValue() ?: ""
+ val noteText = note!!.getNoteStoredValue(context) ?: ""
for (id in textIds) {
setText(id, noteText)
setTextColor(id, widgetTextColor)
@@ -75,10 +87,32 @@ class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsServi
return remoteView
}
- private fun getProperTextView(context: Context) = when (context.config.gravity) {
- GRAVITY_CENTER -> R.id.widget_text_center
- GRAVITY_RIGHT -> R.id.widget_text_right
- else -> R.id.widget_text_left
+ private fun getProperTextView(context: Context): Int {
+ val gravity = context.config.gravity
+ val isMonospaced = context.config.monospacedFont
+
+ return when {
+ gravity == GRAVITY_CENTER && isMonospaced -> R.id.widget_text_center_monospace
+ gravity == GRAVITY_CENTER -> R.id.widget_text_center
+ gravity == GRAVITY_END && isMonospaced -> R.id.widget_text_right_monospace
+ gravity == GRAVITY_END -> R.id.widget_text_right
+ isMonospaced -> R.id.widget_text_left_monospace
+ else -> R.id.widget_text_left
+ }
+ }
+
+ private fun getProperChecklistTextView(context: Context): Int {
+ val gravity = context.config.gravity
+ val isMonospaced = context.config.monospacedFont
+
+ return when {
+ gravity == GRAVITY_CENTER && isMonospaced -> R.id.checklist_text_center_monospace
+ gravity == GRAVITY_CENTER -> R.id.checklist_text_center
+ gravity == GRAVITY_END && isMonospaced -> R.id.checklist_text_right_monospace
+ gravity == GRAVITY_END -> R.id.checklist_text_right
+ isMonospaced -> R.id.checklist_text_left_monospace
+ else -> R.id.checklist_text_left
+ }
}
override fun onCreate() {}
@@ -91,11 +125,17 @@ class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsServi
widgetTextColor = intent.getIntExtra(WIDGET_TEXT_COLOR, DEFAULT_WIDGET_TEXT_COLOR)
val noteId = intent.getLongExtra(NOTE_ID, 0L)
note = context.notesDB.getNoteWithId(noteId)
- if (note?.type == NoteType.TYPE_CHECKLIST.value) {
- val checklistItemType = object : TypeToken>() {}.type
- checklistItems = Gson().fromJson>(note!!.value, checklistItemType) ?: ArrayList(1)
- if (context.config.moveUndoneChecklistItems) {
- checklistItems .sortBy { it.isDone }
+ if (note?.type == NoteType.TYPE_CHECKLIST) {
+ checklistItems = note!!.getNoteStoredValue(context)?.ifEmpty { "[]" }?.let { Json.decodeFromString(it) } ?: mutableListOf()
+
+ // checklist title can be null only because of the glitch in upgrade to 6.6.0, remove this check in the future
+ checklistItems = checklistItems.filter { it.title != null }.toMutableList() as ArrayList
+ val sorting = context.config?.sorting ?: 0
+ if (sorting and SORT_BY_CUSTOM == 0) {
+ checklistItems.sort()
+ if (context?.config?.moveDoneChecklistItems == true) {
+ checklistItems.sortBy { it.isDone }
+ }
}
}
}
@@ -103,7 +143,7 @@ class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsServi
override fun hasStableIds() = true
override fun getCount(): Int {
- return if (note?.type == NoteType.TYPE_CHECKLIST.value) {
+ return if (note?.type == NoteType.TYPE_CHECKLIST) {
checklistItems.size
} else {
1
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt
index e685c66ba..f26818b5c 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt
@@ -6,17 +6,17 @@ import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
-import com.simplemobiletools.commons.helpers.DEFAULT_WIDGET_BG_COLOR
+import com.simplemobiletools.commons.helpers.PROTECTION_NONE
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.helpers.DEFAULT_WIDGET_TEXT_COLOR
-import com.simplemobiletools.notes.pro.helpers.NoteType
import com.simplemobiletools.notes.pro.interfaces.NotesDao
import com.simplemobiletools.notes.pro.interfaces.WidgetsDao
import com.simplemobiletools.notes.pro.models.Note
+import com.simplemobiletools.notes.pro.models.NoteType
import com.simplemobiletools.notes.pro.models.Widget
import java.util.concurrent.Executors
-@Database(entities = [Note::class, Widget::class], version = 2)
+@Database(entities = [Note::class, Widget::class], version = 4)
abstract class NotesDatabase : RoomDatabase() {
abstract fun NotesDao(): NotesDao
@@ -25,20 +25,24 @@ abstract class NotesDatabase : RoomDatabase() {
companion object {
private var db: NotesDatabase? = null
+ private var defaultWidgetBgColor = 0
fun getInstance(context: Context): NotesDatabase {
+ defaultWidgetBgColor = context.resources.getColor(com.simplemobiletools.commons.R.color.default_widget_bg_color)
if (db == null) {
synchronized(NotesDatabase::class) {
if (db == null) {
db = Room.databaseBuilder(context.applicationContext, NotesDatabase::class.java, "notes.db")
- .addCallback(object : Callback() {
- override fun onCreate(db: SupportSQLiteDatabase) {
- super.onCreate(db)
- insertFirstNote(context)
- }
- })
- .addMigrations(MIGRATION_1_2)
- .build()
+ .addCallback(object : Callback() {
+ override fun onCreate(db: SupportSQLiteDatabase) {
+ super.onCreate(db)
+ insertFirstNote(context)
+ }
+ })
+ .addMigrations(MIGRATION_1_2)
+ .addMigrations(MIGRATION_2_3)
+ .addMigrations(MIGRATION_3_4)
+ .build()
db!!.openHelper.setWriteAheadLoggingEnabled(true)
}
}
@@ -53,7 +57,7 @@ abstract class NotesDatabase : RoomDatabase() {
private fun insertFirstNote(context: Context) {
Executors.newSingleThreadScheduledExecutor().execute {
val generalNote = context.resources.getString(R.string.general_note)
- val note = Note(null, generalNote, "", NoteType.TYPE_TEXT.value)
+ val note = Note(null, generalNote, "", NoteType.TYPE_TEXT, "", PROTECTION_NONE, "")
db!!.NotesDao().insertOrUpdate(note)
}
}
@@ -61,10 +65,25 @@ abstract class NotesDatabase : RoomDatabase() {
private val MIGRATION_1_2 = object : Migration(1, 2) {
override fun migrate(database: SupportSQLiteDatabase) {
database.apply {
- execSQL("ALTER TABLE widgets ADD COLUMN widget_bg_color INTEGER NOT NULL DEFAULT $DEFAULT_WIDGET_BG_COLOR")
+ execSQL("ALTER TABLE widgets ADD COLUMN widget_bg_color INTEGER NOT NULL DEFAULT $defaultWidgetBgColor")
execSQL("ALTER TABLE widgets ADD COLUMN widget_text_color INTEGER NOT NULL DEFAULT $DEFAULT_WIDGET_TEXT_COLOR")
}
}
}
+
+ private val MIGRATION_2_3 = object : Migration(2, 3) {
+ override fun migrate(database: SupportSQLiteDatabase) {
+ database.apply {
+ execSQL("ALTER TABLE notes ADD COLUMN protection_type INTEGER DEFAULT $PROTECTION_NONE NOT NULL")
+ execSQL("ALTER TABLE notes ADD COLUMN protection_hash TEXT DEFAULT '' NOT NULL")
+ }
+ }
+ }
+
+ private val MIGRATION_3_4 = object : Migration(3, 4) {
+ override fun migrate(database: SupportSQLiteDatabase) {
+ database.execSQL("ALTER TABLE widgets ADD COLUMN widget_show_title INTEGER NOT NULL DEFAULT 0")
+ }
+ }
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/DateTimePatternInfoDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/DateTimePatternInfoDialog.kt
new file mode 100644
index 000000000..f7a865387
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/DateTimePatternInfoDialog.kt
@@ -0,0 +1,18 @@
+package com.simplemobiletools.notes.pro.dialogs
+
+import com.simplemobiletools.commons.activities.BaseSimpleActivity
+import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
+import com.simplemobiletools.commons.extensions.setupDialogStuff
+import com.simplemobiletools.notes.pro.R
+
+class DateTimePatternInfoDialog(activity: BaseSimpleActivity) {
+
+ init {
+ val view = activity.layoutInflater.inflate(R.layout.datetime_pattern_info_layout, null)
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok) { _, _ -> { } }
+ .apply {
+ activity.setupDialogStuff(view, this)
+ }
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/DeleteNoteDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/DeleteNoteDialog.kt
index b176d0f5d..23f096be3 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/DeleteNoteDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/DeleteNoteDialog.kt
@@ -2,31 +2,35 @@ package com.simplemobiletools.notes.pro.dialogs
import androidx.appcompat.app.AlertDialog
import com.simplemobiletools.commons.extensions.beVisible
+import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
import com.simplemobiletools.commons.extensions.setupDialogStuff
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.SimpleActivity
+import com.simplemobiletools.notes.pro.databinding.DialogDeleteNoteBinding
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.dialog_delete_note.view.*
class DeleteNoteDialog(val activity: SimpleActivity, val note: Note, val callback: (deleteFile: Boolean) -> Unit) {
var dialog: AlertDialog? = null
init {
val message = String.format(activity.getString(R.string.delete_note_prompt_message), note.title)
- val view = activity.layoutInflater.inflate(R.layout.dialog_delete_note, null).apply {
+ val binding = DialogDeleteNoteBinding.inflate(activity.layoutInflater).apply{
if (note.path.isNotEmpty()) {
- delete_note_checkbox.text = String.format(activity.getString(R.string.delete_file_itself), note.path)
- delete_note_checkbox.beVisible()
+ deleteNoteCheckbox.text = String.format(activity.getString(R.string.delete_file_itself), note.path)
+ deleteNoteCheckboxHolder.beVisible()
+ deleteNoteCheckboxHolder.setOnClickListener {
+ deleteNoteCheckbox.toggle()
+ }
}
- delete_note_description.text = message
+ deleteNoteDescription.text = message
}
- AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed(view.delete_note_checkbox.isChecked) }
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this)
- }
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.delete) { dialog, which -> dialogConfirmed(binding.deleteNoteCheckbox.isChecked) }
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(binding.root, this)
+ }
}
private fun dialogConfirmed(deleteFile: Boolean) {
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportFileDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportFileDialog.kt
index d96b65fd3..bd393d01b 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportFileDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportFileDialog.kt
@@ -5,55 +5,55 @@ import com.simplemobiletools.commons.dialogs.FilePickerDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.SimpleActivity
+import com.simplemobiletools.notes.pro.databinding.DialogExportFileBinding
import com.simplemobiletools.notes.pro.extensions.config
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.dialog_export_file.view.*
import java.io.File
class ExportFileDialog(val activity: SimpleActivity, val note: Note, val callback: (exportPath: String) -> Unit) {
init {
var realPath = File(note.path).parent ?: activity.config.lastUsedSavePath
- val view = activity.layoutInflater.inflate(R.layout.dialog_export_file, null).apply {
- file_path.text = activity.humanizePath(realPath)
+ val binding = DialogExportFileBinding.inflate(activity.layoutInflater).apply {
+ filePath.setText(activity.humanizePath(realPath))
- file_name.setText(note.title)
- file_extension.setText(activity.config.lastUsedExtension)
- file_path.setOnClickListener {
+ fileName.setText(note.title)
+ extension.setText(activity.config.lastUsedExtension)
+ filePath.setOnClickListener {
FilePickerDialog(activity, realPath, false, false, true, true) {
- file_path.text = activity.humanizePath(it)
+ filePath.setText(activity.humanizePath(it))
realPath = it
}
}
}
- AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok, null)
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this, R.string.export_as_file) {
- showKeyboard(view.file_name)
- getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
- val filename = view.file_name.value
- val extension = view.file_extension.value
-
- if (filename.isEmpty()) {
- activity.toast(R.string.filename_cannot_be_empty)
- return@setOnClickListener
- }
-
- val fullFilename = if (extension.isEmpty()) filename else "$filename.$extension"
- if (!fullFilename.isAValidFilename()) {
- activity.toast(String.format(activity.getString(R.string.filename_invalid_characters_placeholder, fullFilename)))
- return@setOnClickListener
- }
-
- activity.config.lastUsedExtension = extension
- activity.config.lastUsedSavePath = realPath
- callback("$realPath/$fullFilename")
- dismiss()
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(binding.root, this, R.string.export_as_file) { alertDialog ->
+ alertDialog.showKeyboard(binding.fileName)
+ alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
+ val filename = binding.fileName.value
+ val extension = binding.extension.value
+
+ if (filename.isEmpty()) {
+ activity.toast(com.simplemobiletools.commons.R.string.filename_cannot_be_empty)
+ return@setOnClickListener
}
+
+ val fullFilename = if (extension.isEmpty()) filename else "$filename.$extension"
+ if (!fullFilename.isAValidFilename()) {
+ activity.toast(String.format(activity.getString(com.simplemobiletools.commons.R.string.filename_invalid_characters_placeholder, fullFilename)))
+ return@setOnClickListener
+ }
+
+ activity.config.lastUsedExtension = extension
+ activity.config.lastUsedSavePath = realPath
+ callback("$realPath/$fullFilename")
+ alertDialog.dismiss()
}
}
+ }
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportFilesDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportFilesDialog.kt
index b01f80284..553b1817b 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportFilesDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportFilesDialog.kt
@@ -2,47 +2,44 @@ package com.simplemobiletools.notes.pro.dialogs
import androidx.appcompat.app.AlertDialog
import com.simplemobiletools.commons.dialogs.FilePickerDialog
-import com.simplemobiletools.commons.extensions.humanizePath
-import com.simplemobiletools.commons.extensions.setupDialogStuff
-import com.simplemobiletools.commons.extensions.showKeyboard
-import com.simplemobiletools.commons.extensions.value
+import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.SimpleActivity
+import com.simplemobiletools.notes.pro.databinding.DialogExportFilesBinding
import com.simplemobiletools.notes.pro.extensions.config
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.dialog_export_files.view.*
class ExportFilesDialog(val activity: SimpleActivity, val notes: ArrayList, val callback: (parent: String, extension: String) -> Unit) {
init {
var realPath = activity.config.lastUsedSavePath
- val view = activity.layoutInflater.inflate(R.layout.dialog_export_files, null).apply {
- folder_path.text = activity.humanizePath(realPath)
+ val binding = DialogExportFilesBinding.inflate(activity.layoutInflater).apply {
+ folderPath.setText(activity.humanizePath(realPath))
- file_extension.setText(activity.config.lastUsedExtension)
- folder_path.setOnClickListener {
+ extension.setText(activity.config.lastUsedExtension)
+ folderPath.setOnClickListener {
FilePickerDialog(activity, realPath, false, false, true, true) {
- folder_path.text = activity.humanizePath(it)
+ folderPath.setText(activity.humanizePath(it))
realPath = it
}
}
}
- AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok, null)
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this, R.string.export_as_file) {
- showKeyboard(view.file_extension)
- getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
- activity.handleSAFDialog(realPath) {
- val extension = view.file_extension.value
- activity.config.lastUsedExtension = extension
- activity.config.lastUsedSavePath = realPath
- callback(realPath, extension)
- dismiss()
- }
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(binding.root, this, R.string.export_as_file) { alertDialog ->
+ alertDialog.showKeyboard(binding.extension)
+ alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
+ activity.handleSAFDialog(realPath) {
+ val extension = binding.extension.value
+ activity.config.lastUsedExtension = extension
+ activity.config.lastUsedSavePath = realPath
+ callback(realPath, extension)
+ alertDialog.dismiss()
}
}
}
+ }
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportNotesDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportNotesDialog.kt
new file mode 100644
index 000000000..a99096963
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ExportNotesDialog.kt
@@ -0,0 +1,41 @@
+package com.simplemobiletools.notes.pro.dialogs
+
+import androidx.appcompat.app.AlertDialog
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.notes.pro.R
+import com.simplemobiletools.notes.pro.activities.SimpleActivity
+import com.simplemobiletools.notes.pro.databinding.DialogExportNotesBinding
+
+class ExportNotesDialog(val activity: SimpleActivity, callback: (filename: String) -> Unit) {
+
+ init {
+ val binding = DialogExportNotesBinding.inflate(activity.layoutInflater).apply {
+ exportNotesFilename.setText(
+ buildString {
+ append(root.context.getString(com.simplemobiletools.commons.R.string.notes))
+ append("_")
+ append(root.context.getCurrentFormattedDateTime())
+ }
+ )
+ }
+
+ activity.getAlertDialogBuilder().setPositiveButton(com.simplemobiletools.commons.R.string.ok, null).setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null).apply {
+ activity.setupDialogStuff(binding.root, this, R.string.export_notes) { alertDialog ->
+ alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
+
+ val filename = binding.exportNotesFilename.value
+ when {
+ filename.isEmpty() -> activity.toast(com.simplemobiletools.commons.R.string.empty_name)
+ filename.isAValidFilename() -> {
+ callback(filename)
+ alertDialog.dismiss()
+ }
+
+ else -> activity.toast(com.simplemobiletools.commons.R.string.invalid_name)
+ }
+ }
+ }
+ }
+ }
+}
+
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ImportFolderDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ImportFolderDialog.kt
index b7e5458d5..a007e8788 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ImportFolderDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ImportFolderDialog.kt
@@ -1,43 +1,41 @@
package com.simplemobiletools.notes.pro.dialogs
-import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog
-import com.simplemobiletools.commons.extensions.getFilenameFromPath
-import com.simplemobiletools.commons.extensions.humanizePath
-import com.simplemobiletools.commons.extensions.isMediaFile
-import com.simplemobiletools.commons.extensions.setupDialogStuff
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.commons.helpers.PROTECTION_NONE
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.SimpleActivity
+import com.simplemobiletools.notes.pro.databinding.DialogImportFolderBinding
import com.simplemobiletools.notes.pro.extensions.notesDB
import com.simplemobiletools.notes.pro.extensions.parseChecklistItems
-import com.simplemobiletools.notes.pro.helpers.NoteType
import com.simplemobiletools.notes.pro.helpers.NotesHelper
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.dialog_import_folder.view.*
+import com.simplemobiletools.notes.pro.models.NoteType
import java.io.File
class ImportFolderDialog(val activity: SimpleActivity, val path: String, val callback: () -> Unit) : AlertDialog.Builder(activity) {
- private var dialog: AlertDialog
+ private var dialog: AlertDialog? = null
init {
- val view = (activity.layoutInflater.inflate(R.layout.dialog_import_folder, null) as ViewGroup).apply {
- open_file_filename.text = activity.humanizePath(path)
+ val binding = DialogImportFolderBinding.inflate(activity.layoutInflater).apply {
+ openFileFilename.setText(activity.humanizePath(path))
}
- dialog = AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok, null)
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this, R.string.import_folder) {
- getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
- val updateFilesOnEdit = view.open_file_type.checkedRadioButtonId == R.id.open_file_update_file
- ensureBackgroundThread {
- saveFolder(updateFilesOnEdit)
- }
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(binding.root, this, R.string.import_folder) { alertDialog ->
+ dialog = alertDialog
+ alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
+ val updateFilesOnEdit = binding.openFileType.checkedRadioButtonId == R.id.open_file_update_file
+ ensureBackgroundThread {
+ saveFolder(updateFilesOnEdit)
}
}
}
+ }
}
private fun saveFolder(updateFilesOnEdit: Boolean) {
@@ -47,37 +45,37 @@ class ImportFolderDialog(val activity: SimpleActivity, val path: String, val cal
when {
file.isDirectory -> false
filename.isMediaFile() -> false
- file.length() > 10 * 1000 * 1000 -> false
+ file.length() > 1000 * 1000 -> false
activity.notesDB.getNoteIdWithTitle(filename) != null -> false
else -> true
}
- }.forEach {
+ }?.forEach {
val storePath = if (updateFilesOnEdit) it.absolutePath else ""
val title = it.absolutePath.getFilenameFromPath()
val value = if (updateFilesOnEdit) "" else it.readText()
val fileText = it.readText().trim()
val checklistItems = fileText.parseChecklistItems()
if (checklistItems != null) {
- saveNote(title.substringBeforeLast('.'), fileText, NoteType.TYPE_CHECKLIST.value, "")
+ saveNote(title.substringBeforeLast('.'), fileText, NoteType.TYPE_CHECKLIST, "")
} else {
if (updateFilesOnEdit) {
activity.handleSAFDialog(path) {
- saveNote(title, value, NoteType.TYPE_TEXT.value, storePath)
+ saveNote(title, value, NoteType.TYPE_TEXT, storePath)
}
} else {
- saveNote(title, value, NoteType.TYPE_TEXT.value, storePath)
+ saveNote(title, value, NoteType.TYPE_TEXT, storePath)
}
}
}
activity.runOnUiThread {
callback()
- dialog.dismiss()
+ dialog?.dismiss()
}
}
- private fun saveNote(title: String, value: String, type: Int, path: String) {
- val note = Note(null, title, value, type, path)
+ private fun saveNote(title: String, value: String, type: NoteType, path: String) {
+ val note = Note(null, title, value, type, path, PROTECTION_NONE, "")
NotesHelper(activity).insertOrUpdateNote(note)
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ManageAutoBackupsDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ManageAutoBackupsDialog.kt
new file mode 100644
index 000000000..c88a0d4a9
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/ManageAutoBackupsDialog.kt
@@ -0,0 +1,96 @@
+package com.simplemobiletools.notes.pro.dialogs
+
+import androidx.appcompat.app.AlertDialog
+import com.simplemobiletools.commons.dialogs.FilePickerDialog
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.commons.helpers.ensureBackgroundThread
+import com.simplemobiletools.notes.pro.activities.SimpleActivity
+import com.simplemobiletools.notes.pro.databinding.DialogManageAutomaticBackupsBinding
+import com.simplemobiletools.notes.pro.extensions.config
+import java.io.File
+
+class ManageAutoBackupsDialog(private val activity: SimpleActivity, onSuccess: () -> Unit) {
+ private val binding = DialogManageAutomaticBackupsBinding.inflate(activity.layoutInflater)
+ private val view = binding.root
+ private val config = activity.config
+ private var backupFolder = config.autoBackupFolder
+
+ init {
+ binding.apply {
+ backupNotesFolder.setText(activity.humanizePath(backupFolder))
+ val filename = config.autoBackupFilename.ifEmpty {
+ "${activity.getString(com.simplemobiletools.commons.R.string.notes)}_%Y%M%D_%h%m%s"
+ }
+
+ backupNotesFilename.setText(filename)
+ backupNotesFilenameHint.setEndIconOnClickListener {
+ DateTimePatternInfoDialog(activity)
+ }
+
+ backupNotesFilenameHint.setEndIconOnLongClickListener {
+ DateTimePatternInfoDialog(activity)
+ true
+ }
+
+ backupNotesFolder.setOnClickListener {
+ selectBackupFolder()
+ }
+ }
+
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(view, this, com.simplemobiletools.commons.R.string.manage_automatic_backups) { dialog ->
+ dialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
+ val filename = binding.backupNotesFilename.value
+ when {
+ filename.isEmpty() -> activity.toast(com.simplemobiletools.commons.R.string.empty_name)
+ filename.isAValidFilename() -> {
+ val file = File(backupFolder, "$filename.json")
+ if (file.exists() && !file.canWrite()) {
+ activity.toast(com.simplemobiletools.commons.R.string.name_taken)
+ return@setOnClickListener
+ }
+
+ ensureBackgroundThread {
+ config.apply {
+ autoBackupFolder = backupFolder
+ autoBackupFilename = filename
+ }
+
+ activity.runOnUiThread {
+ onSuccess()
+ }
+
+ dialog.dismiss()
+ }
+ }
+
+ else -> activity.toast(com.simplemobiletools.commons.R.string.invalid_name)
+ }
+ }
+ }
+ }
+ }
+
+ private fun selectBackupFolder() {
+ activity.hideKeyboard(binding.backupNotesFilename)
+ FilePickerDialog(activity, backupFolder, false, showFAB = true) { path ->
+ activity.handleSAFDialog(path) { grantedSAF ->
+ if (!grantedSAF) {
+ return@handleSAFDialog
+ }
+
+ activity.handleSAFDialogSdk30(path) { grantedSAF30 ->
+ if (!grantedSAF30) {
+ return@handleSAFDialogSdk30
+ }
+
+ backupFolder = path
+ binding.backupNotesFolder.setText(activity.humanizePath(path))
+ }
+ }
+ }
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewChecklistItemDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewChecklistItemDialog.kt
index da1183e08..8244d7aa1 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewChecklistItemDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewChecklistItemDialog.kt
@@ -2,38 +2,78 @@ package com.simplemobiletools.notes.pro.dialogs
import android.app.Activity
import android.content.DialogInterface.BUTTON_POSITIVE
-import androidx.appcompat.app.AlertDialog
-import com.simplemobiletools.commons.extensions.setupDialogStuff
-import com.simplemobiletools.commons.extensions.showKeyboard
-import com.simplemobiletools.commons.extensions.toast
-import com.simplemobiletools.commons.extensions.value
+import android.view.KeyEvent
+import android.view.View
+import android.view.inputmethod.EditorInfo
+import androidx.appcompat.widget.AppCompatEditText
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.commons.helpers.DARK_GREY
+import com.simplemobiletools.commons.helpers.SORT_BY_CUSTOM
import com.simplemobiletools.notes.pro.R
-import kotlinx.android.synthetic.main.dialog_new_checklist_item.view.*
+import com.simplemobiletools.notes.pro.databinding.DialogNewChecklistItemBinding
+import com.simplemobiletools.notes.pro.databinding.ItemAddChecklistBinding
+import com.simplemobiletools.notes.pro.extensions.config
class NewChecklistItemDialog(val activity: Activity, callback: (titles: ArrayList) -> Unit) {
+ private val titles = mutableListOf()
+ private val binding = DialogNewChecklistItemBinding.inflate(activity.layoutInflater)
+ private val view = binding.root
+
init {
- val view = activity.layoutInflater.inflate(R.layout.dialog_new_checklist_item, null)
+ addNewEditText()
+ val plusTextColor = if (activity.isWhiteTheme()) {
+ DARK_GREY
+ } else {
+ activity.getProperPrimaryColor().getContrastColor()
+ }
+
+ binding.apply {
+ addItem.applyColorFilter(plusTextColor)
+ addItem.setOnClickListener {
+ addNewEditText()
+ }
+ settingsAddChecklistTop.beVisibleIf(activity.config.sorting == SORT_BY_CUSTOM)
+ settingsAddChecklistTop.isChecked = activity.config.addNewChecklistItemsTop
+ }
- AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok, null)
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this, R.string.add_new_checklist_items) {
- showKeyboard(view.checklist_item_title_1)
- getButton(BUTTON_POSITIVE).setOnClickListener {
- val title1 = view.checklist_item_title_1.value
- val title2 = view.checklist_item_title_2.value
- val title3 = view.checklist_item_title_3.value
- when {
- title1.isEmpty() && title2.isEmpty() && title3.isEmpty() -> activity.toast(R.string.empty_name)
- else -> {
- val titles = arrayListOf(title1, title2, title3).filter { it.isNotEmpty() }.toMutableList() as ArrayList
- callback(titles)
- dismiss()
- }
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(view, this, R.string.add_new_checklist_items) { alertDialog ->
+ alertDialog.showKeyboard(titles.first())
+ alertDialog.getButton(BUTTON_POSITIVE).setOnClickListener {
+ activity.config.addNewChecklistItemsTop = binding.settingsAddChecklistTop.isChecked
+ when {
+ titles.all { it.text!!.isEmpty() } -> activity.toast(com.simplemobiletools.commons.R.string.empty_name)
+ else -> {
+ val titles = titles.map { it.text.toString() }.filter { it.isNotEmpty() }.toMutableList() as ArrayList
+ callback(titles)
+ alertDialog.dismiss()
}
}
}
}
+ }
+ }
+
+ private fun addNewEditText() {
+ ItemAddChecklistBinding.inflate(activity.layoutInflater).apply {
+ titleEditText.setOnEditorActionListener { _, actionId, _ ->
+ if (actionId == EditorInfo.IME_ACTION_NEXT || actionId == EditorInfo.IME_ACTION_DONE || actionId == KeyEvent.KEYCODE_ENTER) {
+ addNewEditText()
+ true
+ } else {
+ false
+ }
+ }
+ titles.add(titleEditText)
+ binding.checklistHolder.addView(this.root)
+ activity.updateTextColors(binding.checklistHolder)
+ binding.dialogHolder.post {
+ binding.dialogHolder.fullScroll(View.FOCUS_DOWN)
+ activity.showKeyboard(titleEditText)
+ }
+ }
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewNoteDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewNoteDialog.kt
index 2edd283c6..502abca6f 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewNoteDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewNoteDialog.kt
@@ -2,48 +2,58 @@ package com.simplemobiletools.notes.pro.dialogs
import android.app.Activity
import android.content.DialogInterface.BUTTON_POSITIVE
-import androidx.appcompat.app.AlertDialog
-import com.simplemobiletools.commons.extensions.setupDialogStuff
-import com.simplemobiletools.commons.extensions.showKeyboard
-import com.simplemobiletools.commons.extensions.toast
-import com.simplemobiletools.commons.extensions.value
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.commons.helpers.PROTECTION_NONE
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.notes.pro.R
+import com.simplemobiletools.notes.pro.databinding.DialogNewNoteBinding
import com.simplemobiletools.notes.pro.extensions.config
import com.simplemobiletools.notes.pro.extensions.notesDB
-import com.simplemobiletools.notes.pro.helpers.NoteType
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.dialog_new_note.view.*
+import com.simplemobiletools.notes.pro.models.NoteType
-class NewNoteDialog(val activity: Activity, callback: (note: Note) -> Unit) {
+class NewNoteDialog(val activity: Activity, title: String? = null, val setChecklistAsDefault: Boolean, callback: (note: Note) -> Unit) {
init {
- val view = activity.layoutInflater.inflate(R.layout.dialog_new_note, null).apply {
- new_note_type.check(if (activity.config.lastCreatedNoteType == NoteType.TYPE_TEXT.value) type_text_note.id else type_checklist.id)
+ val binding = DialogNewNoteBinding.inflate(activity.layoutInflater).apply {
+ val defaultType = when {
+ setChecklistAsDefault -> typeChecklist.id
+ activity.config.lastCreatedNoteType == NoteType.TYPE_TEXT.value -> typeTextNote.id
+ else -> typeChecklist.id
+ }
+
+ newNoteType.check(defaultType)
}
- AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok, null)
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this, R.string.new_note) {
- showKeyboard(view.note_title)
- getButton(BUTTON_POSITIVE).setOnClickListener {
- val title = view.note_title.value
- ensureBackgroundThread {
- when {
- title.isEmpty() -> activity.toast(R.string.no_title)
- activity.notesDB.getNoteIdWithTitle(title) != null -> activity.toast(R.string.title_taken)
- else -> {
- val type = if (view.new_note_type.checkedRadioButtonId == view.type_checklist.id) NoteType.TYPE_CHECKLIST.value else NoteType.TYPE_TEXT.value
- activity.config.lastCreatedNoteType = type
- val newNote = Note(null, title, "", type)
- callback(newNote)
- dismiss()
+ binding.lockedNoteTitle.setText(title)
+
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(binding.root, this, R.string.new_note) { alertDialog ->
+ alertDialog.showKeyboard(binding.lockedNoteTitle)
+ alertDialog.getButton(BUTTON_POSITIVE).setOnClickListener {
+ val newTitle = binding.lockedNoteTitle.value
+ ensureBackgroundThread {
+ when {
+ newTitle.isEmpty() -> activity.toast(R.string.no_title)
+ activity.notesDB.getNoteIdWithTitle(newTitle) != null -> activity.toast(R.string.title_taken)
+ else -> {
+ val type = if (binding.newNoteType.checkedRadioButtonId == binding.typeChecklist.id) {
+ NoteType.TYPE_CHECKLIST
+ } else {
+ NoteType.TYPE_TEXT
}
+
+ activity.config.lastCreatedNoteType = type.value
+ val newNote = Note(null, newTitle, "", type, "", PROTECTION_NONE, "")
+ callback(newNote)
+ alertDialog.dismiss()
}
}
}
}
}
+ }
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/OpenFileDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/OpenFileDialog.kt
index d4b420cc1..f1ce77219 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/OpenFileDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/OpenFileDialog.kt
@@ -1,52 +1,53 @@
package com.simplemobiletools.notes.pro.dialogs
-import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog
+import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
import com.simplemobiletools.commons.extensions.getFilenameFromPath
import com.simplemobiletools.commons.extensions.humanizePath
import com.simplemobiletools.commons.extensions.setupDialogStuff
+import com.simplemobiletools.commons.helpers.PROTECTION_NONE
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.SimpleActivity
-import com.simplemobiletools.notes.pro.helpers.NoteType
+import com.simplemobiletools.notes.pro.databinding.DialogOpenFileBinding
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.dialog_open_file.*
-import kotlinx.android.synthetic.main.dialog_open_file.view.*
+import com.simplemobiletools.notes.pro.models.NoteType
import java.io.File
class OpenFileDialog(val activity: SimpleActivity, val path: String, val callback: (note: Note) -> Unit) : AlertDialog.Builder(activity) {
- private var dialog: AlertDialog
+ private var dialog: AlertDialog? = null
init {
- val view = (activity.layoutInflater.inflate(R.layout.dialog_open_file, null) as ViewGroup).apply {
- open_file_filename.text = activity.humanizePath(path)
+ val binding = DialogOpenFileBinding.inflate(activity.layoutInflater).apply {
+ openFileFilename.setText(activity.humanizePath(path))
}
- dialog = AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok, null)
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this, R.string.open_file) {
- getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
- val updateFileOnEdit = view.open_file_type.checkedRadioButtonId == open_file_update_file.id
- val storePath = if (updateFileOnEdit) path else ""
- val storeContent = if (updateFileOnEdit) "" else File(path).readText()
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(binding.root, this, R.string.open_file) { alertDialog ->
+ dialog = alertDialog
+ alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
+ val updateFileOnEdit = binding.openFileType.checkedRadioButtonId == binding.openFileUpdateFile.id
+ val storePath = if (updateFileOnEdit) path else ""
+ val storeContent = if (updateFileOnEdit) "" else File(path).readText()
- if (updateFileOnEdit) {
- activity.handleSAFDialog(path) {
- saveNote(storeContent, storePath)
- }
- } else {
+ if (updateFileOnEdit) {
+ activity.handleSAFDialog(path) {
saveNote(storeContent, storePath)
}
+ } else {
+ saveNote(storeContent, storePath)
}
}
}
+ }
}
private fun saveNote(storeContent: String, storePath: String) {
val filename = path.getFilenameFromPath()
- val note = Note(null, filename, storeContent, NoteType.TYPE_TEXT.value, storePath)
+ val note = Note(null, filename, storeContent, NoteType.TYPE_TEXT, storePath, PROTECTION_NONE, "")
callback(note)
- dialog.dismiss()
+ dialog?.dismiss()
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/OpenNoteDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/OpenNoteDialog.kt
index ea7df27ae..7a7b4fbc2 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/OpenNoteDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/OpenNoteDialog.kt
@@ -1,60 +1,51 @@
package com.simplemobiletools.notes.pro.dialogs
-import android.app.Activity
-import android.view.View
-import android.view.ViewGroup
-import android.widget.RadioGroup
import androidx.appcompat.app.AlertDialog
-import com.simplemobiletools.commons.extensions.applyColorFilter
-import com.simplemobiletools.commons.extensions.beVisibleIf
+import androidx.recyclerview.widget.StaggeredGridLayoutManager
+import com.simplemobiletools.commons.activities.BaseSimpleActivity
+import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
import com.simplemobiletools.commons.extensions.setupDialogStuff
-import com.simplemobiletools.commons.extensions.toast
+import com.simplemobiletools.commons.views.AutoStaggeredGridLayoutManager
import com.simplemobiletools.notes.pro.R
-import com.simplemobiletools.notes.pro.extensions.config
+import com.simplemobiletools.notes.pro.adapters.OpenNoteAdapter
+import com.simplemobiletools.notes.pro.databinding.DialogOpenNoteBinding
import com.simplemobiletools.notes.pro.helpers.NotesHelper
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.dialog_open_note.view.*
-import kotlinx.android.synthetic.main.open_note_item.view.*
-class OpenNoteDialog(val activity: Activity, val callback: (checkedId: Long) -> Unit) {
+class OpenNoteDialog(val activity: BaseSimpleActivity, val callback: (checkedId: Long, newNote: Note?) -> Unit) {
private var dialog: AlertDialog? = null
init {
- val view = activity.layoutInflater.inflate(R.layout.dialog_open_note, null)
+ val binding = DialogOpenNoteBinding.inflate(activity.layoutInflater)
+
+ val noteItemWidth = activity.resources.getDimensionPixelSize(R.dimen.grid_note_item_width)
+ binding.dialogOpenNoteList.layoutManager = AutoStaggeredGridLayoutManager(noteItemWidth, StaggeredGridLayoutManager.VERTICAL)
+
NotesHelper(activity).getNotes {
- initDialog(it, view)
+ initDialog(it, binding)
}
}
- private fun initDialog(notes: ArrayList, view: View) {
- val textColor = activity.config.textColor
- notes.forEach {
- activity.layoutInflater.inflate(R.layout.open_note_item, null).apply {
- val note = it
- open_note_item_radio_button.apply {
- text = note.title
- isChecked = note.id == activity.config.currentNoteId
- id = note.id!!.toInt()
-
- setOnClickListener {
- callback(note.id!!)
- dialog?.dismiss()
- }
- }
- open_note_item_icon.apply {
- beVisibleIf(note.path.isNotEmpty())
- applyColorFilter(textColor)
- setOnClickListener {
- activity.toast(note.path)
- }
- }
- view.dialog_open_note_linear.addView(this, RadioGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT))
+ private fun initDialog(notes: List, binding: DialogOpenNoteBinding) {
+ binding.dialogOpenNoteList.adapter = OpenNoteAdapter(activity, notes, binding.dialogOpenNoteList) {
+ it as Note
+ callback(it.id!!, null)
+ dialog?.dismiss()
+ }
+
+ binding.newNoteFab.setOnClickListener {
+ NewNoteDialog(activity, setChecklistAsDefault = false) {
+ callback(0, it)
+ dialog?.dismiss()
}
}
- dialog = AlertDialog.Builder(activity)
- .create().apply {
- activity.setupDialogStuff(view, this, R.string.open_note)
+ activity.getAlertDialogBuilder()
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(binding.root, this, R.string.open_note) { alertDialog ->
+ dialog = alertDialog
}
+ }
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/RenameChecklistItemDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/RenameChecklistItemDialog.kt
index c6851bf99..dc1804afe 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/RenameChecklistItemDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/RenameChecklistItemDialog.kt
@@ -2,37 +2,32 @@ package com.simplemobiletools.notes.pro.dialogs
import android.app.Activity
import android.content.DialogInterface.BUTTON_POSITIVE
-import androidx.appcompat.app.AlertDialog
-import com.simplemobiletools.commons.extensions.setupDialogStuff
-import com.simplemobiletools.commons.extensions.showKeyboard
-import com.simplemobiletools.commons.extensions.toast
-import com.simplemobiletools.commons.extensions.value
-import com.simplemobiletools.notes.pro.R
-import kotlinx.android.synthetic.main.dialog_rename_checklist_item.view.*
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.notes.pro.databinding.DialogRenameChecklistItemBinding
class RenameChecklistItemDialog(val activity: Activity, val oldTitle: String, callback: (newTitle: String) -> Unit) {
init {
- val view = activity.layoutInflater.inflate(R.layout.dialog_rename_checklist_item, null).apply {
- checklist_item_title.setText(oldTitle)
+ val binding = DialogRenameChecklistItemBinding.inflate(activity.layoutInflater).apply {
+ checklistItemTitle.setText(oldTitle)
}
- AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok, null)
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this) {
- showKeyboard(view.checklist_item_title)
- getButton(BUTTON_POSITIVE).setOnClickListener {
- val newTitle = view.checklist_item_title.value
- when {
- newTitle.isEmpty() -> activity.toast(R.string.empty_name)
- else -> {
- callback(newTitle)
- dismiss()
- }
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(binding.root, this) { alertDialog ->
+ alertDialog.showKeyboard(binding.checklistItemTitle)
+ alertDialog.getButton(BUTTON_POSITIVE).setOnClickListener {
+ val newTitle = binding.checklistItemTitle.value
+ when {
+ newTitle.isEmpty() -> activity.toast(com.simplemobiletools.commons.R.string.empty_name)
+ else -> {
+ callback(newTitle)
+ alertDialog.dismiss()
}
}
}
}
+ }
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/RenameNoteDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/RenameNoteDialog.kt
index b04e428d6..65833769c 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/RenameNoteDialog.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/RenameNoteDialog.kt
@@ -6,33 +6,35 @@ import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.SimpleActivity
+import com.simplemobiletools.notes.pro.databinding.DialogRenameNoteBinding
import com.simplemobiletools.notes.pro.extensions.config
import com.simplemobiletools.notes.pro.extensions.notesDB
+import com.simplemobiletools.notes.pro.extensions.updateWidgets
import com.simplemobiletools.notes.pro.helpers.NotesHelper
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.dialog_new_note.view.*
import java.io.File
class RenameNoteDialog(val activity: SimpleActivity, val note: Note, val currentNoteText: String?, val callback: (note: Note) -> Unit) {
init {
- val view = activity.layoutInflater.inflate(R.layout.dialog_rename_note, null)
- view.note_title.setText(note.title)
+ val binding = DialogRenameNoteBinding.inflate(activity.layoutInflater)
+ val view = binding.root
+ binding.lockedNoteTitle.setText(note.title)
- AlertDialog.Builder(activity)
- .setPositiveButton(R.string.ok, null)
- .setNegativeButton(R.string.cancel, null)
- .create().apply {
- activity.setupDialogStuff(view, this, R.string.rename_note) {
- showKeyboard(view.note_title)
- getButton(BUTTON_POSITIVE).setOnClickListener {
- val title = view.note_title.value
- ensureBackgroundThread {
- newTitleConfirmed(title, this)
- }
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(view, this, R.string.rename_note) { alertDialog ->
+ alertDialog.showKeyboard(binding.lockedNoteTitle)
+ alertDialog.getButton(BUTTON_POSITIVE).setOnClickListener {
+ val title = binding.lockedNoteTitle.value
+ ensureBackgroundThread {
+ newTitleConfirmed(title, alertDialog)
}
}
}
+ }
}
private fun newTitleConfirmed(title: String, dialog: AlertDialog) {
@@ -54,30 +56,32 @@ class RenameNoteDialog(val activity: SimpleActivity, val note: Note, val current
}
} else {
if (title.isEmpty()) {
- activity.toast(R.string.filename_cannot_be_empty)
+ activity.toast(com.simplemobiletools.commons.R.string.filename_cannot_be_empty)
return
}
val file = File(path)
val newFile = File(file.parent, title)
if (!newFile.name.isAValidFilename()) {
- activity.toast(R.string.invalid_name)
+ activity.toast(com.simplemobiletools.commons.R.string.invalid_name)
return
}
- activity.renameFile(file.absolutePath, newFile.absolutePath) {
- if (it) {
+ activity.renameFile(file.absolutePath, newFile.absolutePath, false) { success, useAndroid30Way ->
+ if (success) {
note.path = newFile.absolutePath
NotesHelper(activity).insertOrUpdateNote(note) {
dialog.dismiss()
callback(note)
}
} else {
- activity.toast(R.string.rename_file_error)
+ activity.toast(com.simplemobiletools.commons.R.string.rename_file_error)
return@renameFile
}
}
}
+
+ activity.baseContext.updateWidgets()
}
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/SortChecklistDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/SortChecklistDialog.kt
new file mode 100644
index 000000000..87ab6a9de
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/SortChecklistDialog.kt
@@ -0,0 +1,95 @@
+package com.simplemobiletools.notes.pro.dialogs
+
+import com.simplemobiletools.commons.extensions.beGoneIf
+import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
+import com.simplemobiletools.commons.extensions.setupDialogStuff
+import com.simplemobiletools.commons.helpers.SORT_BY_CUSTOM
+import com.simplemobiletools.commons.helpers.SORT_BY_DATE_CREATED
+import com.simplemobiletools.commons.helpers.SORT_BY_TITLE
+import com.simplemobiletools.commons.helpers.SORT_DESCENDING
+import com.simplemobiletools.notes.pro.R
+import com.simplemobiletools.notes.pro.activities.SimpleActivity
+import com.simplemobiletools.notes.pro.databinding.DialogSortChecklistBinding
+import com.simplemobiletools.notes.pro.extensions.config
+
+class SortChecklistDialog(private val activity: SimpleActivity, private val callback: () -> Unit) {
+ private val binding = DialogSortChecklistBinding.inflate(activity.layoutInflater)
+ private val view = binding.root
+ private val config = activity.config
+ private var currSorting = config.sorting
+
+ init {
+ setupSortRadio()
+ setupOrderRadio()
+ setupMoveUndoneChecklistItems()
+
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.ok) { _, _ -> dialogConfirmed() }
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(view, this, com.simplemobiletools.commons.R.string.sort_by)
+ }
+ }
+
+ private fun setupSortRadio() {
+ val fieldRadio = binding.sortingDialogRadioSorting
+ fieldRadio.setOnCheckedChangeListener { group, checkedId ->
+ val isCustomSorting = checkedId == binding.sortingDialogRadioCustom.id
+ binding.sortingDialogRadioOrder.beGoneIf(isCustomSorting)
+ binding.sortingDialogOrderDivider.beGoneIf(isCustomSorting)
+ binding.moveUndoneChecklistItemsDivider.beGoneIf(isCustomSorting)
+ binding.settingsMoveUndoneChecklistItemsHolder.beGoneIf(isCustomSorting)
+ }
+
+ var fieldBtn = binding.sortingDialogRadioTitle
+
+ if (currSorting and SORT_BY_DATE_CREATED != 0) {
+ fieldBtn = binding.sortingDialogRadioDateCreated
+ }
+
+ if (currSorting and SORT_BY_CUSTOM != 0) {
+ fieldBtn = binding.sortingDialogRadioCustom
+ }
+
+ fieldBtn.isChecked = true
+ }
+
+ private fun setupOrderRadio() {
+ var orderBtn = binding.sortingDialogRadioAscending
+
+ if (currSorting and SORT_DESCENDING != 0) {
+ orderBtn = binding.sortingDialogRadioDescending
+ }
+
+ orderBtn.isChecked = true
+ }
+
+ private fun setupMoveUndoneChecklistItems() {
+ binding.settingsMoveUndoneChecklistItems.isChecked = config.moveDoneChecklistItems
+ binding.settingsMoveUndoneChecklistItemsHolder.setOnClickListener {
+ binding.settingsMoveUndoneChecklistItems.toggle()
+ }
+ }
+
+ private fun dialogConfirmed() {
+ val sortingRadio = binding.sortingDialogRadioSorting
+ var sorting = when (sortingRadio.checkedRadioButtonId) {
+ R.id.sorting_dialog_radio_date_created -> SORT_BY_DATE_CREATED
+ R.id.sorting_dialog_radio_custom -> SORT_BY_CUSTOM
+ else -> SORT_BY_TITLE
+ }
+
+ if (sortingRadio.checkedRadioButtonId != R.id.sorting_dialog_radio_custom
+ && binding.sortingDialogRadioOrder.checkedRadioButtonId == R.id.sorting_dialog_radio_descending
+ ) {
+ sorting = sorting or SORT_DESCENDING
+ }
+
+ if (currSorting != sorting) {
+ config.sorting = sorting
+ }
+
+ config.moveDoneChecklistItems = binding.settingsMoveUndoneChecklistItems.isChecked
+ callback()
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/UnlockNotesDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/UnlockNotesDialog.kt
new file mode 100644
index 000000000..a8f3f11b9
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/UnlockNotesDialog.kt
@@ -0,0 +1,78 @@
+package com.simplemobiletools.notes.pro.dialogs
+
+import android.content.DialogInterface
+import androidx.appcompat.app.AlertDialog
+import com.simplemobiletools.commons.activities.BaseSimpleActivity
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.notes.pro.R
+import com.simplemobiletools.notes.pro.databinding.DialogUnlockNotesBinding
+import com.simplemobiletools.notes.pro.databinding.ItemLockedNoteBinding
+import com.simplemobiletools.notes.pro.models.Note
+
+class UnlockNotesDialog(val activity: BaseSimpleActivity, val notes: List, callback: (unlockedNotes: List) -> Unit) {
+ private var dialog: AlertDialog? = null
+ private val binding = DialogUnlockNotesBinding.inflate(activity.layoutInflater)
+ private val view = binding.root
+ private val redColor = activity.getColor(com.simplemobiletools.commons.R.color.md_red)
+ private val greenColor = activity.getColor(com.simplemobiletools.commons.R.color.md_green)
+ private val unlockedNoteIds = mutableListOf()
+
+ init {
+ for (note in notes) {
+ addLockedNoteView(note)
+ }
+
+ activity.getAlertDialogBuilder()
+ .setPositiveButton(com.simplemobiletools.commons.R.string.skip, null)
+ .setNegativeButton(com.simplemobiletools.commons.R.string.cancel, null)
+ .apply {
+ activity.setupDialogStuff(view, this, R.string.unlock_notes, cancelOnTouchOutside = false) { alertDialog ->
+ dialog = alertDialog
+ alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).setOnClickListener {
+ callback(unlockedNoteIds.mapNotNull { id -> notes.firstOrNull { it.id == id } })
+ alertDialog.dismiss()
+ }
+ }
+ }
+ }
+
+ private fun addLockedNoteView(note: Note) {
+ ItemLockedNoteBinding.inflate(activity.layoutInflater).apply {
+ binding.notesHolder.addView(this.root)
+ activity.updateTextColors(binding.notesHolder)
+ lockedNoteTitle.text = note.title
+ lockedUnlockedImage.applyColorFilter(redColor)
+ lockedNoteHolder.setOnClickListener {
+ if (note.id !in unlockedNoteIds) {
+ activity.performSecurityCheck(
+ protectionType = note.protectionType,
+ requiredHash = note.protectionHash,
+ successCallback = { _, _ ->
+ unlockedNoteIds.add(note.id!!)
+ lockedUnlockedImage.apply {
+ setImageResource(R.drawable.ic_lock_open_vector)
+ applyColorFilter(greenColor)
+ }
+ updatePositiveButton()
+ }
+ )
+ } else {
+ unlockedNoteIds.remove(note.id)
+ lockedUnlockedImage.apply {
+ setImageResource(com.simplemobiletools.commons.R.drawable.ic_lock_vector)
+ applyColorFilter(redColor)
+ }
+ updatePositiveButton()
+ }
+ }
+ }
+ }
+
+ private fun updatePositiveButton() {
+ dialog?.getButton(DialogInterface.BUTTON_POSITIVE)?.text = if (unlockedNoteIds.isNotEmpty()) {
+ activity.getString(com.simplemobiletools.commons.R.string.ok)
+ } else {
+ activity.getString(com.simplemobiletools.commons.R.string.skip)
+ }
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Context.kt
index ee459e6d6..b958e11fc 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Context.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Context.kt
@@ -1,14 +1,28 @@
package com.simplemobiletools.notes.pro.extensions
+import android.app.AlarmManager
+import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.content.ComponentName
import android.content.Context
import android.content.Intent
+import androidx.core.app.AlarmManagerCompat
+import com.simplemobiletools.commons.activities.BaseSimpleActivity
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.commons.helpers.ExportResult
+import com.simplemobiletools.commons.helpers.ensureBackgroundThread
+import com.simplemobiletools.commons.helpers.isRPlus
+import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.databases.NotesDatabase
-import com.simplemobiletools.notes.pro.helpers.Config
-import com.simplemobiletools.notes.pro.helpers.MyWidgetProvider
+import com.simplemobiletools.notes.pro.dialogs.UnlockNotesDialog
+import com.simplemobiletools.notes.pro.helpers.*
import com.simplemobiletools.notes.pro.interfaces.NotesDao
import com.simplemobiletools.notes.pro.interfaces.WidgetsDao
+import com.simplemobiletools.notes.pro.models.Note
+import com.simplemobiletools.notes.pro.receivers.AutomaticBackupReceiver
+import org.joda.time.DateTime
+import java.io.File
+import java.io.FileOutputStream
val Context.config: Config get() = Config.newInstance(applicationContext)
@@ -17,7 +31,7 @@ val Context.notesDB: NotesDao get() = NotesDatabase.getInstance(applicationConte
val Context.widgetsDB: WidgetsDao get() = NotesDatabase.getInstance(applicationContext).WidgetsDao()
fun Context.updateWidgets() {
- val widgetIDs = AppWidgetManager.getInstance(applicationContext).getAppWidgetIds(ComponentName(applicationContext, MyWidgetProvider::class.java))
+ val widgetIDs = AppWidgetManager.getInstance(applicationContext)?.getAppWidgetIds(ComponentName(applicationContext, MyWidgetProvider::class.java)) ?: return
if (widgetIDs.isNotEmpty()) {
Intent(applicationContext, MyWidgetProvider::class.java).apply {
action = AppWidgetManager.ACTION_APPWIDGET_UPDATE
@@ -26,3 +40,124 @@ fun Context.updateWidgets() {
}
}
}
+
+fun Context.getPercentageFontSize() = resources.getDimension(com.simplemobiletools.commons.R.dimen.middle_text_size) * (config.fontSizePercentage / 100f)
+
+fun BaseSimpleActivity.requestUnlockNotes(notes: List, callback: (unlockedNotes: List) -> Unit) {
+ val lockedNotes = notes.filter { it.isLocked() }
+ if (lockedNotes.isNotEmpty()) {
+ runOnUiThread {
+ UnlockNotesDialog(this, lockedNotes, callback)
+ }
+ } else {
+ callback(emptyList())
+ }
+}
+
+fun Context.getAutomaticBackupIntent(): PendingIntent {
+ val intent = Intent(this, AutomaticBackupReceiver::class.java)
+ return PendingIntent.getBroadcast(this, AUTOMATIC_BACKUP_REQUEST_CODE, intent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
+}
+
+fun Context.scheduleNextAutomaticBackup() {
+ if (config.autoBackup) {
+ val backupAtMillis = getNextAutoBackupTime().millis
+ val pendingIntent = getAutomaticBackupIntent()
+ val alarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
+ try {
+ AlarmManagerCompat.setExactAndAllowWhileIdle(alarmManager, AlarmManager.RTC_WAKEUP, backupAtMillis, pendingIntent)
+ } catch (e: Exception) {
+ showErrorToast(e)
+ }
+ }
+}
+
+fun Context.cancelScheduledAutomaticBackup() {
+ val alarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
+ alarmManager.cancel(getAutomaticBackupIntent())
+}
+
+fun Context.checkAndBackupNotesOnBoot() {
+ if (config.autoBackup) {
+ val previousRealBackupTime = config.lastAutoBackupTime
+ val previousScheduledBackupTime = getPreviousAutoBackupTime().millis
+ val missedPreviousBackup = previousRealBackupTime < previousScheduledBackupTime
+ if (missedPreviousBackup) {
+ // device was probably off at the scheduled time so backup now
+ backupNotes()
+ }
+ }
+}
+
+fun Context.backupNotes() {
+ require(isRPlus())
+ ensureBackgroundThread {
+ val config = config
+ NotesHelper(this).getNotes { notesToBackup ->
+ if (notesToBackup.isEmpty()) {
+ toast(com.simplemobiletools.commons.R.string.no_entries_for_exporting)
+ config.lastAutoBackupTime = DateTime.now().millis
+ scheduleNextAutomaticBackup()
+ return@getNotes
+ }
+
+
+ val now = DateTime.now()
+ val year = now.year.toString()
+ val month = now.monthOfYear.ensureTwoDigits()
+ val day = now.dayOfMonth.ensureTwoDigits()
+ val hours = now.hourOfDay.ensureTwoDigits()
+ val minutes = now.minuteOfHour.ensureTwoDigits()
+ val seconds = now.secondOfMinute.ensureTwoDigits()
+
+ val filename = config.autoBackupFilename
+ .replace("%Y", year, false)
+ .replace("%M", month, false)
+ .replace("%D", day, false)
+ .replace("%h", hours, false)
+ .replace("%m", minutes, false)
+ .replace("%s", seconds, false)
+
+ val outputFolder = File(config.autoBackupFolder).apply {
+ mkdirs()
+ }
+
+ var exportFile = File(outputFolder, "$filename.json")
+ var exportFilePath = exportFile.absolutePath
+ val outputStream = try {
+ if (hasProperStoredFirstParentUri(exportFilePath)) {
+ val exportFileUri = createDocumentUriUsingFirstParentTreeUri(exportFilePath)
+ if (!getDoesFilePathExist(exportFilePath)) {
+ createSAFFileSdk30(exportFilePath)
+ }
+ applicationContext.contentResolver.openOutputStream(exportFileUri, "wt") ?: FileOutputStream(exportFile)
+ } else {
+ var num = 0
+ while (getDoesFilePathExist(exportFilePath) && !exportFile.canWrite()) {
+ num++
+ exportFile = File(outputFolder, "${filename}_${num}.json")
+ exportFilePath = exportFile.absolutePath
+ }
+ FileOutputStream(exportFile)
+ }
+ } catch (e: Exception) {
+ showErrorToast(e)
+ scheduleNextAutomaticBackup()
+ return@getNotes
+ }
+
+ val exportResult = try {
+ NotesHelper(this).exportNotes(notesToBackup, outputStream)
+ } catch (e: Exception) {
+ showErrorToast(e)
+ }
+
+ if (exportResult == ExportResult.EXPORT_FAIL) {
+ toast(com.simplemobiletools.commons.R.string.exporting_failed)
+ }
+
+ config.lastAutoBackupTime = DateTime.now().millis
+ scheduleNextAutomaticBackup()
+ }
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Fragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Fragment.kt
index 3524f4f5a..4a1bc2ee8 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Fragment.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Fragment.kt
@@ -1,9 +1,6 @@
package com.simplemobiletools.notes.pro.extensions
import androidx.fragment.app.Fragment
-import androidx.fragment.app.FragmentActivity
import com.simplemobiletools.notes.pro.helpers.Config
val Fragment.config: Config? get() = if (context != null) Config.newInstance(context!!) else null
-
-val Fragment.requiredActivity: FragmentActivity get() = this.activity!!
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt
index a7be6176a..5ecf3bf25 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt
@@ -8,7 +8,7 @@ fun String.parseChecklistItems(): ArrayList? {
if (startsWith("[{") && endsWith("}]")) {
try {
val checklistItemType = object : TypeToken>() {}.type
- return Gson().fromJson>(this, checklistItemType) ?: ArrayList(1)
+ return Gson().fromJson>(this, checklistItemType) ?: null
} catch (e: Exception) {
}
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt
index bceb11cc6..04003ed7b 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt
@@ -1,45 +1,46 @@
package com.simplemobiletools.notes.pro.fragments
-import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
+import android.widget.ImageView
+import android.widget.TextView
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.commons.helpers.SORT_BY_CUSTOM
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
-import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.SimpleActivity
import com.simplemobiletools.notes.pro.adapters.ChecklistAdapter
+import com.simplemobiletools.notes.pro.databinding.FragmentChecklistBinding
import com.simplemobiletools.notes.pro.dialogs.NewChecklistItemDialog
-import com.simplemobiletools.notes.pro.extensions.*
+import com.simplemobiletools.notes.pro.extensions.config
+import com.simplemobiletools.notes.pro.extensions.updateWidgets
import com.simplemobiletools.notes.pro.helpers.NOTE_ID
import com.simplemobiletools.notes.pro.helpers.NotesHelper
import com.simplemobiletools.notes.pro.interfaces.ChecklistItemsListener
import com.simplemobiletools.notes.pro.models.ChecklistItem
import com.simplemobiletools.notes.pro.models.Note
-import kotlinx.android.synthetic.main.fragment_checklist.view.*
+import java.io.File
class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
private var noteId = 0L
- private var items = ArrayList()
- private var note: Note? = null
- lateinit var view: ViewGroup
+ private lateinit var binding: FragmentChecklistBinding
- val checklistItems get(): String = Gson().toJson(items)
+ var items = mutableListOf()
- override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
- view = inflater.inflate(R.layout.fragment_checklist, container, false) as ViewGroup
- noteId = arguments!!.getLong(NOTE_ID, 0L)
- return view
+ override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
+ binding = FragmentChecklistBinding.inflate(inflater, container, false)
+ noteId = requireArguments().getLong(NOTE_ID, 0L)
+ setupFragmentColors()
+ return binding.root
}
override fun onResume() {
super.onResume()
-
loadNoteById(noteId)
}
@@ -48,28 +49,31 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
if (menuVisible) {
activity?.hideKeyboard()
+ } else if (::binding.isInitialized) {
+ (binding.checklistList.adapter as? ChecklistAdapter)?.finishActMode()
}
}
private fun loadNoteById(noteId: Long) {
- NotesHelper(requiredActivity).getNoteWithId(noteId) { storedNote ->
+ NotesHelper(requireActivity()).getNoteWithId(noteId) { storedNote ->
if (storedNote != null && activity?.isDestroyed == false) {
note = storedNote
try {
val checklistItemType = object : TypeToken>() {}.type
- items = Gson().fromJson>(storedNote.value, checklistItemType)
- ?: ArrayList(1)
+ items = Gson().fromJson>(storedNote.getNoteStoredValue(requireActivity()), checklistItemType) ?: ArrayList(1)
+
+ // checklist title can be null only because of the glitch in upgrade to 6.6.0, remove this check in the future
+ items = items.filter { it.title != null }.toMutableList() as ArrayList
+ val sorting = config?.sorting ?: 0
+ if (sorting and SORT_BY_CUSTOM == 0 && config?.moveDoneChecklistItems == true) {
+ items.sortBy { it.isDone }
+ }
+
+ setupFragment()
} catch (e: Exception) {
migrateCheckListOnFailure(storedNote)
}
-
- if (config?.moveUndoneChecklistItems == true) {
- items.sortBy { it.isDone }
- }
-
- requiredActivity.updateTextColors(view.checklist_holder)
- setupFragment()
}
}
}
@@ -77,72 +81,104 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
private fun migrateCheckListOnFailure(note: Note) {
items.clear()
- note.value.split("\n").map { it.trim() }.filter { it.isNotBlank() }.forEachIndexed { index, value ->
- items.add(ChecklistItem(
+ note.getNoteStoredValue(requireActivity())?.split("\n")?.map { it.trim() }?.filter { it.isNotBlank() }?.forEachIndexed { index, value ->
+ items.add(
+ ChecklistItem(
id = index,
title = value,
isDone = false
- ))
+ )
+ )
}
saveChecklist()
}
private fun setupFragment() {
- val plusIcon = resources.getColoredDrawableWithColor(R.drawable.ic_plus_vector, if (requiredActivity.isBlackAndWhiteTheme()) Color.BLACK else Color.WHITE)
-
- view.apply {
- with(checklist_fab) {
- setImageDrawable(plusIcon)
- background.applyColorFilter(requiredActivity.getAdjustedPrimaryColor())
- setOnClickListener {
- showNewItemDialog()
- }
+ if (activity == null || requireActivity().isFinishing) {
+ return
+ }
+
+ setupFragmentColors()
+ checkLockState()
+ setupAdapter()
+ }
+
+ private fun setupFragmentColors() {
+ val adjustedPrimaryColor = requireActivity().getProperPrimaryColor()
+ binding.checklistFab.apply {
+ setColors(
+ requireActivity().getProperTextColor(),
+ adjustedPrimaryColor,
+ adjustedPrimaryColor.getContrastColor()
+ )
+
+ setOnClickListener {
+ showNewItemDialog()
+ (binding.checklistList.adapter as? ChecklistAdapter)?.finishActMode()
}
+ }
- with(fragment_placeholder_2) {
- setTextColor(requiredActivity.getAdjustedPrimaryColor())
- underlineText()
- setOnClickListener {
- showNewItemDialog()
- }
+ binding.fragmentPlaceholder.setTextColor(requireActivity().getProperTextColor())
+ binding.fragmentPlaceholder2.apply {
+ setTextColor(adjustedPrimaryColor)
+ underlineText()
+ setOnClickListener {
+ showNewItemDialog()
}
}
+ }
- setupAdapter()
+ override fun checkLockState() {
+ if (note == null) {
+ return
+ }
+
+ binding.apply {
+ checklistContentHolder.beVisibleIf(!note!!.isLocked() || shouldShowLockedContent)
+ checklistFab.beVisibleIf(!note!!.isLocked() || shouldShowLockedContent)
+ setupLockedViews(this.toCommonBinding(), note!!)
+ }
}
private fun showNewItemDialog() {
NewChecklistItemDialog(activity as SimpleActivity) { titles ->
- var currentMaxId = items.maxBy { item -> item.id }?.id ?: 0
+ var currentMaxId = items.maxByOrNull { item -> item.id }?.id ?: 0
+ val newItems = ArrayList()
titles.forEach { title ->
title.split("\n").map { it.trim() }.filter { it.isNotBlank() }.forEach { row ->
- items.add(ChecklistItem(currentMaxId + 1, row, false))
+ newItems.add(ChecklistItem(currentMaxId + 1, System.currentTimeMillis(), row, false))
currentMaxId++
}
}
+ if (config?.addNewChecklistItemsTop == true) {
+ items.addAll(0, newItems)
+ } else {
+ items.addAll(newItems)
+ }
+
saveNote()
setupAdapter()
-
- (view.checklist_list.adapter as? ChecklistAdapter)?.notifyDataSetChanged()
}
}
private fun setupAdapter() {
- with(view) {
- fragment_placeholder.beVisibleIf(items.isEmpty())
- fragment_placeholder_2.beVisibleIf(items.isEmpty())
- checklist_list.beVisibleIf(items.isNotEmpty())
+ updateUIVisibility()
+ ChecklistItem.sorting = requireContext().config.sorting
+ if (ChecklistItem.sorting and SORT_BY_CUSTOM == 0) {
+ items.sort()
+ if (context?.config?.moveDoneChecklistItems == true) {
+ items.sortBy { it.isDone }
+ }
}
-
ChecklistAdapter(
- activity = activity as SimpleActivity,
- items = items,
- listener = this,
- recyclerView = view.checklist_list,
- showIcons = true
+ activity = activity as SimpleActivity,
+ items = items,
+ listener = this,
+ recyclerView = binding.checklistList,
+ showIcons = true
) { item ->
val clickedNote = item as ChecklistItem
clickedNote.isDone = !clickedNote.isDone
@@ -150,33 +186,72 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
saveNote(items.indexOfFirst { it.id == clickedNote.id })
context?.updateWidgets()
}.apply {
- view.checklist_list.adapter = this
+ binding.checklistList.adapter = this
}
}
- private fun saveNote(refreshIndex: Int = -1) {
- ensureBackgroundThread {
- context?.let { ctx ->
- note?.let { currentNote ->
- if (refreshIndex != -1) {
- view.checklist_list.post {
- view.checklist_list.adapter?.notifyItemChanged(refreshIndex)
- }
- }
+ private fun saveNote(refreshIndex: Int = -1, callback: () -> Unit = {}) {
+ if (note == null) {
+ return
+ }
+
+ if (note!!.path.isNotEmpty() && !note!!.path.startsWith("content://") && !File(note!!.path).exists()) {
+ return
+ }
- currentNote.value = checklistItems
- ctx.notesDB.insertOrUpdate(currentNote)
- ctx.updateWidgets()
+ if (context == null || activity == null) {
+ return
+ }
+
+ if (note != null) {
+ if (refreshIndex != -1) {
+ binding.checklistList.post {
+ binding.checklistList.adapter?.notifyItemChanged(refreshIndex)
}
}
+
+ note!!.value = getChecklistItems()
+
+ ensureBackgroundThread {
+ saveNoteValue(note!!, note!!.value)
+ context?.updateWidgets()
+ activity?.runOnUiThread(callback)
+ }
}
}
- override fun saveChecklist() {
+ fun removeDoneItems() {
+ items = items.filter { !it.isDone }.toMutableList() as ArrayList
saveNote()
+ setupAdapter()
+ }
+
+ private fun updateUIVisibility() {
+ binding.apply {
+ fragmentPlaceholder.beVisibleIf(items.isEmpty())
+ fragmentPlaceholder2.beVisibleIf(items.isEmpty())
+ checklistList.beVisibleIf(items.isNotEmpty())
+ }
+ }
+
+ fun getChecklistItems() = Gson().toJson(items)
+
+ override fun saveChecklist(callback: () -> Unit) {
+ saveNote(callback = callback)
}
override fun refreshItems() {
+ loadNoteById(noteId)
setupAdapter()
}
+
+ private fun FragmentChecklistBinding.toCommonBinding(): CommonNoteBinding = this.let {
+ object : CommonNoteBinding {
+ override val root: View = it.root
+ override val noteLockedLayout: View = it.noteLockedLayout
+ override val noteLockedImage: ImageView = it.noteLockedImage
+ override val noteLockedLabel: TextView = it.noteLockedLabel
+ override val noteLockedShow: TextView = it.noteLockedShow
+ }
+ }
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/NoteFragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/NoteFragment.kt
index fced95288..132e80d0e 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/NoteFragment.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/NoteFragment.kt
@@ -1,5 +1,84 @@
package com.simplemobiletools.notes.pro.fragments
+import android.util.TypedValue
+import android.view.View
+import android.widget.ImageView
+import android.widget.TextView
import androidx.fragment.app.Fragment
+import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.commons.helpers.PROTECTION_NONE
+import com.simplemobiletools.notes.pro.activities.MainActivity
+import com.simplemobiletools.notes.pro.extensions.config
+import com.simplemobiletools.notes.pro.extensions.getPercentageFontSize
+import com.simplemobiletools.notes.pro.helpers.NotesHelper
+import com.simplemobiletools.notes.pro.models.Note
-abstract class NoteFragment : Fragment()
+abstract class NoteFragment : Fragment() {
+ protected var note: Note? = null
+ var shouldShowLockedContent = false
+
+ protected fun setupLockedViews(binding: CommonNoteBinding, note: Note) {
+ binding.apply {
+ noteLockedLayout.beVisibleIf(note.isLocked() && !shouldShowLockedContent)
+ noteLockedImage.applyColorFilter(requireContext().getProperTextColor())
+
+ noteLockedLabel.setTextColor(requireContext().getProperTextColor())
+ noteLockedLabel.setTextSize(TypedValue.COMPLEX_UNIT_PX, binding.root.context.getPercentageFontSize())
+
+ noteLockedShow.underlineText()
+ noteLockedShow.setTextColor(requireContext().getProperPrimaryColor())
+ noteLockedShow.setTextSize(TypedValue.COMPLEX_UNIT_PX, binding.root.context.getPercentageFontSize())
+ noteLockedShow.setOnClickListener {
+ handleUnlocking()
+ }
+ }
+ }
+
+ protected fun saveNoteValue(note: Note, content: String?) {
+ if (note.path.isEmpty()) {
+ NotesHelper(requireActivity()).insertOrUpdateNote(note) {
+ (activity as? MainActivity)?.noteSavedSuccessfully(note.title)
+ }
+ } else {
+ if (content != null) {
+ val displaySuccess = activity?.config?.displaySuccess ?: false
+ (activity as? MainActivity)?.tryExportNoteValueToFile(note.path, note.title, content, displaySuccess)
+ }
+ }
+ }
+
+ fun handleUnlocking(callback: (() -> Unit)? = null) {
+ if (callback != null && (note!!.protectionType == PROTECTION_NONE || shouldShowLockedContent)) {
+ callback()
+ return
+ }
+
+ activity?.performSecurityCheck(
+ protectionType = note!!.protectionType,
+ requiredHash = note!!.protectionHash,
+ successCallback = { _, _ ->
+ shouldShowLockedContent = true
+ checkLockState()
+ callback?.invoke()
+ }
+ )
+ }
+
+ fun updateNoteValue(value: String) {
+ note?.value = value
+ }
+
+ fun updateNotePath(path: String) {
+ note?.path = path
+ }
+
+ abstract fun checkLockState()
+
+ interface CommonNoteBinding {
+ val root: View
+ val noteLockedLayout: View
+ val noteLockedImage: ImageView
+ val noteLockedLabel: TextView
+ val noteLockedShow: TextView
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt
index a813a8785..ff142fbb1 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt
@@ -1,5 +1,7 @@
package com.simplemobiletools.notes.pro.fragments
+import android.annotation.SuppressLint
+import android.content.Context
import android.graphics.Typeface
import android.os.Bundle
import android.text.Editable
@@ -9,22 +11,30 @@ import android.text.style.UnderlineSpan
import android.text.util.Linkify
import android.util.TypedValue
import android.view.LayoutInflater
+import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
+import android.view.inputmethod.InputMethodManager
+import android.widget.ImageView
+import android.widget.TextView
+import androidx.viewbinding.ViewBinding
import com.simplemobiletools.commons.extensions.*
+import com.simplemobiletools.commons.views.MyEditText
+import com.simplemobiletools.commons.views.MyTextView
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.MainActivity
+import com.simplemobiletools.notes.pro.databinding.FragmentTextBinding
+import com.simplemobiletools.notes.pro.databinding.NoteViewHorizScrollableBinding
+import com.simplemobiletools.notes.pro.databinding.NoteViewStaticBinding
import com.simplemobiletools.notes.pro.extensions.config
+import com.simplemobiletools.notes.pro.extensions.getPercentageFontSize
import com.simplemobiletools.notes.pro.extensions.updateWidgets
import com.simplemobiletools.notes.pro.helpers.MyMovementMethod
import com.simplemobiletools.notes.pro.helpers.NOTE_ID
import com.simplemobiletools.notes.pro.helpers.NotesHelper
-import com.simplemobiletools.notes.pro.models.Note
import com.simplemobiletools.notes.pro.models.TextHistory
import com.simplemobiletools.notes.pro.models.TextHistoryItem
-import kotlinx.android.synthetic.main.fragment_text.view.*
-import kotlinx.android.synthetic.main.note_view_horiz_scrollable.view.*
import java.io.File
// text history handling taken from https://gist.github.com/zeleven/0cfa738c1e8b65b23ff7df1fc30c9f7e
@@ -35,36 +45,50 @@ class TextFragment : NoteFragment() {
private var isUndoOrRedo = false
private var skipTextUpdating = false
private var noteId = 0L
- private var note: Note? = null
+ private var touchDownX = 0f
+ private var moveXThreshold = 0 // make sure swiping across notes works well, do not swallow the gestures
- lateinit var view: ViewGroup
+ private lateinit var binding: FragmentTextBinding
+ private lateinit var innerBinding: ViewBinding
+ private lateinit var noteEditText: MyEditText
- override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
- view = inflater.inflate(R.layout.fragment_text, container, false) as ViewGroup
- noteId = arguments!!.getLong(NOTE_ID, 0L)
+ override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
+ binding = FragmentTextBinding.inflate(inflater, container, false)
+ noteId = requireArguments().getLong(NOTE_ID, 0L)
+ moveXThreshold = resources.getDimension(com.simplemobiletools.commons.R.dimen.activity_margin).toInt()
retainInstance = true
- val layoutToInflate = if (config!!.enableLineWrap) R.layout.note_view_static else R.layout.note_view_horiz_scrollable
- inflater.inflate(layoutToInflate, view.notes_relative_layout, true)
+ innerBinding = if (config!!.enableLineWrap) {
+ NoteViewStaticBinding.inflate(inflater, binding.notesRelativeLayout, true).apply {
+ noteEditText = textNoteView
+ }
+ } else {
+ NoteViewHorizScrollableBinding.inflate(inflater, binding.notesRelativeLayout, true).apply {
+ noteEditText = textNoteView
+ }
+ }
if (config!!.clickableLinks) {
- view.text_note_view.apply {
+ noteEditText.apply {
linksClickable = true
autoLinkMask = Linkify.WEB_URLS or Linkify.EMAIL_ADDRESSES
movementMethod = MyMovementMethod.getInstance()
}
}
- view.notes_horizontal_scrollview?.onGlobalLayout {
- view.text_note_view.minWidth = view.notes_horizontal_scrollview.width
+ if (innerBinding is NoteViewHorizScrollableBinding) {
+ val casted = innerBinding as NoteViewHorizScrollableBinding
+ casted.notesHorizontalScrollview.onGlobalLayout {
+ casted.textNoteView.minWidth = casted.notesHorizontalScrollview.width
+ }
}
- return view
+ return binding.root
}
override fun onResume() {
super.onResume()
- NotesHelper(activity!!).getNoteWithId(noteId) {
+ NotesHelper(requireActivity()).getNoteWithId(noteId) {
if (it != null) {
note = it
setupFragment()
@@ -77,7 +101,8 @@ class TextFragment : NoteFragment() {
if (config!!.autosaveNotes) {
saveText(false)
}
- view.text_note_view.removeTextChangedListener(textWatcher)
+
+ removeTextWatcher()
}
override fun setMenuVisibility(menuVisible: Boolean) {
@@ -106,37 +131,46 @@ class TextFragment : NoteFragment() {
if (savedInstanceState != null && note != null && savedInstanceState.containsKey(TEXT)) {
skipTextUpdating = true
val newText = savedInstanceState.getString(TEXT) ?: ""
- view.text_note_view.setText(newText)
+ innerBinding.root.findViewById(R.id.text_note_view).text = newText
}
}
+ @SuppressLint("ClickableViewAccessibility")
private fun setupFragment() {
val config = config ?: return
- view.text_note_view.apply {
+ noteEditText.apply {
typeface = if (config.monospacedFont) Typeface.MONOSPACE else Typeface.DEFAULT
- val fileContents = note!!.getNoteStoredValue()
+ val fileContents = note!!.getNoteStoredValue(context)
if (fileContents == null) {
(activity as MainActivity).deleteNote(false, note!!)
return
}
- val adjustedPrimaryColor = context.getAdjustedPrimaryColor()
- setColors(config.textColor, adjustedPrimaryColor, config.backgroundColor)
- setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
+ val adjustedPrimaryColor = context.getProperPrimaryColor()
+ setColors(context.getProperTextColor(), adjustedPrimaryColor, context.getProperBackgroundColor())
+ setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getPercentageFontSize())
highlightColor = adjustedPrimaryColor.adjustAlpha(.4f)
gravity = config.getTextGravity()
if (text.toString() != fileContents) {
if (!skipTextUpdating) {
+ removeTextWatcher()
setText(fileContents)
+ setTextWatcher()
}
skipTextUpdating = false
- setSelection(if (config.placeCursorToEnd) text.length else 0)
+ setSelection(if (config.placeCursorToEnd) text!!.length else 0)
}
- if (config.showKeyboard) {
- requestFocus()
+ if (config.showKeyboard && isMenuVisible && (!note!!.isLocked() || shouldShowLockedContent)) {
+ onGlobalLayout {
+ if (activity?.isDestroyed == false) {
+ requestFocus()
+ val inputManager = requireActivity().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
+ inputManager.showSoftInput(this, InputMethodManager.SHOW_IMPLICIT)
+ }
+ }
}
imeOptions = if (config.useIncognitoMode) {
@@ -146,33 +180,57 @@ class TextFragment : NoteFragment() {
}
}
+ noteEditText.setOnTouchListener { v, event ->
+ when (event.action) {
+ MotionEvent.ACTION_DOWN -> touchDownX = event.x
+ MotionEvent.ACTION_MOVE -> {
+ val diffX = Math.abs(event.x - touchDownX)
+ if (diffX > moveXThreshold) {
+ binding.root.requestDisallowInterceptTouchEvent(false)
+ }
+ }
+ }
+ false
+ }
+
if (config.showWordCount) {
- view.notes_counter.beVisible()
- view.notes_counter.setTextColor(config.textColor)
- setWordCounter(view.text_note_view.text.toString())
- } else {
- view.notes_counter.beGone()
+ binding.notesCounter.setTextColor(requireContext().getProperTextColor())
+ setWordCounter(noteEditText.text.toString())
}
- view.text_note_view.addTextChangedListener(textWatcher)
+ checkLockState()
+ setTextWatcher()
}
- fun updateNoteValue(value: String) {
- note?.value = value
+ fun setTextWatcher() {
+ noteEditText.apply {
+ removeTextChangedListener(textWatcher)
+ addTextChangedListener(textWatcher)
+ }
}
- fun updateNotePath(path: String) {
- note?.path = path
+ fun removeTextWatcher() = noteEditText.removeTextChangedListener(textWatcher)
+
+ override fun checkLockState() {
+ if (note == null) {
+ return
+ }
+
+ binding.apply {
+ notesCounter.beVisibleIf((!note!!.isLocked() || shouldShowLockedContent) && config!!.showWordCount)
+ notesScrollview.beVisibleIf(!note!!.isLocked() || shouldShowLockedContent)
+ setupLockedViews(this.toCommonBinding(), note!!)
+ }
}
- fun getNotesView() = view.text_note_view
+ fun getNotesView() = noteEditText
fun saveText(force: Boolean) {
if (note == null) {
return
}
- if (note!!.path.isNotEmpty() && !File(note!!.path).exists()) {
+ if (note!!.path.isNotEmpty() && !note!!.path.startsWith("content://") && !File(note!!.path).exists()) {
return
}
@@ -181,45 +239,31 @@ class TextFragment : NoteFragment() {
}
val newText = getCurrentNoteViewText()
- val oldText = note!!.getNoteStoredValue()
+ val oldText = note!!.getNoteStoredValue(requireContext())
if (newText != null && (newText != oldText || force)) {
note!!.value = newText
- saveNoteValue(note!!)
- context!!.updateWidgets()
+ saveNoteValue(note!!, newText)
+ requireContext().updateWidgets()
}
}
- fun hasUnsavedChanges() = getCurrentNoteViewText() != note!!.getNoteStoredValue()
+ fun hasUnsavedChanges() = note != null && getCurrentNoteViewText() != note!!.getNoteStoredValue(requireContext())
fun focusEditText() {
- view.text_note_view.requestFocus()
- }
-
- private fun saveNoteValue(note: Note) {
- if (note.path.isEmpty()) {
- NotesHelper(activity!!).insertOrUpdateNote(note) {
- (activity as? MainActivity)?.noteSavedSuccessfully(note.title)
- }
- } else {
- val currentText = getCurrentNoteViewText()
- if (currentText != null) {
- val displaySuccess = activity?.config?.displaySuccess ?: false
- (activity as? MainActivity)?.tryExportNoteValueToFile(note.path, currentText, displaySuccess)
- }
- }
+ noteEditText.requestFocus()
}
- fun getCurrentNoteViewText() = view.text_note_view?.text?.toString()
+ fun getCurrentNoteViewText() = noteEditText.text?.toString()
private fun setWordCounter(text: String) {
val words = text.replace("\n", " ").split(" ")
- view.notes_counter.text = words.count { it.isNotEmpty() }.toString()
+ binding.notesCounter.text = words.count { it.isNotEmpty() }.toString()
}
fun undo() {
val edit = textHistory.getPrevious() ?: return
- val text = view.text_note_view.editableText
+ val text = noteEditText.editableText
val start = edit.start
val end = start + if (edit.after != null) edit.after.length else 0
@@ -237,17 +281,19 @@ class TextFragment : NoteFragment() {
text.removeSpan(span)
}
- Selection.setSelection(text, if (edit.before == null) {
- start
- } else {
- start + edit.before.length
- })
+ Selection.setSelection(
+ text, if (edit.before == null) {
+ start
+ } else {
+ start + edit.before.length
+ }
+ )
}
fun redo() {
val edit = textHistory.getNext() ?: return
- val text = view.text_note_view.editableText
+ val text = noteEditText.editableText
val start = edit.start
val end = start + if (edit.before != null) edit.before.length else 0
@@ -259,11 +305,13 @@ class TextFragment : NoteFragment() {
text.removeSpan(o)
}
- Selection.setSelection(text, if (edit.after == null) {
- start
- } else {
- start + edit.after.length
- })
+ Selection.setSelection(
+ text, if (edit.after == null) {
+ start
+ } else {
+ start + edit.after.length
+ }
+ )
}
fun isUndoAvailable() = textHistory.position > 0
@@ -293,4 +341,14 @@ class TextFragment : NoteFragment() {
(activity as MainActivity).currentNoteTextChanged(text, isUndoAvailable(), isRedoAvailable())
}
}
+
+ private fun FragmentTextBinding.toCommonBinding(): CommonNoteBinding = this.let {
+ object : CommonNoteBinding {
+ override val root: View = it.root
+ override val noteLockedLayout: View = it.noteLockedLayout
+ override val noteLockedImage: ImageView = it.noteLockedImage
+ override val noteLockedLabel: TextView = it.noteLockedLabel
+ override val noteLockedShow: TextView = it.noteLockedShow
+ }
+ }
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/CollatorBasedComparator.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/CollatorBasedComparator.kt
new file mode 100644
index 000000000..3ac26f173
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/CollatorBasedComparator.kt
@@ -0,0 +1,81 @@
+package com.simplemobiletools.notes.pro.helpers
+
+import java.text.Collator
+
+/**
+ * Collator-based string comparator
+ *
+ * Adapted from AlphanumericComparator to support numerical collation. It sorts accents properly too.
+ */
+class CollatorBasedComparator : Comparator {
+ override fun compare(string1: String, string2: String): Int {
+ val collator = getCollator()
+
+ var thisMarker = 0
+ var thatMarker = 0
+
+ while (thisMarker < string1.length && thatMarker < string2.length) {
+ val thisChunk = getChunk(string1, string1.length, thisMarker)
+ thisMarker += thisChunk.length
+
+ val thatChunk = getChunk(string2, string2.length, thatMarker)
+ thatMarker += thatChunk.length
+
+ val result = if (isDigit(thisChunk[0]) && isDigit(thatChunk[0])) {
+ collateNumerically(thisChunk, thatChunk)
+ } else {
+ collator.compare(thisChunk, thatChunk)
+ }
+
+ if (result != 0) {
+ return coerceResult(result)
+ }
+ }
+
+ return coerceResult(string1.length - string2.length)
+ }
+
+ private fun collateNumerically(string1: String, string2: String): Int {
+ var result: Int
+ result = string1.length - string2.length
+ if (result == 0) {
+ // equal length, the first different number counts
+ for (i in string1.indices) {
+ result = string1[i] - string2[i]
+ if (result != 0) {
+ break
+ }
+ }
+ }
+ return result
+ }
+
+ private fun getChunk(string: String, length: Int, marker: Int): String {
+ var current = marker
+ var c = string[current]
+ val chunk = StringBuilder(c.toString())
+ current++
+ val chunkOfDigits = isDigit(c)
+ while (current < length) {
+ c = string[current]
+ if (isDigit(c) != chunkOfDigits) {
+ break
+ }
+ chunk.append(c)
+ current++
+ }
+
+ return chunk.toString()
+ }
+
+ private fun isDigit(ch: Char) = ch in '0'..'9'
+
+ private fun coerceResult(compareToResult: Int) = compareToResult.coerceIn(-1, 1)
+
+ private fun getCollator(): Collator {
+ val collator = Collator.getInstance()
+ collator.strength = Collator.PRIMARY
+ collator.decomposition = Collator.CANONICAL_DECOMPOSITION
+ return collator
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/Config.kt
index d7de70188..99efa9300 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/Config.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/Config.kt
@@ -1,10 +1,10 @@
package com.simplemobiletools.notes.pro.helpers
-import android.annotation.SuppressLint
import android.content.Context
import android.os.Environment
import android.view.Gravity
import com.simplemobiletools.commons.helpers.BaseConfig
+import com.simplemobiletools.notes.pro.models.NoteType
class Config(context: Context) : BaseConfig(context) {
companion object {
@@ -40,7 +40,7 @@ class Config(context: Context) : BaseConfig(context) {
set(showWordCount) = prefs.edit().putBoolean(SHOW_WORD_COUNT, showWordCount).apply()
var gravity: Int
- get() = prefs.getInt(GRAVITY, GRAVITY_LEFT)
+ get() = prefs.getInt(GRAVITY, GRAVITY_START)
set(size) = prefs.edit().putInt(GRAVITY, size).apply()
var currentNoteId: Long
@@ -75,14 +75,21 @@ class Config(context: Context) : BaseConfig(context) {
get() = prefs.getInt(LAST_CREATED_NOTE_TYPE, NoteType.TYPE_TEXT.value)
set(lastCreatedNoteType) = prefs.edit().putInt(LAST_CREATED_NOTE_TYPE, lastCreatedNoteType).apply()
- var moveUndoneChecklistItems: Boolean
- get() = prefs.getBoolean(MOVE_UNDONE_CHECKLIST_ITEMS, false)
- set(moveUndoneChecklistItems) = prefs.edit().putBoolean(MOVE_UNDONE_CHECKLIST_ITEMS, moveUndoneChecklistItems).apply()
+ var moveDoneChecklistItems: Boolean
+ get() = prefs.getBoolean(MOVE_DONE_CHECKLIST_ITEMS, false)
+ set(moveDoneChecklistItems) = prefs.edit().putBoolean(MOVE_DONE_CHECKLIST_ITEMS, moveDoneChecklistItems).apply()
- @SuppressLint("RtlHardcoded")
fun getTextGravity() = when (gravity) {
GRAVITY_CENTER -> Gravity.CENTER_HORIZONTAL
- GRAVITY_RIGHT -> Gravity.RIGHT
- else -> Gravity.LEFT
+ GRAVITY_END -> Gravity.END
+ else -> Gravity.START
}
+
+ var fontSizePercentage: Int
+ get() = prefs.getInt(FONT_SIZE_PERCENTAGE, 100)
+ set(fontSizePercentage) = prefs.edit().putInt(FONT_SIZE_PERCENTAGE, fontSizePercentage).apply()
+
+ var addNewChecklistItemsTop: Boolean
+ get() = prefs.getBoolean(ADD_NEW_CHECKLIST_ITEMS_TOP, false)
+ set(addNewCheckListItemsTop) = prefs.edit().putBoolean(ADD_NEW_CHECKLIST_ITEMS_TOP, addNewCheckListItemsTop).apply()
}
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 1eaac57b4..a61b28d59 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
@@ -1,6 +1,7 @@
package com.simplemobiletools.notes.pro.helpers
import android.graphics.Color
+import org.joda.time.DateTime
const val NOTE_ID = "note_id"
const val OPEN_NOTE_ID = "open_note_id"
@@ -10,6 +11,11 @@ const val CUSTOMIZED_WIDGET_KEY_ID = "customized_widget_key_id"
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
@@ -29,15 +35,48 @@ const val LAST_USED_SAVE_PATH = "last_used_save_path"
const val ENABLE_LINE_WRAP = "enable_line_wrap"
const val USE_INCOGNITO_MODE = "use_incognito_mode"
const val LAST_CREATED_NOTE_TYPE = "last_created_note_type"
-const val MOVE_UNDONE_CHECKLIST_ITEMS = "move_undone_checklist_items"
+const val MOVE_DONE_CHECKLIST_ITEMS = "move_undone_checklist_items" // it has been replaced from moving undone items at the top to moving done to bottom
+const val FONT_SIZE_PERCENTAGE = "font_size_percentage"
+const val EXPORT_MIME_TYPE = "text/plain"
+const val ADD_NEW_CHECKLIST_ITEMS_TOP = "add_new_checklist_items_top"
+
+// auto backups
+const val AUTOMATIC_BACKUP_REQUEST_CODE = 10001
+const val AUTO_BACKUP_INTERVAL_IN_DAYS = 1
+
+// 6 am is the hardcoded automatic backup time, intervals shorter than 1 day are not yet supported.
+fun getNextAutoBackupTime(): DateTime {
+ val now = DateTime.now()
+ val sixHour = now.withHourOfDay(6)
+ return if (now.millis < sixHour.millis) {
+ sixHour
+ } else {
+ sixHour.plusDays(AUTO_BACKUP_INTERVAL_IN_DAYS)
+ }
+}
+
+fun getPreviousAutoBackupTime(): DateTime {
+ val nextBackupTime = getNextAutoBackupTime()
+ return nextBackupTime.minusDays(AUTO_BACKUP_INTERVAL_IN_DAYS)
+}
// gravity
-const val GRAVITY_LEFT = 0
+const val GRAVITY_START = 0
const val GRAVITY_CENTER = 1
-const val GRAVITY_RIGHT = 2
-
-// note types
-enum class NoteType(val value: Int) { TYPE_TEXT(0), TYPE_CHECKLIST(1) }
+const val GRAVITY_END = 2
// mime types
const val MIME_TEXT_PLAIN = "text/plain"
+
+// font size percentage options
+const val FONT_SIZE_50_PERCENT = 50
+const val FONT_SIZE_60_PERCENT = 60
+const val FONT_SIZE_75_PERCENT = 75
+const val FONT_SIZE_90_PERCENT = 90
+const val FONT_SIZE_100_PERCENT = 100
+const val FONT_SIZE_125_PERCENT = 125
+const val FONT_SIZE_150_PERCENT = 150
+const val FONT_SIZE_175_PERCENT = 175
+const val FONT_SIZE_200_PERCENT = 200
+const val FONT_SIZE_250_PERCENT = 250
+const val FONT_SIZE_300_PERCENT = 300
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt
index bb72530fd..8beda98e5 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt
@@ -7,12 +7,15 @@ import android.content.Context
import android.content.Intent
import android.net.Uri
import android.widget.RemoteViews
+import com.simplemobiletools.commons.extensions.applyColorFilter
import com.simplemobiletools.commons.extensions.getLaunchIntent
-import com.simplemobiletools.commons.extensions.setBackgroundColor
+import com.simplemobiletools.commons.extensions.setText
+import com.simplemobiletools.commons.extensions.setVisibleIf
import com.simplemobiletools.commons.helpers.WIDGET_TEXT_COLOR
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.activities.SplashActivity
+import com.simplemobiletools.notes.pro.extensions.notesDB
import com.simplemobiletools.notes.pro.extensions.widgetsDB
import com.simplemobiletools.notes.pro.models.Widget
import com.simplemobiletools.notes.pro.services.WidgetService
@@ -21,7 +24,7 @@ class MyWidgetProvider : AppWidgetProvider() {
private fun setupAppOpenIntent(context: Context, views: RemoteViews, id: Int, widget: Widget) {
val intent = context.getLaunchIntent() ?: Intent(context, SplashActivity::class.java)
intent.putExtra(OPEN_NOTE_ID, widget.noteId)
- val pendingIntent = PendingIntent.getActivity(context, widget.widgetId, intent, PendingIntent.FLAG_UPDATE_CURRENT)
+ val pendingIntent = PendingIntent.getActivity(context, widget.widgetId, intent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
views.setOnClickPendingIntent(id, pendingIntent)
}
@@ -31,7 +34,11 @@ class MyWidgetProvider : AppWidgetProvider() {
for (widgetId in appWidgetIds) {
val widget = context.widgetsDB.getWidgetWithWidgetId(widgetId) ?: continue
val views = RemoteViews(context.packageName, R.layout.widget)
- views.setBackgroundColor(R.id.notes_widget_holder, widget.widgetBgColor)
+ val note = context.notesDB.getNoteWithId(widget.noteId)
+ views.applyColorFilter(R.id.notes_widget_background, widget.widgetBgColor)
+ views.setTextColor(R.id.widget_note_title, widget.widgetTextColor)
+ views.setText(R.id.widget_note_title, note?.title ?: "")
+ views.setVisibleIf(R.id.widget_note_title, widget.widgetShowTitle)
setupAppOpenIntent(context, views, R.id.notes_widget_holder, widget)
Intent(context, WidgetService::class.java).apply {
@@ -43,7 +50,8 @@ class MyWidgetProvider : AppWidgetProvider() {
val startActivityIntent = context.getLaunchIntent() ?: Intent(context, SplashActivity::class.java)
startActivityIntent.putExtra(OPEN_NOTE_ID, widget.noteId)
- val startActivityPendingIntent = PendingIntent.getActivity(context, widgetId, startActivityIntent, PendingIntent.FLAG_UPDATE_CURRENT)
+ val startActivityPendingIntent =
+ PendingIntent.getActivity(context, widgetId, startActivityIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
views.setPendingIntentTemplate(R.id.notes_widget_listview, startActivityPendingIntent)
appWidgetManager.updateAppWidget(widgetId, views)
@@ -60,4 +68,4 @@ class MyWidgetProvider : AppWidgetProvider() {
}
}
}
-}
\ No newline at end of file
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/NotesHelper.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/NotesHelper.kt
index aa280bf44..53fb7227c 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/NotesHelper.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/NotesHelper.kt
@@ -3,15 +3,22 @@ package com.simplemobiletools.notes.pro.helpers
import android.content.Context
import android.os.Handler
import android.os.Looper
+import com.simplemobiletools.commons.activities.BaseSimpleActivity
+import com.simplemobiletools.commons.helpers.ExportResult
+import com.simplemobiletools.commons.helpers.PROTECTION_NONE
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.notes.pro.R
import com.simplemobiletools.notes.pro.extensions.config
import com.simplemobiletools.notes.pro.extensions.notesDB
import com.simplemobiletools.notes.pro.models.Note
+import com.simplemobiletools.notes.pro.models.NoteType
+import kotlinx.serialization.encodeToString
+import kotlinx.serialization.json.Json
import java.io.File
+import java.io.OutputStream
class NotesHelper(val context: Context) {
- fun getNotes(callback: (notes: ArrayList) -> Unit) {
+ fun getNotes(callback: (notes: List) -> Unit) {
ensureBackgroundThread {
// make sure the initial note has enough time to be precreated
if (context.config.appRunCount <= 1) {
@@ -19,12 +26,14 @@ class NotesHelper(val context: Context) {
Thread.sleep(200)
}
- val notes = context.notesDB.getNotes() as ArrayList
- val notesToDelete = ArrayList(notes.size)
+ val notes = context.notesDB.getNotes().toMutableList()
+ val notesToDelete = mutableListOf()
notes.forEach {
- if (it.path.isNotEmpty() && !File(it.path).exists()) {
- context.notesDB.deleteNote(it)
- notesToDelete.add(it)
+ if (it.path.isNotEmpty()) {
+ if (!it.path.startsWith("content://") && !File(it.path).exists()) {
+ context.notesDB.deleteNote(it)
+ notesToDelete.add(it)
+ }
}
}
@@ -32,7 +41,7 @@ class NotesHelper(val context: Context) {
if (notes.isEmpty()) {
val generalNote = context.resources.getString(R.string.general_note)
- val note = Note(null, generalNote, "", NoteType.TYPE_TEXT.value)
+ val note = Note(null, generalNote, "", NoteType.TYPE_TEXT, "", PROTECTION_NONE, "")
context.notesDB.insertOrUpdate(note)
notes.add(note)
}
@@ -69,4 +78,69 @@ class NotesHelper(val context: Context) {
}
}
}
+
+ fun insertOrUpdateNotes(notes: List, callback: ((newNoteIds: List) -> Unit)? = null) {
+ ensureBackgroundThread {
+ val noteIds = context.notesDB.insertOrUpdate(notes)
+ Handler(Looper.getMainLooper()).post {
+ callback?.invoke(noteIds)
+ }
+ }
+ }
+
+ fun importNotes(activity: BaseSimpleActivity, notes: List, callback: (ImportResult) -> Unit) {
+ ensureBackgroundThread {
+ val currentNotes = activity.notesDB.getNotes()
+ if (currentNotes.isEmpty()) {
+ insertOrUpdateNotes(notes) { savedNotes ->
+
+ val newCurrentNotes = activity.notesDB.getNotes()
+
+ val result = when {
+ currentNotes.size == newCurrentNotes.size -> ImportResult.IMPORT_NOTHING_NEW
+ notes.size == savedNotes.size -> ImportResult.IMPORT_OK
+ savedNotes.isEmpty() -> ImportResult.IMPORT_FAIL
+ else -> ImportResult.IMPORT_PARTIAL
+ }
+ callback(result)
+ }
+ } else {
+ var imported = 0
+ var skipped = 0
+
+ notes.forEach { note ->
+ val exists = context.notesDB.getNoteIdWithTitle(note.title) != null
+ if (!exists) {
+ context.notesDB.insertOrUpdate(note)
+ imported++
+ } else {
+ skipped++
+ }
+ }
+
+ val result = when {
+ skipped == notes.size || imported == 0 -> ImportResult.IMPORT_NOTHING_NEW
+ imported == notes.size -> ImportResult.IMPORT_OK
+ else -> ImportResult.IMPORT_PARTIAL
+ }
+ callback(result)
+ }
+ }
+ }
+
+ fun exportNotes(notesToBackup: List, outputStream: OutputStream): ExportResult {
+ return try {
+ val jsonString = Json.encodeToString(notesToBackup)
+ outputStream.use {
+ it.write(jsonString.toByteArray())
+ }
+ ExportResult.EXPORT_OK
+ } catch (_: Error) {
+ ExportResult.EXPORT_FAIL
+ }
+ }
+
+ enum class ImportResult {
+ IMPORT_FAIL, IMPORT_OK, IMPORT_PARTIAL, IMPORT_NOTHING_NEW
+ }
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ChecklistItemsListener.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ChecklistItemsListener.kt
index 04667b6ba..017662225 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ChecklistItemsListener.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ChecklistItemsListener.kt
@@ -3,5 +3,5 @@ package com.simplemobiletools.notes.pro.interfaces
interface ChecklistItemsListener {
fun refreshItems()
- fun saveChecklist()
+ fun saveChecklist(callback: () -> Unit = {})
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ItemMoveCallback.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ItemMoveCallback.kt
deleted file mode 100644
index 5d2cb3290..000000000
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ItemMoveCallback.kt
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.simplemobiletools.notes.pro.interfaces
-
-import androidx.recyclerview.widget.ItemTouchHelper
-import androidx.recyclerview.widget.RecyclerView
-import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
-
-open class ItemMoveCallback(private val mAdapter: ItemTouchHelperContract) : ItemTouchHelper.Callback() {
- override fun isLongPressDragEnabled() = false
-
- override fun isItemViewSwipeEnabled() = false
-
- override fun onSwiped(viewHolder: RecyclerView.ViewHolder, i: Int) {}
-
- override fun getMovementFlags(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder): Int {
- val dragFlags = ItemTouchHelper.UP or ItemTouchHelper.DOWN
- return makeMovementFlags(dragFlags, 0)
- }
-
- override fun onMove(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, target: RecyclerView.ViewHolder): Boolean {
- mAdapter.onRowMoved(viewHolder.adapterPosition, target.adapterPosition)
- return true
- }
-
- override fun onSelectedChanged(viewHolder: RecyclerView.ViewHolder?, actionState: Int) {
- if (actionState != ItemTouchHelper.ACTION_STATE_IDLE) {
- if (viewHolder is MyRecyclerViewAdapter.ViewHolder) {
- mAdapter.onRowSelected(viewHolder)
- }
- }
- super.onSelectedChanged(viewHolder, actionState)
- }
-
- override fun clearView(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder) {
- super.clearView(recyclerView, viewHolder)
- if (viewHolder is MyRecyclerViewAdapter.ViewHolder) {
- mAdapter.onRowClear(viewHolder)
- }
- }
-}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ItemTouchHelperContract.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ItemTouchHelperContract.kt
deleted file mode 100644
index 5c2e16271..000000000
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/ItemTouchHelperContract.kt
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.simplemobiletools.notes.pro.interfaces
-
-import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
-
-interface ItemTouchHelperContract {
- fun onRowMoved(fromPosition: Int, toPosition: Int)
-
- fun onRowSelected(myViewHolder: MyRecyclerViewAdapter.ViewHolder?)
-
- fun onRowClear(myViewHolder: MyRecyclerViewAdapter.ViewHolder?)
-}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/NotesDao.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/NotesDao.kt
index 1fb7b1415..f86864349 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/NotesDao.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/NotesDao.kt
@@ -5,7 +5,7 @@ import com.simplemobiletools.notes.pro.models.Note
@Dao
interface NotesDao {
- @Query("SELECT * FROM notes ORDER BY title COLLATE NOCASE ASC")
+ @Query("SELECT * FROM notes ORDER BY title COLLATE UNICODE ASC ")
fun getNotes(): List
@Query("SELECT * FROM notes WHERE id = :id")
@@ -23,6 +23,9 @@ interface NotesDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertOrUpdate(note: Note): Long
+ @Insert(onConflict = OnConflictStrategy.REPLACE)
+ fun insertOrUpdate(notes: List): List
+
@Delete
fun deleteNote(note: Note)
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/StartReorderDragListener.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/StartReorderDragListener.kt
deleted file mode 100644
index ea9b6d261..000000000
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/interfaces/StartReorderDragListener.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.simplemobiletools.notes.pro.interfaces
-
-import androidx.recyclerview.widget.RecyclerView
-
-interface StartReorderDragListener {
- fun requestDrag(viewHolder: RecyclerView.ViewHolder)
-}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/ChecklistItem.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/ChecklistItem.kt
index e0892b78e..fb2437ceb 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/ChecklistItem.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/ChecklistItem.kt
@@ -1,3 +1,32 @@
package com.simplemobiletools.notes.pro.models
-data class ChecklistItem(val id: Int, var title: String, var isDone: Boolean)
+import com.simplemobiletools.commons.helpers.SORT_BY_TITLE
+import com.simplemobiletools.commons.helpers.SORT_DESCENDING
+import com.simplemobiletools.notes.pro.helpers.CollatorBasedComparator
+import kotlinx.serialization.Serializable
+
+@Serializable
+data class ChecklistItem(
+ val id: Int,
+ val dateCreated: Long = 0L,
+ var title: String,
+ var isDone: Boolean
+) : Comparable {
+
+ companion object {
+ var sorting = 0
+ }
+
+ override fun compareTo(other: ChecklistItem): Int {
+ var result = when {
+ sorting and SORT_BY_TITLE != 0 -> CollatorBasedComparator().compare(title, other.title)
+ else -> dateCreated.compareTo(other.dateCreated)
+ }
+
+ if (sorting and SORT_DESCENDING != 0) {
+ result *= -1
+ }
+
+ return result
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/Note.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/Note.kt
index f273cf0dc..0b010063b 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/Note.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/Note.kt
@@ -1,29 +1,53 @@
package com.simplemobiletools.notes.pro.models
-import androidx.room.ColumnInfo
-import androidx.room.Entity
-import androidx.room.Index
-import androidx.room.PrimaryKey
+import android.content.Context
+import android.net.Uri
+import androidx.room.*
+import com.simplemobiletools.commons.extensions.isBiometricIdAvailable
+import com.simplemobiletools.commons.helpers.PROTECTION_FINGERPRINT
+import com.simplemobiletools.commons.helpers.PROTECTION_NONE
+import kotlinx.serialization.Serializable
import java.io.File
-import java.io.FileNotFoundException
+/**
+ * Represents a note.
+ *
+ * @property value The content of the note. Could be plain text or [ChecklistItem]
+ * @property type The type of the note. Should be one of the [NoteType] enum entries.
+ */
+@Serializable
@Entity(tableName = "notes", indices = [(Index(value = ["id"], unique = true))])
+@TypeConverters(NoteTypeConverter::class)
data class Note(
- @PrimaryKey(autoGenerate = true) var id: Long?,
- @ColumnInfo(name = "title") var title: String,
- @ColumnInfo(name = "value") var value: String,
- @ColumnInfo(name = "type") var type: Int,
- @ColumnInfo(name = "path") var path: String = "") {
+ @PrimaryKey(autoGenerate = true) var id: Long?,
+ @ColumnInfo(name = "title") var title: String,
+ @ColumnInfo(name = "value") var value: String,
+ @ColumnInfo(name = "type") var type: NoteType,
+ @ColumnInfo(name = "path") var path: String,
+ @ColumnInfo(name = "protection_type") var protectionType: Int,
+ @ColumnInfo(name = "protection_hash") var protectionHash: String
+) {
- fun getNoteStoredValue(): String? {
+ fun getNoteStoredValue(context: Context): String? {
return if (path.isNotEmpty()) {
try {
- File(path).readText()
- } catch (e: FileNotFoundException) {
+ if (path.startsWith("content://")) {
+ val inputStream = context.contentResolver.openInputStream(Uri.parse(path))
+ inputStream?.bufferedReader().use { it!!.readText() }
+ } else {
+ File(path).readText()
+ }
+ } catch (e: Exception) {
null
}
} else {
value
}
}
+
+ fun isLocked() = protectionType != PROTECTION_NONE
+
+ fun shouldBeUnlocked(context: Context): Boolean {
+ return protectionType == PROTECTION_FINGERPRINT && !context.isBiometricIdAvailable()
+ }
}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/NoteType.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/NoteType.kt
new file mode 100644
index 000000000..d81d693a1
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/NoteType.kt
@@ -0,0 +1,15 @@
+package com.simplemobiletools.notes.pro.models
+
+import kotlinx.serialization.Serializable
+
+@Serializable
+enum class NoteType(val value: Int) {
+ TYPE_TEXT(0),
+ TYPE_CHECKLIST(1);
+
+ companion object {
+ fun fromValue(value: Int): NoteType {
+ return values().find { it.value == value } ?: TYPE_TEXT
+ }
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/NoteTypeConverter.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/NoteTypeConverter.kt
new file mode 100644
index 000000000..a2e5b2bb0
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/NoteTypeConverter.kt
@@ -0,0 +1,15 @@
+package com.simplemobiletools.notes.pro.models
+
+import androidx.room.TypeConverter
+
+class NoteTypeConverter {
+ @TypeConverter
+ fun fromNoteType(noteType: NoteType): Int {
+ return noteType.value
+ }
+
+ @TypeConverter
+ fun toNoteType(value: Int): NoteType {
+ return NoteType.fromValue(value)
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/Widget.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/Widget.kt
index 06e571c3e..996d8414d 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/Widget.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/models/Widget.kt
@@ -7,8 +7,10 @@ import androidx.room.PrimaryKey
@Entity(tableName = "widgets", indices = [(Index(value = ["widget_id"], unique = true))])
data class Widget(
- @PrimaryKey(autoGenerate = true) var id: Long?,
- @ColumnInfo(name = "widget_id") var widgetId: Int,
- @ColumnInfo(name = "note_id") var noteId: Long,
- @ColumnInfo(name = "widget_bg_color") var widgetBgColor: Int,
- @ColumnInfo(name = "widget_text_color") var widgetTextColor: Int)
+ @PrimaryKey(autoGenerate = true) var id: Long?,
+ @ColumnInfo(name = "widget_id") var widgetId: Int,
+ @ColumnInfo(name = "note_id") var noteId: Long,
+ @ColumnInfo(name = "widget_bg_color") var widgetBgColor: Int,
+ @ColumnInfo(name = "widget_text_color") var widgetTextColor: Int,
+ @ColumnInfo(name = "widget_show_title") var widgetShowTitle: Boolean
+)
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/receivers/AutomaticBackupReceiver.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/receivers/AutomaticBackupReceiver.kt
new file mode 100644
index 000000000..7d4949be5
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/receivers/AutomaticBackupReceiver.kt
@@ -0,0 +1,17 @@
+package com.simplemobiletools.notes.pro.receivers
+
+import android.content.BroadcastReceiver
+import android.content.Context
+import android.content.Intent
+import android.os.PowerManager
+import com.simplemobiletools.notes.pro.extensions.backupNotes
+
+class AutomaticBackupReceiver : BroadcastReceiver() {
+
+ override fun onReceive(context: Context, intent: Intent) {
+ val powerManager = context.getSystemService(Context.POWER_SERVICE) as PowerManager
+ val wakelock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "simplenotes:automaticbackupreceiver")
+ wakelock.acquire(3000)
+ context.backupNotes()
+ }
+}
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/receivers/BootCompletedReceiver.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/receivers/BootCompletedReceiver.kt
new file mode 100644
index 000000000..8cc032508
--- /dev/null
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/receivers/BootCompletedReceiver.kt
@@ -0,0 +1,18 @@
+package com.simplemobiletools.notes.pro.receivers
+
+import android.content.BroadcastReceiver
+import android.content.Context
+import android.content.Intent
+import com.simplemobiletools.commons.helpers.ensureBackgroundThread
+import com.simplemobiletools.notes.pro.extensions.checkAndBackupNotesOnBoot
+
+class BootCompletedReceiver : BroadcastReceiver() {
+
+ override fun onReceive(context: Context, intent: Intent) {
+ ensureBackgroundThread {
+ context.apply {
+ checkAndBackupNotesOnBoot()
+ }
+ }
+ }
+}
diff --git a/app/src/main/res/drawable-hdpi/img_widget_preview.png b/app/src/main/res/drawable-hdpi/img_widget_preview.png
deleted file mode 100644
index 0738e7d2d..000000000
Binary files a/app/src/main/res/drawable-hdpi/img_widget_preview.png and /dev/null differ
diff --git a/app/src/main/res/drawable-xxxhdpi/img_widget_preview.png b/app/src/main/res/drawable-nodpi/img_widget_preview.png
similarity index 100%
rename from app/src/main/res/drawable-xxxhdpi/img_widget_preview.png
rename to app/src/main/res/drawable-nodpi/img_widget_preview.png
diff --git a/app/src/main/res/drawable-xhdpi/img_widget_preview.png b/app/src/main/res/drawable-xhdpi/img_widget_preview.png
deleted file mode 100644
index 448ed7930..000000000
Binary files a/app/src/main/res/drawable-xhdpi/img_widget_preview.png and /dev/null differ
diff --git a/app/src/main/res/drawable-xxhdpi/img_widget_preview.png b/app/src/main/res/drawable-xxhdpi/img_widget_preview.png
deleted file mode 100644
index 98f7ff59d..000000000
Binary files a/app/src/main/res/drawable-xxhdpi/img_widget_preview.png and /dev/null differ
diff --git a/app/src/main/res/drawable/ic_launcher_monochrome.xml b/app/src/main/res/drawable/ic_launcher_monochrome.xml
new file mode 100644
index 000000000..f48f20c4d
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_monochrome.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_lock_open_vector.xml b/app/src/main/res/drawable/ic_lock_open_vector.xml
new file mode 100644
index 000000000..542b90379
--- /dev/null
+++ b/app/src/main/res/drawable/ic_lock_open_vector.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_shortcut_icon.xml b/app/src/main/res/drawable/ic_shortcut_icon.xml
new file mode 100644
index 000000000..32f964227
--- /dev/null
+++ b/app/src/main/res/drawable/ic_shortcut_icon.xml
@@ -0,0 +1,3 @@
+
+
+
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 000000000..6767562c6
--- /dev/null
+++ b/app/src/main/res/drawable/shortcut_check.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/shortcut_note.xml b/app/src/main/res/drawable/shortcut_note.xml
new file mode 100644
index 000000000..257754e24
--- /dev/null
+++ b/app/src/main/res/drawable/shortcut_note.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a73f45618..3828eef23 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -1,16 +1,41 @@
-
-
+ android:layout_height="?attr/actionBarSize"
+ android:background="@color/color_primary"
+ app:menu="@menu/menu"
+ app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml
index a30361289..6ee073d17 100644
--- a/app/src/main/res/layout/activity_settings.xml
+++ b/app/src/main/res/layout/activity_settings.xml
@@ -1,465 +1,432 @@
-
+ android:layout_height="match_parent">
-
+ android:layout_height="?attr/actionBarSize"
+ android:background="@color/color_primary"
+ app:title="@string/settings"
+ app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
-
+
+
+ android:orientation="vertical">
-
-
-
+ android:text="@string/color_customization" />
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ android:text="@string/general_settings" />
-
+
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+ android:text="@string/text" />
-
-
-
+ android:layout_height="wrap_content">
-
+
-
-
-
+
+
+ android:layout_height="wrap_content">
-
+
-
-
-
+
+
+ android:layout_height="wrap_content">
-
+
-
-
-
+
+
+ android:layout_height="wrap_content">
-
+
-
+
-
+ android:layout_height="wrap_content">
-
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+ android:text="@string/startup" />
-
+
-
+
-
+
-
-
-
-
-
+ android:layout_height="wrap_content">
-
+
-
-
-
+
+
+ android:layout_height="wrap_content">
-
+
-
-
-
+
+
+
+
+ android:text="@string/saving_label" />
-
+
-
-
-
+
+
+
+
+ android:layout_height="wrap_content">
-
+
-
+
-
-
-
-
-
+
+
+ android:text="@string/migrating" />
-
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+ android:text="@string/backups" />
-
+
-
+
-
-
-
+
-
+
+
+
+
+
-
-
-
+
+
+
diff --git a/app/src/main/res/layout/datetime_pattern_info_layout.xml b/app/src/main/res/layout/datetime_pattern_info_layout.xml
new file mode 100644
index 000000000..36ee34d1f
--- /dev/null
+++ b/app/src/main/res/layout/datetime_pattern_info_layout.xml
@@ -0,0 +1,9 @@
+
+
diff --git a/app/src/main/res/layout/dialog_delete_note.xml b/app/src/main/res/layout/dialog_delete_note.xml
index 114651e76..f669a63f5 100644
--- a/app/src/main/res/layout/dialog_delete_note.xml
+++ b/app/src/main/res/layout/dialog_delete_note.xml
@@ -1,6 +1,6 @@
-
+ android:textSize="@dimen/bigger_text_size"
+ tools:text="@string/delete_note_prompt_message" />
-
+ android:background="?attr/selectableItemBackground"
+ android:padding="@dimen/activity_margin"
+ android:visibility="gone">
+
+
+
diff --git a/app/src/main/res/layout/dialog_export_file.xml b/app/src/main/res/layout/dialog_export_file.xml
index c2571b768..c3fd9b9dd 100644
--- a/app/src/main/res/layout/dialog_export_file.xml
+++ b/app/src/main/res/layout/dialog_export_file.xml
@@ -1,62 +1,57 @@
-
-
-
-
-
-
+ android:layout_marginBottom="@dimen/activity_margin"
+ android:hint="@string/path">
+
+
+
+
-
-
-
+ android:hint="@string/filename">
+
+
+
+
-
+ android:hint="@string/extension">
+
+
+
diff --git a/app/src/main/res/layout/dialog_export_files.xml b/app/src/main/res/layout/dialog_export_files.xml
index aa6e23c40..fe95dd238 100644
--- a/app/src/main/res/layout/dialog_export_files.xml
+++ b/app/src/main/res/layout/dialog_export_files.xml
@@ -1,44 +1,39 @@
-
-
-
-
+ android:layout_marginBottom="@dimen/activity_margin"
+ android:hint="@string/path">
-
+
-
+
+
+ android:hint="@string/extension">
+
+
+
diff --git a/app/src/main/res/layout/dialog_export_notes.xml b/app/src/main/res/layout/dialog_export_notes.xml
new file mode 100644
index 000000000..7e354d387
--- /dev/null
+++ b/app/src/main/res/layout/dialog_export_notes.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/dialog_import_folder.xml b/app/src/main/res/layout/dialog_import_folder.xml
index ab434c9e1..8475f95f6 100644
--- a/app/src/main/res/layout/dialog_import_folder.xml
+++ b/app/src/main/res/layout/dialog_import_folder.xml
@@ -1,31 +1,27 @@
-
+ android:paddingEnd="@dimen/activity_margin">
-
-
-
+ android:hint="@string/folder">
+
+
+
+
+ android:text="@string/update_file_at_note" />
+ android:text="@string/only_import_file_content" />
diff --git a/app/src/main/res/layout/dialog_manage_automatic_backups.xml b/app/src/main/res/layout/dialog_manage_automatic_backups.xml
new file mode 100644
index 000000000..9aef64b47
--- /dev/null
+++ b/app/src/main/res/layout/dialog_manage_automatic_backups.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/dialog_new_checklist_item.xml b/app/src/main/res/layout/dialog_new_checklist_item.xml
index 535da69d1..8a97d2541 100644
--- a/app/src/main/res/layout/dialog_new_checklist_item.xml
+++ b/app/src/main/res/layout/dialog_new_checklist_item.xml
@@ -1,41 +1,43 @@
-
+ android:paddingEnd="@dimen/activity_margin">
-
+ android:orientation="vertical">
-
+
-
+
+
+
-
+
+
diff --git a/app/src/main/res/layout/dialog_new_note.xml b/app/src/main/res/layout/dialog_new_note.xml
index a1a536f34..dad5583a0 100644
--- a/app/src/main/res/layout/dialog_new_note.xml
+++ b/app/src/main/res/layout/dialog_new_note.xml
@@ -1,29 +1,38 @@
-
+ android:paddingEnd="@dimen/activity_margin">
-
+ android:hint="@string/label">
+
+
+
+
+ android:text="@string/new_note_type" />
+ android:text="@string/text_note" />
+ android:text="@string/checklist" />
diff --git a/app/src/main/res/layout/dialog_open_file.xml b/app/src/main/res/layout/dialog_open_file.xml
index f01542972..df42f3fc8 100644
--- a/app/src/main/res/layout/dialog_open_file.xml
+++ b/app/src/main/res/layout/dialog_open_file.xml
@@ -1,29 +1,27 @@
-
+ android:paddingEnd="@dimen/activity_margin">
-
-
-
+ android:hint="@string/path">
+
+
+
+
+ android:text="@string/update_file_at_note" />
+ android:text="@string/only_import_file_content" />
diff --git a/app/src/main/res/layout/dialog_open_note.xml b/app/src/main/res/layout/dialog_open_note.xml
index 7085c1743..6abdb1015 100644
--- a/app/src/main/res/layout/dialog_open_note.xml
+++ b/app/src/main/res/layout/dialog_open_note.xml
@@ -1,15 +1,36 @@
-
-
+ android:layout_marginEnd="@dimen/small_margin"
+ android:minHeight="@dimen/min_open_note_popup_height"
+ app:layout_constraintHeight_max="@dimen/max_open_note_popup_height">
-
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/dialog_rename_checklist_item.xml b/app/src/main/res/layout/dialog_rename_checklist_item.xml
index 78d319f4b..4bc1ae03e 100644
--- a/app/src/main/res/layout/dialog_rename_checklist_item.xml
+++ b/app/src/main/res/layout/dialog_rename_checklist_item.xml
@@ -1,22 +1,28 @@
-
+ android:paddingEnd="@dimen/activity_margin">
-
+ android:layout_marginBottom="@dimen/activity_margin"
+ android:hint="@string/label">
+
+
+
diff --git a/app/src/main/res/layout/dialog_rename_note.xml b/app/src/main/res/layout/dialog_rename_note.xml
index 9b9b4d4c2..7e9bb395a 100644
--- a/app/src/main/res/layout/dialog_rename_note.xml
+++ b/app/src/main/res/layout/dialog_rename_note.xml
@@ -1,19 +1,26 @@
-
-
+ android:hint="@string/title">
+
+
+
+
diff --git a/app/src/main/res/layout/dialog_sort_checklist.xml b/app/src/main/res/layout/dialog_sort_checklist.xml
new file mode 100644
index 000000000..62733ba7a
--- /dev/null
+++ b/app/src/main/res/layout/dialog_sort_checklist.xml
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/dialog_unlock_notes.xml b/app/src/main/res/layout/dialog_unlock_notes.xml
new file mode 100644
index 000000000..c0ac82de6
--- /dev/null
+++ b/app/src/main/res/layout/dialog_unlock_notes.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/fragment_checklist.xml b/app/src/main/res/layout/fragment_checklist.xml
index 113f27245..3922343c1 100644
--- a/app/src/main/res/layout/fragment_checklist.xml
+++ b/app/src/main/res/layout/fragment_checklist.xml
@@ -1,6 +1,5 @@
-
-
+ android:layout_marginTop="@dimen/activity_margin"
+ android:visibility="gone">
+
+
+
+
+
+
+
+
-
-
-
+ android:layout_height="wrap_content">
+
+
+
+
+
+
+
+ android:src="@drawable/ic_plus_vector" />
diff --git a/app/src/main/res/layout/fragment_text.xml b/app/src/main/res/layout/fragment_text.xml
index f3a3b6e62..208f84640 100644
--- a/app/src/main/res/layout/fragment_text.xml
+++ b/app/src/main/res/layout/fragment_text.xml
@@ -1,11 +1,50 @@
-
+
+
+
+
+
+
+
+
+
+
+ android:layout_height="wrap_content" />
-
+ tools:text="123" />
+
diff --git a/app/src/main/res/layout/item_add_checklist.xml b/app/src/main/res/layout/item_add_checklist.xml
new file mode 100644
index 000000000..4dfd72db5
--- /dev/null
+++ b/app/src/main/res/layout/item_add_checklist.xml
@@ -0,0 +1,9 @@
+
+
diff --git a/app/src/main/res/layout/item_checklist.xml b/app/src/main/res/layout/item_checklist.xml
index f6c7cc886..25f1bc992 100644
--- a/app/src/main/res/layout/item_checklist.xml
+++ b/app/src/main/res/layout/item_checklist.xml
@@ -1,6 +1,5 @@
-
+ android:foreground="@drawable/selector"
+ android:paddingEnd="@dimen/normal_margin">
-
+ android:layout_height="match_parent"
+ android:layout_toStartOf="@+id/checklist_image">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/item_locked_note.xml b/app/src/main/res/layout/item_locked_note.xml
new file mode 100644
index 000000000..e77ae12b0
--- /dev/null
+++ b/app/src/main/res/layout/item_locked_note.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/note_view_horiz_scrollable.xml b/app/src/main/res/layout/note_view_horiz_scrollable.xml
index dcde184b1..9a7ca54ec 100644
--- a/app/src/main/res/layout/note_view_horiz_scrollable.xml
+++ b/app/src/main/res/layout/note_view_horiz_scrollable.xml
@@ -1,6 +1,5 @@
-
+ android:textCursorDrawable="@null" />
diff --git a/app/src/main/res/layout/note_view_static.xml b/app/src/main/res/layout/note_view_static.xml
index e497ada6f..dc24e716a 100644
--- a/app/src/main/res/layout/note_view_static.xml
+++ b/app/src/main/res/layout/note_view_static.xml
@@ -1,13 +1,13 @@
-
+ android:textCursorDrawable="@null" />
diff --git a/app/src/main/res/layout/open_note_item.xml b/app/src/main/res/layout/open_note_item.xml
index 9ec51d286..0e22322ae 100644
--- a/app/src/main/res/layout/open_note_item.xml
+++ b/app/src/main/res/layout/open_note_item.xml
@@ -1,24 +1,45 @@
-
-
+
+
+ android:layout_alignParentStart="true"
+ android:layout_alignParentTop="true"
+ android:ellipsize="end"
+ android:lines="1"
+ android:textSize="@dimen/big_text_size"
+ android:textStyle="bold"
+ tools:text="Title" />
-
+ android:layout_below="@+id/open_note_item_title"
+ android:layout_alignParentStart="true"
+ android:layout_marginTop="@dimen/medium_margin"
+ android:ellipsize="end"
+ android:maxHeight="@dimen/grid_note_item_max_height"
+ tools:text="text" />
diff --git a/app/src/main/res/layout/widget.xml b/app/src/main/res/layout/widget.xml
index ea3e025fc..49648cffb 100644
--- a/app/src/main/res/layout/widget.xml
+++ b/app/src/main/res/layout/widget.xml
@@ -1,14 +1,35 @@
-
+
+
+
+
+ android:layout_below="@id/widget_note_title"
+ android:divider="@null" />
diff --git a/app/src/main/res/layout/widget_config.xml b/app/src/main/res/layout/widget_config.xml
index f03453623..e5f3b8f0b 100644
--- a/app/src/main/res/layout/widget_config.xml
+++ b/app/src/main/res/layout/widget_config.xml
@@ -1,106 +1,144 @@
-
+ android:layout_height="match_parent">
+ android:layout_centerHorizontal="true"
+ android:layout_margin="@dimen/activity_margin">
-
+ android:paddingBottom="@dimen/activity_margin">
+
+
+
+
+
+
+
+
+
+
+
+
+ android:layout_below="@+id/notes_picker_holder"
+ android:background="@null"
+ android:ellipsize="end"
+ android:gravity="center"
+ android:lines="1"
+ android:padding="@dimen/tiny_margin"
+ android:text="@string/title"
+ android:textSize="@dimen/smaller_text_size" />
-
+
-
-
-
-
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentBottom="true"
+ android:text="@string/ok" />
-
-
-
-
-
+
+
diff --git a/app/src/main/res/layout/widget_text_layout.xml b/app/src/main/res/layout/widget_text_layout.xml
index bf4d8d33f..c5a9032a6 100644
--- a/app/src/main/res/layout/widget_text_layout.xml
+++ b/app/src/main/res/layout/widget_text_layout.xml
@@ -1,6 +1,5 @@
-
@@ -10,9 +9,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null"
- android:gravity="left"
+ android:gravity="start"
android:padding="@dimen/small_margin"
- android:visibility="gone"/>
+ android:visibility="gone" />
+ android:visibility="gone" />
+ android:visibility="gone" />
+
+
+
+
+
+
diff --git a/app/src/main/res/menu/cab_checklist.xml b/app/src/main/res/menu/cab_checklist.xml
index 846ca634d..3c8c430bc 100644
--- a/app/src/main/res/menu/cab_checklist.xml
+++ b/app/src/main/res/menu/cab_checklist.xml
@@ -1,14 +1,30 @@
diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml
index fe032a88c..51034a2e6 100644
--- a/app/src/main/res/menu/menu.xml
+++ b/app/src/main/res/menu/menu.xml
@@ -1,68 +1,100 @@
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
index a77f72238..07f9120c8 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_amber.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_amber.xml
index dab4c0c59..b9bf82a71 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_amber.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_amber.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_blue.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_blue.xml
index 37bf057fa..fe4c0f724 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_blue.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_blue.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_blue_grey.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_blue_grey.xml
index 3e4d0696b..794a0ba8c 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_blue_grey.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_blue_grey.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_brown.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_brown.xml
index 9786d7bf0..213d4eca1 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_brown.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_brown.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_cyan.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_cyan.xml
index afb3d0d36..9958c2c46 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_cyan.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_cyan.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deep_orange.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deep_orange.xml
index 1846b81de..8390cf092 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deep_orange.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deep_orange.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deep_purple.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deep_purple.xml
index 4152801a0..80e20d587 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deep_purple.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deep_purple.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_green.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_green.xml
index e55d10929..b73af9bd6 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_green.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_green.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_grey_black.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_grey_black.xml
index 40d074503..968374cf2 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_grey_black.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_grey_black.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_indigo.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_indigo.xml
index 601d81701..791c1a461 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_indigo.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_indigo.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light_blue.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light_blue.xml
index 01f2fead9..c559382fd 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light_blue.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light_blue.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light_green.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light_green.xml
index d37b24c44..cb8e9f0f3 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light_green.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light_green.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_lime.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_lime.xml
index 9fd7bc5b2..779758330 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_lime.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_lime.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_pink.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_pink.xml
index d2adf9a07..a6163778d 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_pink.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_pink.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_purple.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_purple.xml
index 32c838cdd..c0ce2da85 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_purple.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_purple.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_red.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_red.xml
index a6e935994..64e53a688 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_red.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_red.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_teal.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_teal.xml
index 18492d282..17b0961fd 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_teal.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_teal.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_yellow.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_yellow.xml
index 854427e06..044ebd10e 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_yellow.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_yellow.xml
@@ -1,5 +1,6 @@
-
-
+
+
+
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
index 299f0070d..b1d720145 100644
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index a95f418e2..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_amber.png b/app/src/main/res/mipmap-mdpi/ic_launcher_amber.png
deleted file mode 100644
index 07a3e3838..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_amber.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_blue.png b/app/src/main/res/mipmap-mdpi/ic_launcher_blue.png
deleted file mode 100644
index 40cb3a2a4..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_blue.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_blue_grey.png b/app/src/main/res/mipmap-mdpi/ic_launcher_blue_grey.png
deleted file mode 100644
index 6778861b1..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_blue_grey.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_brown.png b/app/src/main/res/mipmap-mdpi/ic_launcher_brown.png
deleted file mode 100644
index b2eb3488f..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_brown.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_cyan.png b/app/src/main/res/mipmap-mdpi/ic_launcher_cyan.png
deleted file mode 100644
index 472a7c8ac..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_cyan.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_deep_orange.png b/app/src/main/res/mipmap-mdpi/ic_launcher_deep_orange.png
deleted file mode 100644
index 72dcb5454..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_deep_orange.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_deep_purple.png b/app/src/main/res/mipmap-mdpi/ic_launcher_deep_purple.png
deleted file mode 100644
index a3ae13c41..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_deep_purple.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
deleted file mode 100644
index 6b445ec13..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_green.png b/app/src/main/res/mipmap-mdpi/ic_launcher_green.png
deleted file mode 100644
index 53cd06858..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_green.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_grey_black.png b/app/src/main/res/mipmap-mdpi/ic_launcher_grey_black.png
deleted file mode 100644
index 9e851eb90..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_grey_black.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_indigo.png b/app/src/main/res/mipmap-mdpi/ic_launcher_indigo.png
deleted file mode 100644
index 593ae7fad..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_indigo.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_light_blue.png b/app/src/main/res/mipmap-mdpi/ic_launcher_light_blue.png
deleted file mode 100644
index 1abf12213..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_light_blue.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_light_green.png b/app/src/main/res/mipmap-mdpi/ic_launcher_light_green.png
deleted file mode 100644
index 0506855dd..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_light_green.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_lime.png b/app/src/main/res/mipmap-mdpi/ic_launcher_lime.png
deleted file mode 100644
index 4200b2dd6..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_lime.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_pink.png b/app/src/main/res/mipmap-mdpi/ic_launcher_pink.png
deleted file mode 100644
index a04e67f57..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_pink.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_purple.png b/app/src/main/res/mipmap-mdpi/ic_launcher_purple.png
deleted file mode 100644
index fe5d17ae6..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_purple.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_red.png b/app/src/main/res/mipmap-mdpi/ic_launcher_red.png
deleted file mode 100644
index f09295053..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_red.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_teal.png b/app/src/main/res/mipmap-mdpi/ic_launcher_teal.png
deleted file mode 100644
index 58fbd49f0..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_teal.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_yellow.png b/app/src/main/res/mipmap-mdpi/ic_launcher_yellow.png
deleted file mode 100644
index 20264fa4d..000000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_yellow.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index ba9758bc6..033d7f556 100644
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index f78a851b7..771a4ade5 100644
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 8eb2bb3cf..1109ea954 100644
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml
index a23be6bc4..ad3dfbb6b 100644
--- a/app/src/main/res/values-ar/strings.xml
+++ b/app/src/main/res/values-ar/strings.xml
@@ -1,7 +1,9 @@
+
الملاحظاتالملاحظات
- Thank you for using Simple Notes.\nFor more simple apps please visit SimpleMobileTools.com.
+ شكرا لاستخدام ملاحظات بسيطة.
+\nلمزيد من التطبيقات البسيطة يرجى زيارة SimpleMobileTools.com.لا يمكن مشاركة نص فارغملاحظةإضافة ملاحظة
@@ -9,7 +11,7 @@
توجد ملاحظة بهذا العنوانفتح ملاحظةحذف ملاحظة
- هل أنت متأكد من حذف الملاحظة \"%s\"؟
+ هل أنت متأكد أنك تريد حذف الملاحظة \"%s\"؟إختر ملاحظةإعادة تسمية ملاحظةملاحظة عامة
@@ -17,20 +19,32 @@
إضافة الى ملاحظةلديك بعض التعديلات غير محفظة. ماذا تريد أن تفعل بها؟ملاحظة معروضة في widget:
+ إظهار عنوان الملاحظةنوع ملاحظة جديد:ملاحظة نصية
-
+ Lock note
+ إلغاء تأمين الملاحظة
+ إلغاء تأمين الملاحظة
+ الملاحظات التالية مقفلة. يمكنك إما إلغاء قفلها واحدة تلو الأخرى أو تخطي تصديرها.
+ محتوى الملاحظات مؤمن.
+ إظهار المحتوى
+ تحذير: إذا نسيت كلمة مرور الملاحظات، فلن تتمكن من استعادتها أو الوصول إلى محتوى الملاحظات بعد الآن.
+ ملاحظة نصية جديدة
+ قائمة مرجعية جديدة
+ لا يمكن للتطبيق تحميل الملفات عبر الإنترنت
- فتح ملف
+ فتح الملفتصدير كملفملف كبير جداً، الحد المسموح 1MB
- استيراد محتوى الملف فقط\n(تغيير الملف لن يؤثر على الملاحظة)
- قم بتحديث الملف نفسه عند تحديث الملاحظة\n(يتم حذف الملاحظة إذا تم حذف الملف أو تغيير المسار)
+ استيراد محتوى الملف فقط
+\n(تغيير الملف لن يؤثر على الملاحظة)
+ قم بتحديث الملف نفسه عند تحديث الملاحظة
+\n(يتم حذف الملاحظة إذا تم حذف الملف أو تغيير المسار)أيضا حذف الملف \"%s\"
- تم حفظ الملاحظة \"%s\"
- تم تصدير الملاحظة \"%s\"
- تصدير فقط محتوى الملف الحالي\n(تغيير الملاحظة لن يؤثر على الملف)
-
+ تم حفظ الملاحظة \"%s\" بنجاح
+ تم تصدير الملاحظة \"%s\" بنجاح
+ تصدير فقط محتوى الملف الحالي
+\n(تغيير الملاحظة لن يؤثر على الملف)عرض حفظ رسائل النجاحجعل الروابط ورسائل البريد الإلكتروني قابلة للنقر
@@ -38,6 +52,7 @@
استخدام الخط monospaceعرض لوحة المفاتيح عند بدء التشغيلإظهار عدد الكلمات
+ إظهار عدد الأحرفالمحاذاةيساروسط
@@ -47,40 +62,26 @@
حفظ الملاحظات تلقائياتفعيل التفاف الخطاستخدام وضع التصفح المتخفي للوحات المفاتيح
- Move undone checklist items at the top
-
+ نقل عناصر قائمة التحقق المنجزة إلى الأسفل
+ إضافة عناصر قائمة اختيار جديدة في الأعلىقائمة تدقيق
+ قوائمإضافة عنصر قائمة تدقيق جديدإضافة عناصر قائمة تدقيق جديدةقائمة التدقيق فارغة
-
+ إزالة العناصر التي تم إنجازها
+ Add to the top
- تصدير جميع الملاحظات كملفات
- استيراد ملفات متعددة كملاحظاتمجلد الاستيراد
-
+ تصدير الملاحظات
+ Import notes
+ استيراد الملاحظات (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Need to take a quick note of something to buy, an address, or a startup idea? Then this is the app you\'ve been looking for! No complicated setup steps needed, just type in what you came for. Comes with autosave, so you will not discard your changes by mistake. Supports creating multiple independent notes.
-
- You can access the note in no time by using the customizable and resizable widget, which opens the app on click.
-
- Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
-
- This app is just one piece of a bigger series of apps. You can find the rest of them at https://www.simplemobiletools.com
-
-
+ كيف يمكنني تغيير لون القطع؟
+ في حال كان لديك عنصر واجهة مستخدم نشط واحد فقط، يمكنك إما إعادة إنشائه، أو استخدام الزر في إعدادات التطبيق لتخصيصه. إذا كان لديك العديد من الحاجيات النشطة، لن يكون الزر الموجود في إعدادات التطبيق متاحا. بما أن التطبيق يدعم تخصيص الألوان لكل عنصر واجهة مستخدم ، سيكون عليك إعادة إنشاء القطعة التي تريد تخصيصها.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-az/strings.xml b/app/src/main/res/values-az/strings.xml
index f1038b4a9..26e91499d 100644
--- a/app/src/main/res/values-az/strings.xml
+++ b/app/src/main/res/values-az/strings.xml
@@ -1,7 +1,9 @@
+
Sadə QeydlərQeydlər
- Sadə Qeydləri istifadə etdiyiniz üçün təşəkkürlər.\nDaha çox sadə tətbiq üçün SimpleMobileTools.com saytını ziyarət edin.
+ Sadə Qeydləri istifadə etdiyiniz üçün təşəkkürlər.
+\nDaha çox sadə tətbiq üçün SimpleMobileTools.com saytını ziyarət edin.Boş mətni paylaşmaq olmurSadə QeydYeni qeyd əlavə et
@@ -9,28 +11,40 @@
Bu başlıqda qeyd artıq mövcuddurQeydi açQeydi sil
- \"%s\" qeydini silmək istədiyinizə əminsiniz?
+ \"%s\" qeydini silmək istədiyinizə əminsiniz\?Qeyd götürQeydi yenidən adlandırÜmumi qeydYeni qeyd yaratQeydə əlavə et
- You have some unsaved changes. What do you want to do with them?
+ You have some unsaved changes. What do you want to do with them\?Note shown in the widget:
+ Show note titleNew note type:Text note
-
+ Lock note
+ Unlock note
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ The notes\' content is locked.
+ Show content
+ WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.
+ New text note
+ New checklist
+ The app cannot load files over the internetFaylı AçFayl kimi çıxarFayl çox böyükdür, limit 1mb\"dır
- Yalnız fayl məzmununu daxil et\n(faylı dəyişmək qeydı təsir etməyəcək)
- Qeydi təzələdikdə faylı da təzələ\n(fayl silinirsə qeyd də silinər və ya yeri dəyişər)
+ Yalnız fayl məzmununu daxil et
+\n(faylı dəyişmək qeydı təsir etməyəcək)
+ Qeydi təzələdikdə faylı da təzələ
+\n(fayl silinirsə qeyd də silinər və ya yeri dəyişər)Həmçinin \"%s\" faylını da sil\"%s\" qeydi uğurla saxlandı\"%s\" qeydi uğurla çıxarıldı
- Only export the current file content\n(changing the note will not affect the file)
-
+ Only export the current file content
+\n(changing the note will not affect the file)Uğurlu saxlama mesajını göstərKeçidləri və e-poçtları toxuna bilən et
@@ -38,6 +52,7 @@
Tək aralıqlı şrift işlətBaşlanğıcda klaviaturanı göstərSöz sayını göstər
+ Show character countSıraSolMərkəz
@@ -47,38 +62,24 @@
Qeydləri avtomatik saxlaCız sarğısını göstərUse Incognito mode of keyboards
- Move undone checklist items at the top
-
+ Move done checklist items to the bottom
+ Add new checklist items at the topChecklist
+ ChecklistsAdd a new checklist itemAdd new checklist itemsThe checklist is empty
-
+ Remove done items
+ Add to the top
- Bütün qeydləri fayl şəklində çıxar
- Toplu faylları qeyd şəklində daxil etQovluq daxil et
-
+ Export notes
+ Import notes
+ Import notes (Pro)
- How can I change the widgets color?
+ How can I change the widgets color\?In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Need to take a quick note of something to buy, an address, or a startup idea? Then this is the app you\'ve been looking for! No complicated setup steps needed, just type in what you came for. Comes with autosave, so you will not discard your changes by mistake. Supports creating multiple independent notes.
-
- You can access the note in no time by using the customizable and resizable widget, which opens the app on click.
-
- Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
-
- This app is just one piece of a bigger series of apps. You can find the rest of them at https://www.simplemobiletools.com
-
-
+ Адкрыць файл
+ Экспарт у файл
+ Файл занадта вялікі, абмежаванне складае 1 МБ
+ Імпартуйце толькі змесціва файла
+\n(змена файла не паўплывае на нататку)
+ Абнавіць сам файл пры абнаўленні нататкі
+\n(нататка выдаляецца, калі файл выдаляецца або змяняецца шлях)
+ Таксама выдаліць файл \"%s\"
+ Нататка \"%s\" паспяхова захавана
+ Нататка \"%s\" паспяхова экспартавана
+ Экспартаваць толькі бягучае змесціва файла
+\n(змена нататкі не паўплывае на файл)
+
+ Паказаць паведамленні аб паспяховым захаванні
+ Рабіць спасылкі і адрасы электроннай пошты націскальнымі
+ Змяшчаць курсор у канец нататкі
+ Выкарыстоўваць монашырынны шрыфт
+ Паказваць клавіятуру пры запуску
+ Паказваць колькасць слоў
+ Паказваць колькасць сімвалаў
+ Выраўноўванне
+ Па левым баку
+ Па цэнтру
+ Па правым баку
+ Заўвага выкарыстоўваецца ў віджэце
+ Паказваць спіс нататак пры запуску
+ Аўтаматычна захоўваць нататкі
+ Пераносіць радкі
+ Выкарыстоўваць рэжым інкогніта для клавіятуры
+ Перамяшчаць выкананыя пункты ў канец кантрольнага спіса
+ Дадаваць новыя пункты ў пачатак кантрольнага спіса
+
+ Кантрольны спіс
+ Кантрольныя спісы
+ Дадаць пункт у кантрольны спіс
+ Дадаць пункты ў кантрольны спіс
+ Кантрольны спіс пусты
+ Выдаліць выкананыя пункты
+ Add to the top
+
+ Імпартаваць папку
+ Экспартаваць нататкі
+ Імпартаваць нататкі
+ Імпартаваць нататкі (Pro)
+
+ Як змяніць колер віджэта\?
+ Калі ў вас ёсць толькі 1 Актыўны віджэт, вы можаце альбо ўзнавіць яго зноўку, альбо выкарыстоўваць кнопку ў наладах прыкладання для яго Налады. Калі ў вас некалькі актыўных віджэтаў, кнопка ў наладах прыкладання будзе недаступная. Паколькі прыкладанне падтрымлівае наладу колеру для кожнага фішкі, вам прыйдзецца ўзнавіць віджэт, які вы хочаце наладзіць.
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml
new file mode 100644
index 000000000..aa0216618
--- /dev/null
+++ b/app/src/main/res/values-bg/strings.xml
@@ -0,0 +1,87 @@
+
+
+ Обикновени Бележки
+ Бележки
+ Благодарим, че използвате Обикновени Бележки.
+\nЗа още обикновени приложения посетете SimpleMobileTools.com.
+ Не може да се споделя празен текст
+ Обикновени Бележки
+ Добави нова бележка
+ Моля, наречете бележката си
+ Бележка с това заглавие вече съществува
+ Отворена бележка
+ Изтриване на бележка
+ Сигурни ли сте, че искате да изтриете бележка \"%s\"\?
+ Избери бележка
+ Преименуване на бележка
+ Обща бележка
+ Създаване на нова бележка
+ Добавяне на бележка
+ Имате някои незаписани промени. Какво искате да направите с тях\?
+ Бележка, показана в приспособлението:
+ Покажете заглавието на бележката
+ Нов тип бележка:
+ Текстова бележка
+ Бележка за заключване
+ Бележка за отключване
+ Отключи бележките
+ Следните бележки са заключени. Можете да ги отключите една по една или да пропуснете експортирането им.
+ Съдържанието на бележките е заключено.
+ Покажи съдържанието
+ ПРЕДУПРЕЖДЕНИЕ: Ако забравите паролата на бележките, вече няма да можете да я възстановите или да получите достъп до съдържанието на бележките.
+ Нова текстова бележка
+ Нов контролен списък
+ Приложението не може да зарежда файлове през интернет
+
+ Отвори файл
+ Експортиране като файл
+ Файлът е твърде голям, ограничението е 1MB
+ Импортиране само на съдържанието на файла
+\n(промяната на файла няма да се отрази на бележката
+ Актуализиране на самия файл при актуализиране на бележката
+\n(бележката се изтрива, ако файлът се изтрие или пътят се промени)
+ Също така изтрийте файла \"%s\"
+ Забележка: \"%s\" записани успешно
+ Забележка: \"%s\" експортира успешно
+ Експортирайте само текущото съдържание на файла
+\n(промяната на бележката няма да се отрази на файла)
+
+ Показване на съобщения за успешно записване
+ Направете връзките и имейлите кликаеми
+ Поставете курсора до края на бележката
+ Използване на монопространствен шрифт
+ Показване на клавиатурата при стартиране
+ Показване на броя думи
+ Покажете броя на символите
+ Подравняване
+ Ляво
+ Център
+ Дясно
+ Бележка използвана в приспособлението
+ Показване на избирач на бележки при стартиране
+ Автоматично запазване на бележки
+ Разрешаване на обтичане на линии
+ Използване на режим \"Инкогнито\" на клавиатурите
+ Преместване на готовите елементи от контролния списък в долната част
+ Добавяне на нови елементи от контролния списък в горната част
+
+ Контролен списък
+ Контролни списъци
+ Добавяне на нов елемент от контролния списък
+ Добавяне на нови елементи към контролен списък
+ Контролният списък е празен
+ Премахване на готови елементи
+ Add to the top
+
+ Папка за импортиране
+ Експортиране на бележките
+ Бележки за внос
+ Бележки за внос (Pro)
+
+ Как мога да променя цвета на приспособлението\?
+ В случай че имате само 1 активна джаджа, можете да я създадете отново или да използвате бутона в настройките на приложението за персонализирането ѝ. Ако имате няколко активни уиджета, бутонът в настройките на приложението няма да бъде достъпен. Тъй като приложението поддържа персонализиране на цвета за всяка джаджа, ще трябва да пресъздадете джаджата, която искате да персонализирате.
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml
new file mode 100644
index 000000000..d63197859
--- /dev/null
+++ b/app/src/main/res/values-ca/strings.xml
@@ -0,0 +1,87 @@
+
+
+ Simple Notes
+ Notes
+ Gràcies per utilitzar Simple Notes.
+\nPer obtenir més aplicacions Simples, visiteu SimpleMobileTools.com.
+ No es pot compartir un text buit
+ Nota senzilla
+ Afegeix una nota nova
+ Si us plau, anomeneu la vostra nota
+ Ja existeix una nota amb aquest títol
+ Obre una nota
+ Suprimeix la nota
+ Esteu segur que voleu suprimir la nota «%s»\?
+ Trieu una nota
+ Canvia el nom de la nota
+ Nota general
+ Crea una nota nova
+ Afegeix a la nota
+ Hi ha canvis sense desar. Què voleu fer amb ells\?
+ Nota mostrada al giny:
+ Mostra el títol de la nota
+ Tipus nou de nota:
+ Nota de text
+ Bloqueja la nota
+ Desbloqueja la nota
+ Desbloqueja notes
+ Les notes següents estan bloquejades. Podeu desbloquejar-les una a una o ometre la seva exportació.
+ El contingut de la nota està bloquejat.
+ Mostra el contingut
+ AVÍS: Si oblideu la contrasenya de la nota, ja no podreu recuperar-la ni accedir al contingut de les notes.
+ Nota de text nova
+ Llista de comprovació nova
+ L\'aplicació no pot carregar fitxers per Internet
+
+ Obre un fitxer
+ Exporta com a fitxer
+ El fitxer és massa gran, el límit és d\'1 MB
+ Importa només el contingut del fitxer
+\n(canviar el fitxer no afectarà la nota)
+ Actualitza el fitxer en actualitzar la nota
+\n(la nota se suprimirà si se suprimeix el fitxer o canvia el camí)
+ Suprimeix també el fitxer «%s»
+ La nota «%s» s\'ha desat correctament
+ La nota «%s» s\'ha exportat correctament
+ Exporta només el contingut del fitxer actual
+\n(canviar la nota no afectarà el fitxer)
+
+ Mostra els missatges de desament correcte
+ Fes que els enllaços i correus electrònics s\'hi pugui fer clic
+ Col·loca el cursor al final de la nota
+ Utilitza una lletra monoespaiada
+ Mostra el teclat a l\'inici
+ Mostra el comptador de paraules
+ Mostra el comptador de caràcters
+ Alineació
+ Esquerra
+ Centre
+ Dreta
+ Nota utilitzada al giny
+ Mostra un selector de notes a l\'inici
+ Desa automàticament les notes
+ Activa l\'ajustament de línia
+ Utilitza el mode d\'incògnit dels teclats
+ Mou els elements fets de la llista de comprovació a la part inferior
+ Afegeix els elements nous de la llista de comprovació a la part superior
+
+ Llista de comprovació
+ Llistes de comprovació
+ Afegeix un element nou de la llista de comprovació
+ Afegeix elements nous de la llista de comprovació
+ La llista de comprovació és buida
+ Elimina els elements fets
+ Add to the top
+
+ Importa una carpeta
+ Exporta notes
+ Importa notes
+ Importa notes (Pro)
+
+ Com puc canviar el color dels ginys\?
+ En cas que només tingueu 1 giny actiu, podeu tornar-lo a crear o utilitzar el botó de configuració de l\'aplicació per personalitzar-lo. Si teniu diversos ginys actius, el botó de configuració de l\'aplicació no estarà disponible. Com que l\'aplicació admet la personalització del color per giny, haureu de tornar a crear el giny que vulgueu personalitzar.
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml
index 6b5be2ce0..e76f65034 100644
--- a/app/src/main/res/values-cs/strings.xml
+++ b/app/src/main/res/values-cs/strings.xml
@@ -1,43 +1,58 @@
+
Jednoduché poznámkyPoznámky
- Děkujeme za používání Jednoduchých poznámek.\nPro více jednoduchých apek prosím navštivte SimpleMobileTools.com.
+ Děkujeme za používání Jednoduchých poznámek.
+\nPro více jednoduchých aplikací, prosím, navštivte SimpleMobileTools.com.Nelze sdílet prázdný textJednoduchá poznámkaPřidat novou poznámku
- Prosím pojmenujte poznámku
+ Prosím, pojmenujte poznámkuPoznámka s tímto názvem již existujeOtevřít poznámkuOdstranit poznámku
- Opravdu chcete smazat poznámku \"%s\"?
+ Opravdu chcete smazat poznámku „%s“\?Zvolte poznámkuPřejmenovat poznámkuVšeobecná poznámkaVytvořit novou poznámku
- Přidat k poznámce
- Máte nějaké neuložené změny. Co s nimi chcete udělat?
+ Přidat k poznámce
+ Máte nějaké neuložené změny. Co s nimi chcete udělat\?Poznámka zobrazená ve widgetu:
+ Zobrazit název poznámkyTyp nové poznámky:Textová poznámka
-
+ Zamknout poznámku
+ Odemknout poznámku
+ Odemknout poznámky
+ Následující poznámky jsou uzamčené. Můžete je buď jednu po druhé odemknout a nebo přeskočit jejich exportování.
+ Obsah této poznámky je uzamčen.
+ Zobrazit obsah
+ UPOZORNĚNÍ: Pokud zapomenete heslo k poznámce, už ji nebudete schopni obnovit nebo získat přístup k jejímu obsahu.
+ Nová textová poznámka
+ Nový seznam položek
+ Tato aplikace nemůže načítat soubory přes internetOtevřít souborExportovat jako souborSoubor je příliš velký, limit je 1MB
- Pouze importovat obsah souboru\n(úprava souboru nebude mít vliv na poznámku)
- Aktualizovat samotný soubor po úpravě poznámky\n(pokud bude daný soubor vymazán nebo přesunut, bude vymazána i poznámka)
- Odstranit i soubor \"%s\"
- Poznámka \"%s\" byla úspěšně uložena
- Poznámka \"%s\" byla úspěšně exportována
- Pouze exportovat současný obsah souboru\n(úprava poznámky nebude mít vliv na soubor)
-
+ Pouze importovat obsah souboru
+\n(úprava souboru nebude mít vliv na poznámku)
+ Po úpravě poznámky aktualizovat též i soubor
+\n(pokud bude daný soubor vymazán nebo přesunut, bude vymazána i poznámka)
+ Odstranit i soubor „%s“
+ Poznámka „%s“ byla úspěšně uložena
+ Poznámka „%s“ byla úspěšně exportována
+ Pouze exportovat současný obsah souboru
+\n(úprava poznámky nebude mít vliv na soubor)Zobrazit zprávu o úspěšném uložení poznámkyDělat odkazy a e-maily kliknutelnýmiUmístit kurzor na konec poznámky
- Použít písmo Monospace
+ Použít neproporcionální písmoZobrazit klávesnici po spuštěníZobrazit počítadlo slov
+ Zobrazit počítadlo znakůZarovnáníVlevoUprostřed
@@ -46,39 +61,25 @@
Zobrazit seznam poznámek po spuštěníAutomaticky ukládat poznámkyPovolit zalamování řádků
- Použít Inkognito mód klávesnic
- Přesunout nesplněné položky seznamu položek nahoru
-
+ Použít „inkognito mód“ klávesnic
+ Přesunout splněné položky seznamu dospodu
+ Přidávat nové položky seznamu nahoruSeznam položek
+ Seznamy položekPřidat do seznamu novou položkuPřidat do seznamu nové položkySeznam položek je prázdný
-
+ Odstranit splněné položky seznamu
+ Add to the top
- Exportovat všechny poznámky jako soubory
- Importovat vícero souborů jako poznámkyImportovat složku
-
+ Exportovat poznámky
+ Importovat poznámky
+ Importovat poznámky (Pro)
- Jak mohu změnit barvy widgetu?
- V případě, že máte pouze 1 aktivní widget, můžete jej buď znovu vytvořit, nebo použít tlačítko v nastavení apky na změnu barvy. Pokud máte widgetů víc, tlačítko v nastavení apky zmizí. Protože apka podporuje různé barvy pro každý widget, budete muset znovu vytvořit ten widget, jehož barvy chcete změnit.
-
-
-
- Jednoduché poznámky Pro - Rychlá tvorba poznámek
-
- Krásná apka na přidávání rychlých poznámek bez reklam a nepotřebných oprávnění.
-
- Potřebujete si rychle poznačit něco na nákup, adresu, nebo nápad na startup? Pokud ano, tato apka je pro vás jako stvořená! Nepotřebuje žádná zdlouhavá nastavování, jen zapište, co chcete. Poznámky se ukládají automaticky, takže je ani náhodou neztratíte. Poskytuje možnost vytvoření vícera nezávislých poznámek.
-
- K poznámkám můžete rychle přistupovat přes upravitelný widget, který klepnutím otevře apku.
-
- Neobsahuje žádné reklamy a nepotřebná oprávnění. Je opensource, poskytuje možnost změny barev.
-
- Tato aplikace je pouze jednou ze skupiny aplikací. Ostatní můžete najít na https://www.simplemobiletools.com
-
-
+ Jak mohu změnit barvu widgetů\?
+ V případě, že máte pouze 1 aktivní widget, můžete jej buď znovu vytvořit, nebo použít tlačítko v nastavení aplikace na změnu barvy. Pokud máte widgetů víc, tlačítko v nastavení aplikace zmizí. Protože aplikace podporuje různé barvy pro každý widget, budete muset znovu vytvořit ten widget, jehož barvy chcete změnit.Agor ffeilAllforio fel ffeilFfeil yn rhy fawr. Ni all fod yn fwy na 1MB
- Mewnforio cynnwys y ffeil yn unig\n(ni fydd newid y ffeil yn addasu\'r nodyn)
- Diweddaru\'r ffeil ei hun wrth ddiweddaru\'r nodyn\n(caiff y nodyn ei ddileu os yw\'r ffeil yn cael ei dileu neu ei leoliad yn newid)
+ Mewnforio cynnwys y ffeil yn unig
+\n(ni fydd newid y ffeil yn addasu\'r nodyn)
+ Diweddaru\'r ffeil ei hun wrth ddiweddaru\'r nodyn
+\n(caiff y nodyn ei ddileu os yw\'r ffeil yn cael ei dileu neu ei leoliad yn newid)Hefyd dileu\'r ffeil \"%s\"Cadwyd nodyn \"%s\" yn llwyddiannusAllforiwyd nodyn \"%s\" yn llwyddiannus
- Allforio cynnwys y ffeil cyfredol yn unig\n(ni fydd newid y nodyn yn effeithio ar y ffeil)
-
+ Allforio cynnwys y ffeil cyfredol yn unig
+\n(ni fydd newid y nodyn yn effeithio ar y ffeil)Dangos negeseuon yn cadarnhau cadw\'n llwyddiannusGwneud dolenni a chyfeiriadau ebost yn glicadwy
@@ -38,6 +52,7 @@
Defnyddio ffont monofwlchDangos y bysellfwrdd wrth ddechrauDangos cyfrif geiriau
+ Show character countAliniadChwithCanol
@@ -47,38 +62,24 @@
Awto-gadw nodiadauGalluogi amlapio llinellauDefnyddio modd cyfrinachol bysellfyrddau
- Move undone checklist items at the top
-
+ Move done checklist items to the bottom
+ Add new checklist items at the topRhestr wirio
+ ChecklistsYchwanegu eitem newydd at restr wirioYchwanegu eitemau newydd at restr wirioMae\'r rhestr wirio yn wag
-
+ Remove done items
+ Add to the top
- Allforio pob nodyn fel ffeil
- Mewnforio nifer o ffeiliau fel nodiadauMewnforio ffolder
-
+ Export notes
+ Import notes
+ Import notes (Pro)
- How can I change the widgets color?
+ How can I change the widgets color\?In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Angen gwneud nodyn yn gyflym o rywbeth i brynu, cyfeiriad, neu syniad da? Dyma\'r ap wyt ti ei angen! Dim camau gosod cymhleth - jyst teipia be wyt ti eisiau cofnodi. Mae\'n cadw yn awtomatig, felly ni fyddi di\'n colli dy newidiadau trwy ddamwain. Mae creu nifer o nodiadau annibynnol yn bosib.
-
- Gellir cael at dy nodyn yn gyflym wrth ddefnyddio\'r teclyn addasedig, sy\'n agor yr ap gydag un clic.
-
- Gyda dim hysbysebion a dim eisiau unrhyw ganiatâd di-angen. Mae\'n gyfan gwbl god agored a gellir addasu lliwiau\'r ap.
-
- Mae\'r ap hwn yn un mewn casgliad o apiau. Gweler y gweddill ar https://www.simplemobiletools.com
-
-
- Åbn fil …
+ Åbn filEksporter som filFilen er for stor, den må højst fylde 1MB
- Importer kun filindholdet\n(ændring af filen vil ikke berøre noten)
- Opdater selve filen når noten ændres\n(noten slettes hvis filen bliver slettet eller flyttes til en anden placering)
+ Importer kun filindholdet
+\n(ændring af filen vil ikke berøre noten)
+ Opdater selve filen når noten ændres
+\n(noten slettes hvis filen bliver slettet eller flyttes til en anden placering)Slet også filen \"%s\"Noten \"%s\" er gemtNoten \"%s\" er eksporteret
- Eksporter kun filens indhold\n(ændring af noten påvirker ikke filen
-
+ Eksporter kun filens indhold
+\n(ændring af noten påvirker ikke filenVis en meddelelse når en fil er gemtGør links og mailadresser klikbare
@@ -38,6 +52,7 @@
Brug en monospatieret fontVis tastatur fra startVis antal ord
+ Vis antal tegnJusteringVenstreCentreret
@@ -47,38 +62,24 @@
Autogem noterAktiver tekstombrydningAnvend inkognito-tilstand til tastatur
- Move undone checklist items at the top
-
+ Flyt udførte tjeklistepunkter til bunden
+ Tilføj nye tjeklistepunkter øverstTjekliste
+ TjeklisterFøj et nyt punkt til tjeklistenFøj nye punkter til tjeklistenTjeklisten er tom
-
+ Fjern udførte elementer
+ Føj til toppen
- Eksporter alle noter som filer
- Importer flere filer som noterImporter mappe
-
+ Eksporter alle noter
+ Importer noter
+ Importer noter (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Har du brug for hurtigt at notere noget, fx en huskeseddel, en adresse eller en ide, så er denne app lige noget for dig! Der er ingen komplicerede opsætninger, gå bare i gang med at notere med det samme. Indeholder automatisk gemmefunktion, så du mister ikke dine ændringer ved en fejltagelse. Understøtter oprettelse af flere uafhængige noter.
-
- Du kan tilgå en note på ingen tid ved at bruge appens widget, som kan tilpasses og skaleres og åbnes med et enkelt klik.
-
- Uden reklamer og unødvendige tilladelser. Den er helt igennem open source, og du kan selv bestemme farverne.
-
- Denne app er en del af en større serie. Du kan finde dem alle på siden https://www.simplemobiletools.com
-
-
+ Hvordan kan jeg ændre widget\'ens farve\?
+ Hvis du kun har en aktiv widget, kan du enten genskabe den eller bruge knappen i appindstillingerne til at tilpasse den. Hvis du har flere aktive widgets, er knappen i appindstillingerne ikke tilgængelig. Da appen understøtter farvetilpasning pr. widget, skal du genskabe den widget, som du vil tilpasse.Datei öffnenAls Datei exportieren
- Datei ist zu groß. Die maximale Größe beträgt 1 MB.
- Importiere nur den Dateiinhalt.\n(Änderungen an der Datei haben keine Auswirkungen auf die Notiz.)
- Übernehme Änderungen an der Notiz in die Datei\n(Notiz wird gelöscht, wenn die Datei gelöscht wird oder sich der Pfad ändert.)
- Lösche Datei \"%s\"
- Notiz \"%s\" erfolgreich gespeichert
- Notiz \"%s\" erfolgreich exportiert
- Nur den aktuellen Dateiinhalt exportieren\n(Das Verändern der Notiz wird nicht die Datei beeinflussen)
-
+ Die Datei ist zu groß, die Grenze liegt bei 1 MB
+ Nur den Dateiinhalt importieren.
+\n(Änderungen an der Datei haben keine Auswirkungen auf die Notiz.)
+ Datei nach Änderungen der Notiz aktualisieren
+\n(Notiz wird gelöscht, wenn die Datei gelöscht wird oder sich der Pfad ändert.)
+ Auch Datei „%s“ löschen
+ Notiz „%s“ erfolgreich gespeichert
+ Notiz „%s“ erfolgreich exportiert
+ Nur den aktuellen Dateiinhalt exportieren
+\n(Das Verändern der Notiz wird die Datei nicht beeinflussen)
- Zeige Benachrichtigung bei erfolgreichem Speichern
+ Bei erfolgreichem Speichern Benachrichtigung anzeigenLinks und E-Mail-Adressen anklickbar
- Platziere Cursor am Ende der Notiz
+ Cursor an das Ende der Notiz setzenBenutze Monospace Schrift
- Zeige Tastatur beim Start
- Zeige Wortanzahl
+ Beim Start Tastatur anzeigen
+ Wortanzahl anzeigen
+ Zeichenanzahl anzeigenAusrichtungLinksbündigZentriertRechtsbündigWidget-Notiz
- Zeige einen Notiz-Wähler beim Start
+ Beim Start einen Notiz-Wähler anzeigenNotizen automatisch speichernZeilenumbruch aktivieren
- Benutze den Inkognitomodus von Tastaturen
- Verschiebe rückgängig gemachte Checklisteneinträge nach oben
-
+ Inkognitomodus von Tastaturen verwenden
+ Erledigte Checklistenpunkte ans Ende verschieben
+ Neue Checklistenpunkte am Anfang hinzufügenCheckliste
- Einen neuen Checklisteneintrag hinzufügen
- Neue Checklisteneinträge hinzufügen
+ Checklisten
+ Einen neuen Checklistenpunkt hinzufügen
+ Neue Checklistenpunkte hinzufügenDie Checkliste ist leer
-
+ Erledigte Punkte entfernen
+ Zum Anfang hinzufügen
- Alle Notizen als Dateien exportieren
- Mehrere Dateien als Notizen importierenOrdner importieren
-
+ Notizen exportieren
+ Notizen importieren
+ Notizen importieren (Pro)
- Wie kann ich die Farbe der Widgets ändern?
+ Wie kann ich die Farbe der Widgets ändern\?Wenn nur ein Widget aktiv ist, kann die Farbe über die Einstellungen unter dem Punkt Widgets angepasst werden, ansonsten muss es neu erstellt werden.
-
-
-
- Simple Notes Pro - Einfach Handy Notizen erstellen
-
- Schnell und einfach Notizen verfassen ohne Werbung oder seltsame Berechtigungen.
-
- Du musst dir schnell aufschreiben, was du kaufen wolltest oder vielleicht eine Adresse oder Idee für ein Startup? Dann ist diese App genau das Richtige für dich! Keine komplizierte Einrichtung, du kannst direkt beginnen, zu tippen. Inklusive Autosave-Funktion, damit du keine ungespeicherten Änderungen verlierst. Unterstützt die Erstellung von mehreren unabhängigen Notizen.
-
- Du kannst auf eine Notiz in Windeseile durch die anpassbaren Widgets zurückgreifen, welche die App mit einem Klick öffnen.
-
- Beinhaltet keine Werbung oder unnötige Berechtigungen. Sie ist komplett Open Source, alle verwendeten Farben sind anpassbar.
-
- Diese App ist nur eine aus einer größeren Serie von schlichten Apps. Der Rest davon findet sich auf https://www.simplemobiletools.com
-
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml
index ad610fa1d..d85fc5c39 100644
--- a/app/src/main/res/values-el/strings.xml
+++ b/app/src/main/res/values-el/strings.xml
@@ -1,7 +1,9 @@
+
Απλή ΣημείωσηΣημείωση
- Σας ευχαριστούμε που χρησιμοποιείτε τις Απλές σημειώσεις.\nΓια άλλες Απλές εφαρμογές, επισκεφθείτε το SimpleMobileTools.com.
+ Σας ευχαριστούμε που χρησιμοποιείτε τις Απλές σημειώσεις.
+\nΓια άλλες Απλές εφαρμογές, επισκεφθείτε το SimpleMobileTools.com.Αδύνατη η κοινή χρήση κενού κειμένουΑπλή ΣημείωσηΠροσθήκη νέας σημείωσης
@@ -15,29 +17,42 @@
Γενική σημείωσηΔημιουργία νέας σημείωσηςΠροσθήκη στη σημείωση
- Έχετε ορισμένες μη αποθηκευμένες αλλαγές. Τι θέλεις να κάνεις με αυτές;
+ Έχετε ορισμένες μη αποθηκευμένες αλλαγές. Τι θέλετε να κάνετε με αυτές;Σημείωση που εμφανίζεται στο widget:
+ Εμφάνιση τίτλου σημείωσηςΝέος τύπος σημείωσης:Σημείωση κειμένου
-
+ Κλείδωμα Σημείωσης
+ Ξεκλείδωμα Σημείωσης
+ Ξεκλείδωμα Σημειώσεων
+ Οι ακόλουθες σημειώσεις είναι κλειδωμένες. Μπορείτε είτε να τις ξεκλειδώσετε μία προς μία είτε να παραλείψετε την εξαγωγή τους.
+ Το περιεχόμενο των σημειώσεων είναι κλειδωμένο.
+ Εμφάνιση περιεχομένου
+ ΠΡΟΣΟΧΗ: Εάν ξεχάσετε τον κωδικό των σημειώσεων, δεν θα μπορείτε πλέον να τον ανακτήσετε ή να αποκτήσετε πρόσβαση στο περιεχόμενό τους.
+ Νέα σημείωση κειμένου
+ Νέα λίστα ελέγχου
+ Η εφαρμογή δεν μπορεί να φορτώσει αρχεία μέσω διαδικτύουΆνοιγμα αρχείουΕξαγωγή ως αρχείοΤο αρχείο είναι πολύ μεγάλο, το όριο είναι 1MB
- Εισαγωγή μόνο του περιεχομένου του αρχείου\n(η αλλαγή του αρχείου δεν θα επηρεάσει τη σημείωση)
- Ενημέρωση του ίδιου του αρχείου κατά την ενημέρωση της σημείωσης\n(η σημείωση διαγράφεται αν το αρχείο διαγραφεί ή αλλάξει η διαδρομή)
+ Εισαγωγή μόνο του περιεχομένου του αρχείου
+\n(η αλλαγή του αρχείου δεν θα επηρεάσει τη σημείωση)
+ Ενημέρωση του ίδιου του αρχείου κατά την ενημέρωση της σημείωσης
+\n(η σημείωση διαγράφεται αν το αρχείο διαγραφεί ή αλλάξει η διαδρομή)Διαγραφή επίσης του αρχείου \"%s\"
- Η Σημείωση \"%s\" αποθηκεύτηκε με επιτυχία
+ Η σημείωση \"%s\" αποθηκεύτηκε με επιτυχίαΗ εξαγωγή \"%s\" ολοκληρώθηκε με επιτυχία
- Εξαγωγή μόνο του περιεχομένου του τρέχοντος αρχείου\n(η αλλαγή της σημείωσης δεν θα επηρεάσει το αρχείο)
-
+ Εξαγωγή μόνο του περιεχομένου του τρέχοντος αρχείου
+\n(η αλλαγή της σημείωσης δεν θα επηρεάσει το αρχείο)Εμφάνιση μηνυμάτων επιτυχούς αποθήκευσης
- Δυνατότητα επιλογής συνδέσεων και μηνυμάτων ηλεκτρονικού ταχυδρομείου
+ Δυνατότητα επιλογής συνδέσμων και emailΤοποθέτηση δρομέα στο τέλος της σημείωσηςΧρήση μονοδιάστατης γραμματοσειράςΕμφάνιση πληκτρολογίου κατά την εκκίνησηΕμφάνιση καταμέτρησης λέξεων
+ Εμφάνιση αριθμού χαρακτήρωνΣτοίχισηΑριστεράΚέντρο
@@ -46,39 +61,25 @@
Εμφάνιση επιλογής σημείωσης στην εκκίνησηΑυτόματη αποθήκευση σημειώσεωνΕνεργοποίηση αναδίπλωσης γραμμής
- Χρήση λειτουργίας Incognito πληκτρολόγιου
- Μετακίνηση ανεπιτυχών λίστας ελέγχου στο επάνω μέρος
-
+ Χρήση λειτουργίας πληκτ/γιου Incognito
+ Μετακίνηση ανεπιτυχών λίστας ελέγχου στην κορυφή
+ Προσθήκη νέων στοιχείων λίστας ελέγχου στην κορυφήΛίστα ελέγχου
+ Λίστες ελέγχουΠροσθήκη νέου στοιχείου λίστας ελέγχουΠροσθήκη νέων στοιχείων λίστας ελέγχουΗ λίστα ελέγχου είναι κενή
-
+ Κατάργηση ολοκληρωμένων στοιχείων
+ Προσθήκη στην κορυφή
- Εξαγωγή όλων των σημειώσεων ως αρχεία
- Εισαγωγή πολλών αρχείων ως σημειώσειςΕισαγωγή φακέλου
-
+ Εξαγωγή όλων των σημειώσεων
+ Εισαγωγή σημειώσεων
+ Εισαγωγή σημειώσεων (Pro)
- Πώς μπορώ να αλλάξω το χρώμα των Γραφικών στοιχείων;
+ Πώς μπορώ να αλλάξω το χρώμα των γραφικών στοιχείων;Σε περίπτωση που έχετε μόνο 1 ενεργό Γραφικό στοιχείο, μπορείτε να το δημιουργήσετε εκ νέου ή να χρησιμοποιήσετε το κουμπί στις ρυθμίσεις της εφαρμογής για να το προσαρμόσετε. Αν έχετε πολλά ενεργά , το κουμπί στις ρυθμίσεις της εφαρμογής δεν θα είναι διαθέσιμο. Καθώς η εφαρμογή υποστηρίζει προσαρμογή χρώματος ανά Γραφικό στοιχείο, θα πρέπει να το δημιουργήσετε ξανά αυτό που θέλετε να προσαρμόσετε.
-
-
-
- Απλές Σημειώσεις Pro - Πολύ εύκολη δημιουργία
-
- Μια όμορφη εφαρμογή χωρίς διαφημίσεις ή περίεργα δικαιώματα.
-
- Χρειάζεστε μια σημείωση για κάτι ή για αγορά, μιαδιεύθυνση ή μια ιδέα που σας ήρθε; Τότε αυτή είναι η εφαρμογή που αναζητάτε! Δεν απαιτούνται περίπλοκα βήματα εγκατάστασης, απλώς πληκτρολογήστε αυτό το οποίο θέλετε. Διατίθεται με αυτόματη αποθήκευση, ώστε να μην απορρίψετε τις αλλαγές σας κατά λάθος. Υποστηρίζει τη δημιουργία πολλών ανεξάρτητων σημειώσεων.
-
- Μπορείτε να αποκτήσετε πρόσβαση στη σημείωση σε ελάχιστο χρόνο χρησιμοποιώντας το προσαρμοζόμενο γραφικό στοιχείο, το οποίο ανοίγει την εφαρμογή με ένα κλικ.
-
- Δεν περιέχει διαφημίσεις ή περιττές άδειες. Είναι πλήρως ανοιχτού κώδικα, και παρέχει προσαρμόσιμα χρώματα.
-
- Αυτή η εφαρμογή είναι μόνο ένα μέρος μιας μεγαλύτερης σειράς εφαρμογών. Μπορείτε να βρείτε τις υπόλοιπες στη διεύθυνση https://www.simplemobiletools.com
-
-
+ Malfermi dosieron
+ Export as file
+ File too large, the limit is 1MB
+ Only import the file content
+\n(changing the file will not affect the note)
+ Update the file itself at updating the note
+\n(note gets deleted if file gets deleted, or path changes)
+ Also delete file \"%s\"
+ Note \"%s\" saved successfully
+ Note \"%s\" exported successfully
+ Only export the current file content
+\n(changing the note will not affect the file)
+
+ Display save success messages
+ Make links and emails clickable
+ Place cursor to the end of note
+ Use monospaced font
+ Show keyboard on startup
+ Montri nombron de vortoj
+ Montri nombron de skribsignoj
+ Alignment
+ Maldekstro
+ Centro
+ Dekstro
+ Note used in widget
+ Show a note picker on startup
+ Autosave notes
+ Enable line wrap
+ Use Incognito mode of keyboards
+ Move done checklist items to the bottom
+ Add new checklist items at the top
+
+ Checklist
+ Checklists
+ Add a new checklist item
+ Add new checklist items
+ The checklist is empty
+ Remove done items
+ Add to the top
+
+ Import folder
+ Export notes
+ Import notes
+ Import notes (Pro)
+
+ How can I change the widgets color\?
+ In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
+
+
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 95a1a40a5..f387c3a65 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -1,7 +1,9 @@
+
Simple NotesNotas
- Gracias por usar Simple Notes.\nPara más aplicaciones simples, por favor visite SimpleMobileTools.com.
+ Gracias por usar Simple Notes.
+\nPara más aplicaciones simples, por favor visite SimpleMobileTools.com.No se puede compartir una nota vacíaNota simpleAñadir una nueva nota
@@ -9,35 +11,48 @@
Ya existe una nota con ese nombreAbrir notaEliminar nota
- ¿Está seguro de querer eliminar la nota \"%s\"?
+ ¿Está seguro de que quiere eliminar la nota \"%s\"\?Seleccione una notaRenombrar notaNota principalCrear una nota nuevaAñadir a la nota
- Tienes cambios sin guardar. ¿Qué quieres ahcer con ellos?
+ Tienes cambios sin guardar. ¿Qué quieres hacer con ellos\?Nota mostrada en el widget:
+ Mostrar el título de la notaNuevo tipo de nota:Nota de texto
-
+ Bloquear nota
+ Desbloquear nota
+ Desbloquear las notas
+ Las siguientes notas están bloqueadas. Puedes desbloquearlas una a una u omitir su exportación.
+ El contenido de la nota está bloqueado.
+ Mostrar contenido
+ ADVERTENCIA: Si olvidas la contraseña de la nota, ya no podrás recuperarla o acceder a su contenido.
+ Nueva nota de texto
+ Nueva lista de tareas
+ La aplicación no puede cargar archivos a través de InternetAbrir archivoExportar como archivoArchivo demasiado grande, el límite es 1MB
- Solo importar el contenido del archivo\n(Cambiar el archivo no afectará a la nota)
- Actualizar el propio archivo cuando se actualice la nota\n(La nota se borrará si el archivo se elimina, o la ruta cambia)
+ Solo importar el contenido del archivo
+\n(Cambiar el archivo no afectará a la nota)
+ Actualizar el propio archivo cuando se actualice la nota
+\n(La nota se borrará si el archivo se elimina, o la ruta cambia)También borrar el archivo \"%s\"Nota \"%s\" guardada con éxitoNota \"%s\" exportada con éxito
- Solo exportar el contenido del archivo actual\n(Modificar la nota no afectará el archivo)
-
+ Solo exportar el contenido del archivo actual
+\n(Modificar la nota no afectará el archivo)Mostrar mensajes de guardado con éxitoMostrar enlaces y direcciones de correo como seleccionablesColocar el cursor al final de la notaUsar fuente monoespaciada
- Mostrar el teclado al incio
- Mostrar recuento de palabras
+ Mostrar teclado al iniciar
+ Mostrar conteo de palabras
+ Mostrar conteo de caracteresAlineación del textoIzquierdaCentrado
@@ -47,40 +62,26 @@
Guardado automático de notasActivar ajuste de líneaUsar modo incógnito de los teclados
- Mover Elementos sin erminar de una lista al inicio
-
+ Mover ítems completados al final de la lista
+ Añade nuevos elementos a la parte superior de la lista de controlLista
- Añadir un nuevo item a la lista
- Añadir nuevos items a la lista
+ Listas de control
+ Añadir un nuevo ítem a la lista
+ Añadir nuevos ítems a la listaLa lista está vacía
-
+ Borrar ítems completados
+ Add to the top
- Exportar todas las notas como archivos
- Importar múltiples archivos como notasImportar carpeta
-
+ Exportar las notas
+ Import notes
+ Importar notas (Pro)
- ¿Cómo puedo cambiar los colores del widget?
+ ¿Cómo puedo cambiar los colores del widget\?En caso de que solo tengas un widget activo, Puedes volverlo a crear, o usar el botón en los ajustes de la aplicación para personalziarlo. Si tienes múltiples widgets activos, el botón en los ajustes de la aplicación no estará disponible. Ya que la aplicación soporta personalización de color por widget, tendrás que volver a crear el widget tque quieres personalizar.
-
-
-
- Simple Notes Pro - Crea notas fácilmente
-
- Una hermosa app para tomar notas rápidas sin anuncios o permisos raros.
-
- ¿Necesita tomar nota de algo para comprar, una dirección o una idea? ¡Entonces ésta es la aplicación que estaba buscando! Sin complicadas configuraciones, tan solo escriba lo que quiera. Viene con guardado automático, por tanto usted no descartará ningún cambio por error. Soporta la creación de múltiples notas independientes.
-
- Puede acceder rápidamente a la nota desde el widget personalizable y ajustable, el cual abre la aplicación con un simple toque.
-
- No contiene anuncios ni permisos innecesarios. Es completamente OpenSource y además provee un tema oscuro.
-
- Esta aplicación es tan solo una pequeña parte de una serie de aplicaciones. Puede encontrar el resto en https://www.simplemobiletools.com
-
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-et/strings.xml b/app/src/main/res/values-et/strings.xml
new file mode 100644
index 000000000..2b98d668b
--- /dev/null
+++ b/app/src/main/res/values-et/strings.xml
@@ -0,0 +1,87 @@
+
+
+ Lihtne märkmik
+ Märkmik
+ Täname et kasutad Lihtsat märkmikku.
+\nTeisi rakendusi meie Lihtsate tarvikute seeriast leiad SimpleMobileTools.com saidist.
+ Tühja sisu ei saa jagada
+ Lihtne märge
+ Lisa uus märge
+ Palun pane oma märkele nimi
+ Sellise nimega märge on juba olemas
+ Ava märge
+ Kustuta märge
+ Kas sa oled kindel, et soovid kustutada „%s“ märget\?
+ Vali märge
+ Muuda märkme nime
+ Üldine märge
+ Loo uus märge
+ Lisa märkmele
+ Sul on salvestamata muudatusi. Mida sa tahad nendega teha\?
+ Vidinas näidatav märge:
+ Näita märkme pealkirja
+ Uue märkme tüüp:
+ Tekstimärge
+ Lukusta märge
+ Eemalda märkme lukustus
+ Eemalda märkmete lukustus
+ Järgmised märkmed on lukus. Saad need kas ükshaaval avada või eksportimise vahele jätta.
+ Märkme sisu on lukustatud.
+ Näita sisu
+ HOIATUS: Kui sa unustad märkme salasõna, siis sa ei saa seda märget avada ega tema sisu lugeda.
+ Uus tekstimärge
+ Uus tööde loend
+ See rakendus ei saa laadida faile internetist
+
+ Ava fail
+ Ekspordi failina
+ Faili suurus ületab lubatud 1MB piiri
+ Impordi vaid faili sisu
+\n(faili vahetamine ei mõjuta märget)
+ Märkme uuendamisel uuenda ka faili
+\n(faili kustutamisel või asukoha muutumisel kustub ka märge)
+ Samuti kustuta „%s“ fail
+ „%s“ märkme salvestamine õnnestus
+ „%s“ märkme eksportimine õnnestus
+ Ekspordi vaid praeguse faili sisu
+\n(märkme muutmine ei mõjuta faili)
+
+ Näita teateid salvestamise õnnestumise kohta
+ Tee lingid ja e-posti aadressid klikatavaks
+ Aseta kursor märkme lõppu
+ Kasuta fikseeritud laiusega kirjatüüpi
+ Käivitamisel näita klahvistikku
+ Näita sõnade arvu
+ Näita tähemärkide arvu
+ Joondumine
+ Vasakule
+ Keskele
+ Paremale
+ Märge on kasutusel rakenduse vidinas
+ Rakenduse käivitamisel näita märkmete valijat
+ Salvesta märkmed automaatselt
+ Kasuta ridade murdmist
+ Kasuta klaviatuuride inkognito-režiimi
+ Tööde loendis liiguta täidetud ülesanded loendi lõppu
+ Lisa uued kirjed tööde loendi algusesse
+
+ Tööde loend
+ Tööde loendid
+ Lisa tööde loendisse uus kirje
+ Lisa tööde loendisse uued kirjed
+ Tööde loend on tühi
+ Kustuta tehtuks märgitud kirjed
+ Lisa ülaossa
+
+ Impordi kaust
+ Ekspordi märkmed
+ Impordi märkmed
+ Impordi märkmed (Pro)
+
+ Kuidas ma saan muuta vidinate värvi\?
+ Kui sa kasutad vaid üht vidinat, siis kas saad ta uuesti luua või kasutada rakenduse seadistusi värvide kohandamiseks. Kui sul on pidevas kasutuses mitu vidinat, siis rakenduste seadistuste nupp ei toimi. Kuna rakendus võimaldab eri vidinatele määrata erinevaid värve, siis sa pead muudetava vidina uuesti looma.
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-fa/strings.xml b/app/src/main/res/values-fa/strings.xml
new file mode 100644
index 000000000..a8f2348fe
--- /dev/null
+++ b/app/src/main/res/values-fa/strings.xml
@@ -0,0 +1,87 @@
+
+
+ یادداشت آسان
+ یادداشت
+ ممنون که از یادداشت آسان استفاده میکنید.
+\nبرای داشتن برنامههای آسان دیگر از سایت SimpleMobileTools.com دیدن کنید.
+ نمیتوان متن خالی را اشتراک گذاشت
+ یادداشت آسان
+ افزودن یادداشت جدید
+ لطفا نام یادداشت خود را بنویسید
+ یک یادداشت با این عنوان هماکنون وجود دارد
+ بازکردن یادداشت
+ حذف یادداشت
+ آیا از حذف یادداشت \"%s\" مطمئنید؟
+ گزینش یک یادداشت
+ تغییرنام یادداشت
+ یادداشت عمومی
+ ایجاد یک یادداشت جدید
+ افزودن به یادداشت
+ شما مقداری تغییرات ذخیره نشده دارید. میخواهید با آنها چکار کنید؟
+ یادداشتی که در ابزارک نمایش داده میشود:
+ نمایش عنوان یادداشت
+ نوع یادداشت جدید:
+ یادداشت متنی
+ قفل کردن یادداشت
+ باز کردن قفل یادداشت
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ محتویات یادداشت، قفل است
+ نمایش محتویات
+ هشدار: اگر گذرواژهٔ یادداشت را فراموش کنید، دیگر قادر به بازیابی آن یا دسترسی به محتویات یادداشت نیستید.
+ New text note
+ New checklist
+ The app cannot load files over the internet
+
+ بازکردن پرونده
+ برونریزی به عنوان پرونده
+ پرونده بسیار بزرگ است، محدودیت ۱ مگابایت است
+ فقط محتویات پرونده درونریزی شد
+\n(تغییر دادن پرونده تاثیری بر یادداشت نخواهد گذاشت)
+ هنگام بهروز رسانی یادداشت، خود پرونده نیز بهروز شود
+\n(اگر پرونده حذف یا مسیر آن تغییر کند، یادداشت نیز حذف خواهد شد)
+ همچنین حذف پروندهٔ \"%s\"
+ یادداشت \"%s\" با موفقیت ذخیره شد
+ یادداشت \"%s\" با موفقیت برونریزی شد
+ فقط محتویات پروندهٔ فعلی برونریزی شد
+\n(تغییر دادن یادداشت تاثیری بر پرونده نخواهد گذاشت)
+
+ نمایش پیام ذخیره موفق
+ قابل کلیک کردن پیوندها و ایمیلها
+ قرار دادن مکاننما در انتهای یادداشت
+ استفاده از قلم هم عرض
+ نمایش کیبورد در شروع
+ نمایش شمارشگر کلمه
+ نمایش شمارشگر نویسه
+ چینش
+ چپ
+ وسط
+ راست
+ یادداشت استفاده شده در ابزارک
+ نمایش یک گزینشگر یادداشت در شروع
+ ذخیره خودکار یادداشتها
+ فعال کردن پیچیدن خط
+ استفاده از حالت ناشناس کیبوردها
+ جابهجایی موارد انجام شده فهرست نشاندار به پایین
+ Add new checklist items at the top
+
+ فهرست نشاندار
+ Checklists
+ افزودن یک مورد به فهرست نشاندار
+ افزودن موارد به فهرست نشاندار
+ فهرست نشاندار خالی است
+ پاک کردن موارد انجام شده
+ Add to the top
+
+ درونریزی پوشه
+ Export notes
+ Import notes
+ Import notes (Pro)
+
+ چگونه میتوانم رنگ ابزارکها را تغییر دهم؟
+ در این مثال شما فقط یک ابزارک فعال دارید، شما همچنین میتوانید آن را دوباره بسازید، یا از دکمه درون تنظیمات آن را سفارشیسازی کنید. اگر شما چندین ابزارک فعال دارید، دکمه درون تنظیمات در دسترس نخواهد بود. همچنان برنامه از سفارشیسازی رنگ برای هر ابزارک پشتیبانی میکند، شما خواهید توانست با ساخت دوبارهٔ ابزارک آن را سفارشیسازی کنید.
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml
new file mode 100644
index 000000000..a23d51552
--- /dev/null
+++ b/app/src/main/res/values-fi/strings.xml
@@ -0,0 +1,87 @@
+
+
+ Yksinkertaiset muistiinpanot
+ Muistiinpanot
+ Kiitos Simple Notesin käyttämisestä.
+\nLisätietoja yksinkertaisimmista sovelluksista on osoitteessa SimpleMobileTools.com.
+ Tyhjää tekstiä ei voi jakaa
+ Yksinkertainen Muistiinpano
+ Lisää uusi muistiinpano
+ Nimeä muistiinpanosi
+ Tämän niminen muistiinpano on jo olemassa
+ Avaa muistiinpano
+ Poista muistiinpano
+ Haluatko varmasti poistaa muistiinpanon \"%s\"\?
+ Valitse muistiinpano
+ Nimeä muistiinpano uudelleen
+ Yleinen muistiinpano
+ Luo uusi muistiinpano
+ Lisää muistiinpanoon
+ Sinulla on joitain tallentamattomia muutoksia. Miten haluat toimia\?
+ Pienoissovelluksessa näkyvä muistiinpano:
+ Näytä muistiinpanon otsikko
+ Uusi muistiinpanotyyppi:
+ Tekstimuistiinpano
+ Lukitse huomautus
+ Avaa muistiinpanon lukitus
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ Muistiinpanon sisältö on lukittu.
+ Näytä sisältö
+ VAROITUS: Jos unohdat muistiinpanon salasanan, sitä ei ole mahdollista palauttaa etkä pääse enää käsiksi muistiinpanoon.
+ Uusi tekstimuistiinpano
+ Uusi tarkistuslista
+ The app cannot load files over the internet
+
+ Avaa tiedosto
+ Vie tiedostona
+ Tiedosto on liian suuri, raja on 1 Mt
+ Tuo vain tiedoston sisältö
+\n (tiedoston muuttaminen ei vaikuta muistiinpanoon)
+ Päivitä itse tiedosto päivitettäessä muistiinpanoa
+\n (muistiinpano poistetaan, jos tiedosto poistetaan tai polku muuttuu)
+ Poista myös tiedosto \"%s\"
+ Muistiinpano \"%s\" tallennettu onnistuneesti
+ Muistiinpano \"%s\" vietiin onnistuneesti
+ Vie vain nykyinen tiedostosisältö
+\n (muistiinpanon muuttaminen ei vaikuta tiedostoon)
+
+ Näytä tallennus onnistunut viestit
+ Tee linkit ja sähköpostit klikattavaksi
+ Aseta kohdistin muistiinpanon loppuun
+ Käytä yksirivistä fonttia
+ Näytä näppäimistö käynnistettäessä
+ Näytä sanamäärä
+ Näytä merkkien määrä
+ Kohdistus
+ Vasemmalle
+ Keskelle
+ Oikealle
+ Pienoissovelluksessa käytettävä muistiinpano
+ Näytä muistiinpanovalitsin käynnistyksen yhteydessä
+ Muistiinpanojen automaattinen tallennus
+ Ota käyttöön automaattinen rivitys
+ Käytä näppäimistöjen Incognito-tilaa
+ Siirrä tekemättömät kohdat muistilistasta ylimmäksi
+ Lisää uusia merkattavia tehtäviä alkuun
+
+ Muistilista
+ Merkattavat listat
+ Lisää uusi kohta muistilistaan
+ Lisää uusia kohtia muistilistaan
+ Muistilista on tyhjä
+ Poista tehdyt kohdat
+ Add to the top
+
+ Tuo kansio
+ Vie muistiinpanoja
+ Tuo muistiinpanoja
+ Tuo muistiinpanoja (Pro)
+
+ Miten vaihdan pienoissovelluksen väriä\?
+ Jos sinulla on vain yksi aktiivinen pienoissovellus, voit joko luoda sen uudelleen tai mukauttaa sitä sovelluksen asetukset-painikkeella. Jos sinulla on useita aktiivisia pienoissovelluksia, sovelluksessa oleva asetukset-painike ei ole käytettävissä. Koska sovellus tukee värien mukauttamista pienoissovellusta kohti, sinun on luotava uudelleen pienoissovellus, jonka haluat muokata.
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 5d6d788f4..d6cdae487 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -1,43 +1,58 @@
+
- Simple Notes
+ Notes simplesNotes
- Merci d\'utiliser Simple Notes.\nPour plus d\'applications simples merci de visiter SimpleMobileTools.com.
+ Merci d\'utiliser Notes simples.
+\nPour plus d\'applications simples, merci de visiter SimpleMobileTools.com.Impossible de partager un texte vide
- Simple Note
+ Note simpleAjouter une nouvelle noteVeuillez nommer votre noteUne note avec le même titre existe déjàOuvrir la noteSupprimer la note
- Etes-vous sûr de vouloir supprimer la note \"%s\"?
+ Voulez-vous vraiment supprimer la note « %s » \?Choisir une noteRenommer la noteNote généraleCréer une nouvelle noteAjouter à la note
- You have some unsaved changes. What do you want to do with them?
- Note shown in the widget:
- New note type:
- Text note
-
+ Vous avez des changements non sauvegardés. Que voulez-vous faire avec \?
+ Note affichée dans le widget :
+ Afficher le titre de la note
+ Type de la note :
+ Texte
+ Verrouiller la note
+ Déverrouiller la note
+ Déverrouiller les notes
+ Les notes suivantes sont verrouillées. Vous pouvez les déverrouiller une par une ou ne pas les exporter.
+ Le contenu des notes est verrouillé.
+ Montrer le contenu
+ 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.
+ Nouvelle note textuelle
+ Nouvelle liste de contrôle
+ L\'application ne peut pas charger de fichiers depuis internetOuvrir le fichierExporter dans un fichier
- Taille du fichier trop importante, la limite est de 1MB
- Importer seulement le contenu du fichier\n(changer le fichier n\'affectera pas la note)
- Mettre à jour le fichier lui-même lors de la mise à jour de la note\n(la note est supprimée si le fichier est supprimé, ou si le chemin change)
- Supprimer également le fichier \"%s\"
- Note \"%s\" sauvegardée avec succès
- Note \"%s\" exportée avec succès
- Only export the current file content\n(changing the note will not affect the file)
-
+ Fichier trop volumineux, la limite est de 1 Mo
+ Importer seulement le contenu du fichier
+\n(changer le fichier n\'affectera pas la note)
+ Mettre à jour le fichier lui-même lors de la mise à jour de la note
+\n(la note est supprimée si le fichier est supprimé, ou si le chemin change)
+ Supprimer également le fichier « %s »
+ La note « %s » a été sauvegardée avec succès
+ La note « %s » a été exportée avec succès
+ Exporter seulement le contenu du fichier
+\n(changer le fichier n\'affectera pas la note)Afficher les messages de succès de sauvegarde
- Rendre les liens et les emails cliquables
- Placer le curseur à la fin de la note
+ Rendre les liens et les courriels cliquables
+ Placez le curseur à la fin de la noteUtiliser une police monospaceAfficher le clavier au démarrageAfficher le nombre de mots
+ Afficher le nombre de caractèresAlignementGaucheCentre
@@ -46,41 +61,27 @@
Choisir une note au démarrageSauvegarder automatiquement les notesActiver le retour à la ligne
- Use Incognito mode of keyboards
- Move undone checklist items at the top
-
+ Utiliser le mode incognito du claviers
+ Déplacer les éléments de liste de contrôle inachevés en-bas
+ Ajouter un élément de liste de contrôle en-haut
- Checklist
- Add a new checklist item
- Add new checklist items
- The checklist is empty
-
+ Liste de contrôle
+ Listes de contrôle
+ Ajouter un nouvel élément
+ Ajouter de nouveaux éléments
+ La liste de contrôle est vide
+ Supprimer les éléments cochés
+ Ajouter en haut de la liste
- Exporter toutes les notes en tant que fichiers
- Importer plusieurs fichiers en tant que notesImporter depuis un dossier
-
+ Exporter les notes
+ Importer des notes
+ Importer des notes (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Besoin de noter rapidement quelque chose à acheter, une adresse, ou une idée de startup ? Alors ceci est l\'application que vous cherchiez ! Pas d\'étapes compliquées de configuration nécéssaires, saisissez juste ce pourquoi vous êtes venu. Fournit une sauvegarde automatique, ainsi vous ne rejetterez pas vos changements par erreur. Supporte la création de multiples notes indépendantes.
-
- Vous pouvez accéder à la note en peu de temps en utilisant le widget personnalisable et redimensionnable, qui ouvre l\'application en un clic.
-
- Ne contient ni publicités, ni autorisations inutiles. Complétement opensource, fournit un thème sombre également.
-
- Cette application est juste une pièce d\'une plus grande série d\'applications. Vous pouvez trouver le reste de celles-ci à https://www.simplemobiletools.com
-
-
+ Comment puis-je changer la couleur des widgets \?
+ Si vous avez seulement un widget actif, vous pouvez soit le recréer, soit utiliser le bouton dans les paramètres pour le personnaliser. Si vous avez plusieurs widgets actifs, le bouton dans les paramètres ne sera pas disponible. Comme l\'application supporte la personnalisation de la couleur par widget, vous devrez recréer le widget que vous voulez personnaliser.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-gl/strings.xml b/app/src/main/res/values-gl/strings.xml
index b33e912c8..d2779abbd 100644
--- a/app/src/main/res/values-gl/strings.xml
+++ b/app/src/main/res/values-gl/strings.xml
@@ -1,44 +1,59 @@
+
- Simple Notes
+ Simple Notes: NotasNotas
- Grazas por utilizar Simple Notes.\nPara máis aplicativos simples visite SimpleMobileTools.com.
- Non pode compartir un texto baldeiro
+ Grazas por utilizar Simple Notes.
+\nPara máis aplicacións simples visite SimpleMobileTools.com.
+ Non pode compartir un texto baleiroSimple NoteEngadir unha nova nota
- Delle nome a nota
+ Déalle nome á notaXa existe unha nota con ese nomeAbrir notaEliminar nota
- Seguro que quere eliminar a nota \"%s\"?
- Escolla unha nota
- Cambie o nome da nota
- nota Xeral
+ Atopaste seguro de querer eliminar a nota \"%s\"\?
+ Escolle unha nota
+ Cambia o nome da nota
+ Nota xeralCrear unha nova nota
- Engadir a nota
- You have some unsaved changes. What do you want to do with them?
- Note shown in the widget:
- New note type:
- Text note
-
+ Engadir a Nota
+ Non gardaches algúns cambios.Que queres facer con eles\?
+ Nota amosada no widget:
+ Mostralo título da nota
+ Novo tipo de nota:
+ Nota de texto
+ Lock note
+ Desbloqueala nota
+ Desbloquear as notas
+ As seguintes notas atopanse bloqueadas. Podes desbloquealas unha por unha ou non exportalas.
+ O contido das notas está bloqueado.
+ Mostralo contido
+ PERIGO: Se esqueces o contrasinal das notas, xa non poderás recuperalo nin acceder ao contido das notas.
+ Nova nota de texto
+ Nova lista de verificación
+ The app cannot load files over the internetAbrir ficheiroExportar como ficheiro
- Ficheiro demasiado grande, o límite é 1MB
- Só importa o contido do ficheiro\n(cambiar o ficheiro non afecta a nota)
- Actualiza o propio ficheiro ao actualizar a nota\n(a nota elimínase si se elimina o ficheiro, ou cambia a ruta)
+ O ficheiro é demasiado grande, o límite é de 1 MB
+ Só importa o contido do ficheiro
+\n(cambiar o ficheiro non afecta á nota)
+ Actualiza o propio ficheiro ao actualizar a nota
+\n(a nota elimínase se elimina o ficheiro, ou cambia a ruta)Borra tamén ficheiro \"%s\"
- Nota \"%s\" gardada correctamente
- Nota \"%s\" exportada correctamente
- Only export the current file content\n(changing the note will not affect the file)
-
+ Notas \"%s\" gardadas correctamente
+ A nota \"%s\" exportouse correctamente
+ Só exportar o contido do ficheiro actual
+\n(se cambias a nota, non afectará ao ficheiro)Mostra mensaxe de gardado correcto
- Fai que ligazóns e correo-e sexan clicables
- Colocar o cursor ao final da nota
- Use monospaced font
+ Fai que ligazóns e correo-e sexan premibles
+ Coloca o cursor ao final da nota
+ Usar a fonte de monoespaciadoMostrar teclado ao inicioMostrar conta de palabras
- Aliñamento
+ Amosar a contaxe dos caracteres
+ AlineamentoEsquerdaCentroDereita
@@ -46,41 +61,27 @@
Mostrar selector de nota ao inicioGardado automáticoHabilitar sangrado de liña
- Use Incognito mode of keyboards
- Move undone checklist items at the top
-
+ Usar o modo incógnito dos teclados
+ Mover os elementos dunha lista de verificación non rematada a arriba
+ Engade novos elementos da lista de verificación na parte superior
- Checklist
- Add a new checklist item
- Add new checklist items
- The checklist is empty
-
+ Lista de verificación
+ Listas de verificación
+ Engadir un elemento a unha nova lista de verificación
+ Engadir elementos a unha nova lista de verificación
+ A lista de verificación está baleira
+ Elimina os elementos feitos
+ Add to the top
- Exportar todas as notas como ficheiros
- Importar varios ficheiros como notas
- Import folder
-
+ Importar cartafoles
+ Exportar notas
+ Import notes
+ Importar notas (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Precisa tomar unha nota rápida de algo para mercar, un enderezo, unha idea brillante? Entón este é o aplicativo que estaba a buscar! Sin configuracións complicadas, escriba o que desexa. Ten gardado automático, así non perderá os cambios sin querer. Pode crear varias notas independentes.
-
- Pode acceder a nota rápidamente utilizando o widget personalizado que inclúe, con tamaño variable, que abre o app ao pulsalo.
-
- Non ten publicidade ou permisos innecesarios. É de código totalmente aberto e pode mudar a cor ao seu gusto.
-
- Este aplicativo é parte de unha serie maior de aplicativos. Pode atopar o resto en https://www.simplemobiletools.com
-
-
+ Como podo cambiala cor dos widgets\?
+ No caso de que teñas só un widget activo, podes crealo de novo ou usar o botón nos axustes do app para personalizalo.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml
index 7c54a2395..1c71c48f9 100644
--- a/app/src/main/res/values-hr/strings.xml
+++ b/app/src/main/res/values-hr/strings.xml
@@ -1,86 +1,87 @@
+
Jednostavne bilješkeBilješke
- Hvala što koristite Jednostavne bilješke.\nZa više jednostavnih aplikacija posjetite SimpleMobileTools.com..
+ Hvala što koristiš „Jednostavne bilješke”.
+\nZa daljnje jednostavne aplikacije posjeti SimpleMobileTools.com.Nije moguće dijeliti prazan tekstJednostavna bilješkaDodaj novu bilješku
- Nazovite svoju bilješku
+ Zadaj ime za tvoju bilješkuBilješka s tim naslovom već postojiOtvori bilješkuIzbriši bilješku
- Jeste li sigurni da želite izbrisati bilješku \"%s\"?
+ Stvarno želiš izbrisati bilješku „%s”\?Odaberi bilješkuPreimenuj bilješkuOpća bilješkaStvori novu bilješkuDodaj u bilješku
- Imate neke nespremljene izmjene. Što želite učiniti s njima??
+ Imaš nespremljene promjene. Što želiš učiniti s njima\?Bilješka prikazana u widgetu:
+ Prikaži naslov bilješkeNova vrsta bilješke:Tekstualna bilješka
-
+ Zaključaj bilješku
+ Otključaj bilješku
+ Otključaj bilješke
+ Sljedeće bilješke su zaključane. Možeš ih pojedinačno otključati ili preskočiti izvoz bilješki.
+ Sadržaj bilješke je zaključan.
+ Prikaži sadržaj
+ UPOZORENJE: Ako zaboraviš lozinku bilješke, više je nećeš moći obnoviti niti pristupiti njenom sadržaju.
+ Nova tekstualna bilješka
+ Novi popis zadataka
+ Aplikacija ne može učitati datoteke putem internetaOtvori datotekuIzvezi kao datotekuDatoteka je prevelika, granica je 1 MB
- Uvezi samo sadržaj datoteke\n(promjena datoteke neće utjecati na bilješku)
- Ažurirajte samu datoteku prilikom ažuriranja bilješke\n(bilješka se briše ako se datoteka izbriše ili promjeni putanja)
- Također izbriši datoteku \"%s\"
- Bilješka \"%s\" uspješno spremljena
- Bilješka \"%s\" uspješno izvezena
- Izvoz samo trenutnog sadržaja datoteke\n(mijenjanje bilješke neće utjecati na datoteku)
-
+ Uvezi samo sadržaj datoteke
+\n(mijenjanje datoteke neće utjecati na bilješku)
+ Ažuriraj datoteku prilikom ažuriranja bilješke
+\n(bilješka se briše ako se datoteka izbriše ili ako se promjeni putanja)
+ Također izbriši datoteku „%s”
+ Bilješka „%s” uspješno spremljena
+ Bilješka „%s” uspješno izvezena
+ Izvezi samo aktualni sadržaj datoteke
+\n(mijenjanje bilješke neće utjecati na datoteku)
- Prikaži poruke kada je spremanje uspješno
- Napravite veze i e-poruke koje se mogu kliknuti
- Postavite pokazivač do kraja napomene
- Koristi font jednake širine i visine
- Prikažite tipkovnicu prilikom pokretanja
- Prikaz broja riječi
+ Prikaži poruke uspješnog spremanja
+ Omogući pritiskanje poveznica i e-mail adresa
+ Postavi pokazivač na kraj bilješke
+ Koristi font fiksne širine
+ Prikaži tipkovnicu prilikom pokretanja
+ Prikaži broj riječi
+ Prikaži broj znakovaPoravnanjeLijevo
- Sredina
+ CentriranoDesnoBilješka korištena u widgetu
- Prikaži odabir bilješke prilikom pokretanja
- Automatsko spremanje bilješki
- Omogući omotavanje linije
- Use Incognito mode of keyboards
- Move undone checklist items at the top
-
+ Prikaži birač bilješki prilikom pokretanja
+ Automatski spremi bilješke
+ Aktiviraj prijelom teksta
+ Koristi anonimni način tipkovnica
+ Premjesti gotove stavke popisa na kraj
+ Dodaj nove stavke na vrh popisa
- Spisak
- Dodajte novu stavku na spisak
- Dodajte nove stavke na spisak
- Spisak je prazan
-
+ Popis zadataka
+ Popisi zadataka
+ Dodaj novu stavku u popis zadataka
+ Dodaj novu stavku u popis zadataka
+ Popis zadataka je prazan
+ Ukloni gotove stavke
+ Add to the top
- Izvezi sve bilješke kao datoteke
- Uvezi više datoteka kao bilješke
- Mapa za uvoz
-
+ Uvezi mapu
+ Izvezi bilješke
+ Uvezi bilješke
+ Uvezi bilješke (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Trebate li brzo zapamtiti nešto za kupiti, adresu ili startup ideju? Onda je ovo aplikacija koju ste tražili! Nema kompliciranih koraka postavljanja, samo upišite ono za što ste došli. Dolazi s opcijom automatskog spremanja bilješki, tako da nećete odbaciti svoje promjene pogreškom. Podržava stvaranje više nezavisnih bilješki.
-
- Bilješci možete pristupiti u bilo kojem trenutku pomoću prilagodljivog widgeta promjenjive veličine koji otvara aplikaciju klikom.
-
- Ne sadrži oglase ili nepotrebne dozvole. Aplikacije je otvorenog koda, pruža prilagodljive boje.
-
- Ova je aplikacija samo dio većeg broja aplikacija. Možete pronaći ostatak na https://www.simplemobiletools.com
-
-
+ Kako mogu promijeniti boju widgeta\?
+ U slučaju da imaš samo jedan aktivan widget, možeš ga ponovno izraditi ili upotrijebiti gumb u postavkama aplikacije za njegovu prilagođavanje. Ako imaš više aktivnih widgeta, gumb u postavkama aplikacije neće biti dostupan. Budući da aplikacija podržava prilagođavanje boja po widgetu, morat ćeš ponovo izraditi widget koji želiš prilagoditi.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml
index 1fdaec262..c9517b178 100644
--- a/app/src/main/res/values-hu/strings.xml
+++ b/app/src/main/res/values-hu/strings.xml
@@ -1,84 +1,85 @@
+
- Egyszerű Jegyzetek
+ Egyszerű jegyzetekJegyzetek
- Köszönjük, hogy az Egyszerű Jegyzetfüzetet használod.\nTovábbi egyszerű alkalmazásokért látogass a SimpleMobileTools.com-ra.
- Nem létező szöveget nem lehet megosztani
- Egyszerű Jegyzet
+ Köszönjük, hogy az Egyszerű jegyzetek alkalmazást használja.
+\nTovábbi egyszerű alkalmazásokért keresse fel a SimpleMobileTools.com weboldalt.
+ Üres szöveget nem lehet megosztani
+ Egyszerű jegyzetÚj jegyzet hozzáadása
- Nevezd el a jegyzetet
- Ilyen nevű jegyzet már van
+ Adjon nevet a jegyzetnek
+ Már van ilyen nevű jegyzetJegyzet megnyitásaJegyzet törlése
- Biztosan törlöd a \"%s\" jegyzetet?
+ Valóban törli a(z) „%s” jegyzetet\?JegyzetválasztásJegyzet átnevezéseAlapértelmezett jegyzet
- Create a new note
- Add to note
- You have some unsaved changes. What do you want to do with them?
- Note shown in the widget:
- New note type:
- Text note
-
+ Új jegyzet létrehozása
+ Hozzáadás a jegyzethez
+ Mentetlen változtatásai vannak. Mit tesz velük\?
+ A modulban megjelenített jegyzet:
+ Jegyzet címének megjelenítése
+ Új jegyzettípus:
+ Szöveges jegyzet
+ Jegyzet zárolása
+ Jegyzet feloldása
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ A jegyzet tartalma zárolva van.
+ Tartalom megjelenítése
+ FIGYELMEZTETÉS: Ha elfelejti a jegyzetek jelszavát, akkor többé nem fogja tudni helyreállítani vagy elérni a jegyzetek tartalmát.
+ Új szöveges jegyzet
+ Új ellenőrzőlista
+ The app cannot load files over the internetFájl megnyitása
- Exportálás fájlba
- A fájl túl nagy, legfeljebb 1MB lehet
- Csak a fájl tartalmának importálása\n(a fájl változásai nem látszanak a jegyzetben)
- A jegyzetbe íráskor a fájlba is írás\n(a jegyzet törlődik ha a fájl törlődik, vagy változik az elérési útvonala)
- \"%s\" fájl is törlődjön
- \"%s\" nevű jegyzet elmentve
- Note \"%s\" exported successfully
- Only export the current file content\n(changing the note will not affect the file)
-
+ Exportálás fájlként
+ A fájl túl nagy, legfeljebb 1 MB-os lehet
+ Csak a fájl tartalmának importálása
+\n(a fájl változásai nem változtatnak a jegyzeten)
+ A fájl frissítése a jegyzet frissítésekor
+\n(a jegyzet törlődik, ha a fájl törlődik, vagy változik az elérési útvonala)
+ A(z) „%s” fájl is törlődjön
+ A(z) „%s” jegyzet sikeresen mentve
+ A(z) „%s” jegyzet sikeresen exportálva
+ Csak a jelenlegi fájltartalom exportálása
+\n(a jegyzet módosítása nem változtat a fájlon)
- Sikeres mentés üzenetek megjelenítése
- Hivatkozások és e-mail címek felismerése
- Place cursor to the end of note
- Use monospaced font
- Show keyboard on startup
- Show word count
- Igazítottság
- Bal
- Közép
- Jobb
- Widgetben használt jegyzet
- Show a note picker on startup
- Autosave notes
- Enable line wrap
- Use Incognito mode of keyboards
- Move undone checklist items at the top
-
+ Sikeres mentési üzenetek megjelenítése
+ Hivatkozások és e-mail-címek kattinthatóvá tétele
+ Kurzor a jegyzet végére helyezése
+ Fix szélességű betűkészlet használata
+ Billentyűzet megjelenítése indításkor
+ Szószám megjelenítése
+ Karakterszám megjelenítése
+ Igazítás
+ Balra
+ Középre
+ Jobbra
+ Modulban használt jegyzet
+ Jegyzetválasztó megjelenítése indításkor
+ Jegyzetek automatikus mentése
+ Sortörés engedélyezése
+ A billentyűzetek inkognitó módjának használata
+ Kész ellenőrzőlista-elemek alulra helyezése
+ Új ellenőrzőlista-elemek felülre helyezése
- Checklist
- Add a new checklist item
- Add new checklist items
- The checklist is empty
-
+ Ellenőrzőlista
+ Ellenőrzőlisták
+ Új ellenőrzőlista-elem hozzáadása
+ Új ellenőrzőlista-elemek hozzáadása
+ Az ellenőrzőlista üres
+ Kész elemek eltávolítása
+ Add to the top
- Export all notes as files
- Import multiple files as notes
- Import folder
-
+ Mappa importálása
+ Jegyzetek exportálása
+ Jegyzetek importálása
+ Jegyzetek importálása (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Gyorsan le kell jegyezned valami tennivalót, egy címet, vagy egy ötletet egy új startup-ra? Akkor ez a Neked való alkalmazás! Semmi bonyonyolult beállítást nem igényel, csak írd le, ami eszedbe jut. Automatikusan ment, hogy biztosan ne felejtsd el a leírtakat elmenteni. Több, egymástól független jegyzetet is kezelhetsz.
-
- Láthatod és gyorsan elérheted a jegyzetedet egy személyre szabható és átméretezhető widget-tel, ami megnyomásra megnyitja az alkalmazást.
-
- Nem mutat reklámokat, és nem igényel hozzáféréseket. Teljesen nyílt forráskódú, és sötét téma is beállítható.
-
- Ez az alkalmazás egy nagyobb alkalmazás-sorozat része. A továbbiak itt találhatók: https://www.simplemobiletools.com
-
-
+ Hogyan módosíthatom a modulok színét\?
+ Ha csak 1 aktív modulja van, akkor vagy újra létrehozhatja, vagy használja az alkalmazásbeállításokban lévő gombot, hogy testreszabja. Ha több modulja van, akkor az alkalmazásbeállításokban nem lesz elérhető a gomb. Mivel az alkalmazás támogatja szín modulonkénti testreszabását, azért a módosítandó modult újra létre kell hoznia.
- Buka berkas
- Ekspor sebagai berkas
- Ukuran berkas terlalu besar, batasnya adalah 1MB
- Hanya impor konten berkas\n(mengubah berkasnya tidak akan berdampak pada catatan)
- Perbarui berkas saat memperbarui catatan\n(catatan akan dihapus jika berkas dihapus, atau jalur berkas berubah)
- Hapus juga berkas \"%s\"
- Catatan \"%s\" berhasil disimpan
- Catatan \"%s\" berhasil diekspor
- Hanya ekspor konten berkas ini\n(mengubah catatan tidak akan berdampak pada berkas)
-
-
- Tampilkan pesan jika berhasil disimpan
- Buat tautan dan email bisa diklik
- Taruh kursor di akhir catatan
- Gunakan fon monospace
- Tampilkan papan ketik saat memulai
- Tampilkan penghitung huruf
- Kesejajaran
- Kiri
- Tengah
- Kanan
- Catatan yang ditampilkan di widget
- Tampilkan pemilih catatan saat memulai
- Otomatis simpan catatan
- Aktifkan baris berlibat
- Gunakan mode papan ketik incognito
- Pindah checklist yang belum selesai ke urutan atas
-
-
- Checklist
- Tambah item checklist baru
- Tambah item checklist baru
- Checklist kosong
-
-
- Ekspor semua catatan ke berkas
- Impor beberapa berkas ke catatan
- Impor folder
-
-
- Bagaimana caranya mengubah warna widget?
- Jika anda hanya memiliki 1 widget aktif, anda bisa menambahkan ulang, atau gunakan tombol di dalam pengaturan aplikasi untuk mengubahnya. Jika anda memiliki banyak widget aktif, tombol di dalam pengaturan aplikasi tidak akan tersedia. Karena aplikasi mendukung penyesuaian warna per-widget, anda harus menghapus dan menambahkan ulang widget yang ingin anda ubah warnanya.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- Aplikasi catatan yang indah tanpa iklan atau perizinan yang tidak perlu.
-
- Ingin membuat catatan daftar belanjaan, alamat tempat, atau ide-ide bisnis dengan cepat? Maka ini adalah aplikasi yang paling tepat untuk anda! Tidak perlu menyiapkan hal-hal yang rumit, cukup ketik apa yang anda inginkan. Dengan fitur simpan otomatis, anda tidak perlu khawatir kehilangan catatan karena sesuatu yang tidak diduga. Juga mendukung membuat beberapa catatan independen.
-
- Anda bisa mengakses catatan dengan cepat menggunakan widget, dan membuka aplikasi catatan saat anda mengklik widget tersebut.
-
- Sama sekali tidak berisi iklan dan tidak membutuhkan perizinan yang tidak perlu. Sepenuhnya bersumber terbuka, dengan warna yang bisa disesuaikan.
-
- Aplikasi ini hanya salah satu bagian dari rangkaian aplikasi yang lebih besar. Anda bisa menemukan yang lainnya di https://www.simplemobiletools.com
-
-
-
-
diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml
index a08579241..8af04184d 100644
--- a/app/src/main/res/values-in/strings.xml
+++ b/app/src/main/res/values-in/strings.xml
@@ -1,7 +1,9 @@
+
Simple NotesCatatan
- Terima kasih sudah menggunakan Simple Notes.\nUntuk aplikasi lainnya silakan kunjungi SimpleMobileTools.com.
+ Terima kasih sudah menggunakan Simple Notes.
+\nUntuk aplikasi lainnya silakan kunjungi SimpleMobileTools.com.Tidak bisa membagikan teks kosongCatatanTambah catatan baru
@@ -9,28 +11,40 @@
Catatan dengan nama sama sudah adaBuka catatanHapus catatan
- Apakah anda yakin ingin menghapus catatan \"%s\"?
+ Apakah Anda yakin ingin menghapus catatan \"%s\"\?Pilih catatanUbah nama catatanCatatan umumBuat catatan baruTambahkan ke catatan
- Anda memiliki perubahan yang belum disimpan. Apa yang ingin anda lakukan?
+ Anda memiliki perubahan yang belum disimpan. Apa yang ingin anda lakukan\?Catatan yang ditampilkan di widget:
+ Tampilkan judul catatanTipe catatan baru:Catatan teks
-
+ Lock note
+ Buka kunci kota
+ Buka kunci catatan
+ Catatan ini terkunci. Kamu dapat membukanya satu per satu atau mengabaikannya.
+ Konten catatan terkunci.
+ Tampilkan konten
+ PERINGATAN: Jika Anda lupa kata sandi catatan, Anda tidak akan dapat memulihkan atau mengakses konten catatan.
+ Catatan teks baru
+ Daftar periksa baru
+ Aplikasi tidak dapat membuka berkas dari internetBuka berkasEkspor sebagai berkas
- Ukuran berkas terlalu besar, batasnya adalah 1MB
- Hanya impor konten berkas\n(mengubah berkasnya tidak akan berdampak pada catatan)
- Perbarui berkas saat memperbarui catatan\n(catatan akan dihapus jika berkas dihapus, atau jalur berkas berubah)
+ Berkas terlalu besar, batasnya adalah 1MB
+ Hanya impor konten berkas
+\n(mengubah berkasnya tidak akan berdampak pada catatan)
+ Perbarui berkas saat memperbarui catatan
+\n(catatan akan dihapus jika berkas dihapus, atau jalur berkas berubah)Hapus juga berkas \"%s\"Catatan \"%s\" berhasil disimpanCatatan \"%s\" berhasil diekspor
- Hanya ekspor konten berkas ini\n(mengubah catatan tidak akan berdampak pada berkas)
-
+ Hanya ekspor konten berkas ini
+\n(mengubah catatan tidak akan berdampak pada berkas)Tampilkan pesan jika berhasil disimpanBuat tautan dan email bisa diklik
@@ -38,6 +52,7 @@
Gunakan fon monospaceTampilkan papan ketik saat memulaiTampilkan penghitung huruf
+ Tampilkan jumlah karakterKesejajaranKiriTengah
@@ -47,40 +62,26 @@
Otomatis simpan catatanAktifkan baris berlibatGunakan mode papan ketik incognito
- Pindah checklist yang belum selesai ke urutan atas
-
+ Pindah checklist yang belum selesai ke urutan atas
+ Tambahkan item daftar periksa baru pada atas
- Checklist
+ Daftar periksa
+ Daftar periksaTambah item checklist baruTambah item checklist baruChecklist kosong
-
+ Hapus item yang sudah
+ Add to the top
- Ekspor semua catatan ke berkas
- Impor beberapa berkas ke catatanImpor folder
-
+ Ekspor nota
+ Import notes
+ Impor catatan (Pro)
- Bagaimana caranya mengubah warna widget?
+ Bagaimana cara mengubah warna widget\?Jika anda hanya memiliki 1 widget aktif, anda bisa menambahkan ulang, atau gunakan tombol di dalam pengaturan aplikasi untuk mengubahnya. Jika anda memiliki banyak widget aktif, tombol di dalam pengaturan aplikasi tidak akan tersedia. Karena aplikasi mendukung penyesuaian warna per-widget, anda harus menghapus dan menambahkan ulang widget yang ingin anda ubah warnanya.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- Aplikasi catatan yang indah tanpa iklan atau perizinan yang tidak perlu.
-
- Ingin membuat catatan daftar belanjaan, alamat tempat, atau ide-ide bisnis dengan cepat? Maka ini adalah aplikasi yang paling tepat untuk anda! Tidak perlu menyiapkan hal-hal yang rumit, cukup ketik apa yang anda inginkan. Dengan fitur simpan otomatis, anda tidak perlu khawatir kehilangan catatan karena sesuatu yang tidak diduga. Juga mendukung membuat beberapa catatan independen.
-
- Anda bisa mengakses catatan dengan cepat menggunakan widget, dan membuka aplikasi catatan saat anda mengklik widget tersebut.
-
- Sama sekali tidak berisi iklan dan tidak membutuhkan perizinan yang tidak perlu. Sepenuhnya bersumber terbuka, dengan warna yang bisa disesuaikan.
-
- Aplikasi ini hanya salah satu bagian dari rangkaian aplikasi yang lebih besar. Anda bisa menemukan yang lainnya di https://www.simplemobiletools.com
-
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index c544d8df6..3f42da3d9 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -1,7 +1,9 @@
+
- Semplice Note
+ Note SempliciNote
- Grazie per avere scelto Semplice Note.\nPer altre semplici app visita SimpleMobileTools.com.
+ Grazie per avere scelto Semplice Note.
+\nPer altre semplici app visita SimpleMobileTools.com.Impossibile condividere un testo vuotoNota sempliceAggiungi una nuova nota
@@ -9,78 +11,77 @@
Una nota con lo stesso titolo è già esistenteApri notaElimina nota
- Eliminare davvero la nota \"%s\"?
+ Sei sicuro/a di voler eliminare la nota «%s»\?Scegli una notaRinomina una notaNota generaleCrea una nuova notaAggiunta alla nota
- Ci sono delle modifiche non salvate. Cosa fare?
+ Ci sono delle modifiche non salvate. Cosa fare\?Nota mostrata nel widget:
+ Mostra il titolo della notaNuovo tipo di nota:Nota di testo
-
+ Lock note
+ Sblocca la nota
+ Sblocca note
+ Le seguenti note sono bloccate. È possibile sbloccarle una per una o saltare l\'esportazione.
+ Il contenuto delle note è bloccato.
+ Mostra il contenuto
+ ATTENZIONE: Se dimentichi la password delle note, non sarai più in grado di recuperarla o di accedere al contenuto delle note.
+ Nuova nota di testo
+ Nuova lista di controllo
+ L\'applicazione non riesce a caricare i file su InternetApri fileEsporta come file
- File troppo grande, il limite è di 1MB
- Importa solo il contenuto del file\n(modificare il file non influenzerà la nota)
- Aggiorna il file quando si aggiorna una nota\n(la nota viene eliminata se il file viene eliminato, oppure cambia il percorso)
+ File troppo grande, il limite è 1 MB
+ Importa solo il contenuto del file
+\n(modificare il file non influenzerà la nota)
+ Aggiorna il file quando si aggiorna una nota
+\n(la nota viene eliminata se il file viene eliminato, oppure cambia il percorso)Elimina anche il file \"%s\"
- La nota \"%s\" è stata salvata correttamente
- La nota \"%s\" è stata esportata correttamente
- Esporta solamente il contenuto attuale del file\n(modificando la nota non influenzerà il file)
-
+ Nota «%s» salvata con successo
+ Nota «%s» esportato con successo
+ Esporta solamente il contenuto attuale del file
+\n(modificando la nota non influenzerà il file)Mostra i messaggi di salvataggio riusciti
- Rendi i link e le email cliccabili
- Posiziona il cursose in fondo alla nota
- Una un font monospace
+ Rendi i collegamenti e le e-mail cliccabili
+ Posiziona il cursore alla fine della nota
+ Usa un font monospaceMostra la tastiera all\'avvioMostra il numero delle parole
+ Mostra il conteggio dei caratteriAllineamentoA sinistraCentratoA destraNota usata nel widget
- Mostra un selettore di note all\'avvio
+ Mostra il selettore delle note all\'avvioSalva automaticamente le noteAbilita a capo automaticoUsa la modalità incognito per le tastiere
- Move undone checklist items at the top
-
+ Sposta gli elementi non spuntati in cima
+ Aggiungi nuove voci della lista di controllo in altoScaletta
+ Liste di controlloAggiungi un nuovo elementoAggiungi nuovi elementiLa scaletta è vuota
-
+ Rimuovi gli elementi finiti
+ Add to the top
- Esporta le note come file
- Importa file multipli come noteImporta cartella
-
+ Esporta note
+ Importa note
+ Importa note (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- C\'è bisogno di prendere una nota rapida riguardo qualcosa da acquistare, un indirizzo o un\'idea per una startup? Allora questa è l\'applicazione che si stava cercando! Basta aprire l\'app a scrivere quello che si vuole, non è necessaria nessuna impostazione preliminare. C\'è il comodo salvataggio automatico, così non si butteranno via le modifiche per errore. Supporta la creazione di più note indipendenti.
-
- Si può anche accedere alla nota in modo istantaneo utilizzando il widget personalizzabile e ridimensionabile, che apre l\'applicazione al tocco.
-
- L\'applicazione non contiene pubblicità o permessi non necessari; è completamente opensource e la si può personalizzare con i propri colori preferiti.
-
- Questa è solamente una delle tante applicazioni della serie Simple Mobile Tools. Si possono trovare le altre su https://www.simplemobiletools.com
-
-
+ Come posso cambiare il colore dei widget\?
+ Se hai un solo widget attivo, puoi ricrearlo oppure usare il pulsante nelle impostazioni dell\'app per personalizzaro. Se hai più di un widget, il pulsante nelle impostazioni dell\'app non sarà disponibile. Dato che l\'app supporta la personalizzazione dei colori per ogni widget, dovrai ricreare il widget che vuoi personalizzare.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml
new file mode 100644
index 000000000..007f1d943
--- /dev/null
+++ b/app/src/main/res/values-iw/strings.xml
@@ -0,0 +1,87 @@
+
+
+ הערות פשוטות
+ הערות
+ תודה על השימוש ב-Simple Notes.
+\n לאפליקציות פשוטות נוספות, בקר ב- SimpleMobileTools.com.
+ לא ניתן לשתף טקסט ריק
+ הערה פשוטה
+ הוסף הערה חדשה
+ נא לתת שם להערה שלך
+ הערה עם הכותרת הזו כבר קיימת
+ פתח פתק
+ מחק פתק
+ האם אתה בטוח שברצונך למחוק את הפתק \"%s\"\?
+ בחר פתק
+ שנה שם פתק
+ פתק כללי
+ צור פתק חדש
+ הוסף לפתק
+ יש לך כמה שינויים שלא נשמרו. מה אתה רוצה לעשות איתם\?
+ פתק המוצג בווידג\'ט:
+ הצג את כותרת הפתק
+ סוג פתק חדש:
+ פתק טקסט
+ נעל פתק
+ בטל נעילת פתק
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ תוכן הפתקים נעול.
+ הראה תוכן
+ אזהרה: אם תשכח את הסיסמה של הפתקים, לא תוכל לשחזר אותה או לגשת לתוכן הפתקים יותר.
+ פתק טקסט חדש
+ רשימת בדיקה חדשה
+ The app cannot load files over the internet
+
+ Open file
+ ייצא כקובץ
+ הקובץ גדול מדי, המגבלה היא 1MB
+ ייבא רק את תוכן הקובץ
+\n (שינוי הקובץ לא ישפיע על ההערה)
+ עדכן את הקובץ עצמו בעת עדכון ההערה
+\n (הערה נמחקת אם הקובץ נמחק, או נתיב משתנה)
+ מחק גם את הקובץ \"%s\"
+ הפתק \"%s\" נשמר בהצלחה
+ הפתק \"%s\" יוצא בהצלחה
+ ייצא רק את תוכן הקובץ הנוכחי
+\n (שינוי ההערה לא ישפיע על הקובץ)
+
+ הצג הודעות נשמר בהצלחה
+ הפוך קישורים ומיילים לניתנים ללחיצה
+ מקם את הסמן לסוף הפתק
+ השתמש בגופן מונו-רווח
+ הצג מקלדת בעת ההפעלה
+ הצג ספירת מילים
+ הצג ספירת תווים
+ יישור
+ שמאל
+ מרכז
+ ימין
+ הפתק בשימוש בווידג\'ט
+ הצג בוחר הפתקים בעת ההפעלה
+ שמירה אוטומטית של פתקים
+ אפשר גלישת שורה
+ השתמש במצב גלישה בסתר של מקלדות
+ העבר את פריטי רשימת הבדיקה שבוצעו לתחתית
+ הוסף פריטים חדשים ברשימת הבדיקה בראש
+
+ רשימת תיוג
+ רשימות תיוגים
+ הוסף פריט רשימת תיוג חדש
+ הוסף פריטי רשימת בדיקה חדשים
+ רשימת התיוגים ריקה
+ הסר פריטים שבוצעו
+ Add to the top
+
+ ייבא תקיות
+ ייצא את כל הפתקים
+ ייבא פתקים
+ ייבא פתקים (Pro)
+
+ כיצד אוכל לשנות את צבע הווידג\'טים\?
+ במקרה שיש לך רק ווידג\'ט פעיל אחד, תוכל ליצור אותו מחדש או להשתמש בכפתור בהגדרות האפליקציה כדי להתאים אותו. אם יש לך מספר ווידג\'טים פעילים, הכפתור בהגדרות האפליקציה לא יהיה זמין. מכיוון שהאפליקציה תומכת בהתאמה אישית של צבע לכל ווידג\'ט, תצטרך ליצור מחדש את הווידג\'ט שברצונך להתאים אישית.
+
+
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index 9f214d16e..9bf4ec629 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -1,7 +1,9 @@
-
- Simple Notes
+
+
+ Simpleメモメモ
- シンプルメモのご利用ありがとうございます。\n他のシンプルアプリは SimpleMobileTools.com をご覧ください。
+ シンプルメモのご利用ありがとうございます。
+\n他のシンプルアプリは SimpleMobileTools.com をご覧ください。空のテキストは共有できませんシンプル メモ新しいメモを追加
@@ -9,7 +11,7 @@
そのタイトルのメモはすでに存在しますメモを開くメモを削除
- メモ \"%s\" を削除してもよろしいですか?
+ メモ \"%s\" を削除してもよろしいですか?メモを選択メモの名前を変更全般メモ
@@ -17,20 +19,32 @@
メモに追加未保存の変更があります。どのように対応しますか?ウィジェットに表示中のメモ:
+ メモのタイトルを表示新しいメモの種類:テキストメモ
-
+ メモをロック
+ メモのロックを解除
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ メモの内容がロックされています。
+ 内容を表示
+ 警告:メモのパスワードを忘れた場合、そのパスワードを復元したり、メモの内容にアクセスしたりすることはできなくなります。
+ 新しいテキストメモ
+ 新しいチェックリスト
+ The app cannot load files over the internetファイルを開くファイルとしてエクスポートファイルが大きすぎます (最大:1MBまで)
- ファイルの内容のみインポートする\n(メモを編集してもファイルには影響しません)
- メモを更新するとき、ファイル自体も更新する\n(ファイルが削除、またはパスが変更された場合、メモも削除されます)
+ ファイルの内容のみインポートする
+\n(メモを編集してもファイルには影響しません)
+ メモを更新するとき、ファイル自体も更新する
+\n(ファイルが削除、またはパスが変更された場合、メモも削除されます)ファイル \"%s\" も削除するメモ \"%s\" は正常に保存されましたメモ \"%s\" は正常にエクスポートされました
- 現在のファイルの内容のみエクスポートする\n(メモを編集してもファイルには影響しません)
-
+ 現在のファイルの内容のみエクスポートする
+\n(メモを編集してもファイルには影響しません)正常保存時にメッセージを表示するURLとメールアドレスのリンクを有効にする
@@ -38,6 +52,7 @@
等幅フォントを使用する起動時にキーボードを表示する単語数を表示する
+ 文字カウントを表示配置左中央
@@ -47,38 +62,24 @@
メモを自動保存する行の折り返しを有効にするキーボードのシークレットモードを使用する
- Move undone checklist items at the top
-
+ チェックリストの未完了リストを上に移動
+ 新しいチェックリスト項目を上部に追加チェックリスト
+ チェックリスト新しいチェックリスト項目を追加新しいチェックリスト項目を追加チェックリストが空です
-
+ 完了した項目を削除
+ 上部に追加
- すべてのメモをファイルとしてエクスポート
- 複数のファイルをメモとしてインポートフォルダからインポート
-
+ メモをすべてエクスポート
+ メモをインポート
+ メモをインポート (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- 何か買うもの、住所、またはスタートアップのアイデアをすばやくメモする必要がありますか? それなら、これがあなたが探していたアプリです! 複雑なセットアップ手順は必要ありません。 思いついたものを入力するだけです。 自動保存機能が付いているので、誤って変更内容を破棄することはありません。 複数の独立したメモの作成をサポートしています。
-
- カスタマイズ可能でサイズ変更可能なウィジェットを使用すると、すぐにノートにアクセスできます。クリックするとアプリが開きます。
-
- 広告や不要なアクセス許可は含まれていません。 完全にオープンソースで、ダークテーマも提供しています。
-
- このアプリは、大きな一連のアプリの一つです。 他のアプリは https://www.simplemobiletools.com で見つけることができます
-
-
+ ウィジェットの色はどうやって変更出来ますか?
+ アクティブなウィジェットが一つしかない場合、ウィジェットを再作成するか、アプリ設定内のボタンを押してカスタマイズ出来ます。アクティブなウィジェットが複数ある場合、アプリ設定内のボタンは使用出来ません。アプリはウィジェットごとの色のカスタマイズをサポートしているので、カスタマイズしたいウィジェットは再作成する必要があります。
- Atverti failą
+ Atverti byląKurti kopijąFailas per didelis, didžiausias leistinas dydis yra 1MB
- Įkelti tik įrašo turinį\n(Įrašant įrašą jis nebus redaguojamas)
- Atnaujinti failą kai atnaujinamas įrašas\n(Įrašas ištrinamas, jei ištrinamas failas ar pakeičiama įrašymo vieta)
+ Įkelti tik įrašo turinį
+\n(Įrašant įrašą jis nebus redaguojamas)
+ Atnaujinti failą kai atnaujinamas įrašas
+\n(Įrašas ištrinamas, jei ištrinamas failas ar pakeičiama įrašymo vieta)Taip pat ištrinti failą \"%s\"Įrašas \"%s\" sėkmingai išsaugotas
- Sėkmingai sukurta įrašo \"%s\ kopija"
- Only export the current file content\n(changing the note will not affect the file)
-
+ Pastaba \"%s sėkmingai eksportuota
+ Only export the current file content
+\n(changing the note will not affect the file)Rodyti sėkmingo išsaugojimo pranešimusVeiksnios nuorodos ir elektroninio pašto adresai
@@ -38,47 +52,34 @@
Pakeisti šrifto stiliųRodyti klaviatūrą paleidžiantRodyti žodžių skaičių
+ Show character countĮtraukaKairėjeCentreDešinėje
- Įraðas panaudotas šaukinyje
+ Įrašas panaudotas šaukinyjeRodyti užrašų parinkiklį pajungus programėlęAutomatiškai išsaugoti užrašusnaudoti eilutės perkėlimąUse Incognito mode of keyboards
- Move undone checklist items at the top
-
+ Move done checklist items to the bottom
+ Add new checklist items at the top
- Checklist
- Add a new checklist item
- Add new checklist items
- The checklist is empty
-
+ Kontrolinis sąrašas
+ Checklists
+ Pridėti naują kontrolinio sąrašo objektą
+ Pridėti naujus kontrolinio sąrašo objektus
+ Kontrolinis sąršas tuščias
+ Remove done items
+ Add to the top
- Eksportuoti visus užrašus kaip bylas
- Importuoti keletą bylų, kaip užrašus
- Import folder
-
+ Importuoti aplanką
+ Export notes
+ Import notes
+ Import notes (Pro)
- How can I change the widgets color?
+ Kaip pakeisti valdiklių spalvą\?In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Norite greitai pažymėti mintį, pirkinių sąrąšą, adresą ar verslo pradžios idėją? Ši programa būtent tai, ko ieškote! Nėra sudėtingų nustatymų, rašykite ką norite. Įrašų automatinis išsaugojimas užtikrina, jog neprarasite jų per klaidą. Galimas kelių nesusijusių įrašų kūrimas.
-
- Bet kada galite pasiekti įrašą naudojant šaukinį, kuris išsyk atveria programą.
-
- Neturi reklamų ar nereikalingų leidimų. Programėlė visiškai atviro kodo, yra galimybė keisti spalvas.
-
- Ši programėle yra viena iš keletos mūsų programėlių. Likusias Jūs galite rasti čia https://www.simplemobiletools.com
-
-
+ Open file
+ Export as file
+ File too large, the limit is 1MB
+ Only import the file content
+\n(changing the file will not affect the note)
+ Update the file itself at updating the note
+\n(note gets deleted if file gets deleted, or path changes)
+ Also delete file \"%s\"
+ Note \"%s\" saved successfully
+ Note \"%s\" exported successfully
+ Only export the current file content
+\n(changing the note will not affect the file)
+
+ Display save success messages
+ Make links and emails clickable
+ Place cursor to the end of note
+ Use monospaced font
+ Show keyboard on startup
+ Show word count
+ Show character count
+ Alignment
+ Left
+ Center
+ Right
+ Note used in widget
+ Show a note picker on startup
+ Autosave notes
+ Enable line wrap
+ Use Incognito mode of keyboards
+ Move done checklist items to the bottom
+ Add new checklist items at the top
+
+ Checklist
+ Checklists
+ Add a new checklist item
+ Add new checklist items
+ The checklist is empty
+ Remove done items
+ Add to the top
+
+ Import folder
+ Export notes
+ Import notes
+ Import notes (Pro)
+
+ How can I change the widgets color\?
+ In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
+
+
diff --git a/app/src/main/res/values-my/strings.xml b/app/src/main/res/values-my/strings.xml
new file mode 100644
index 000000000..2875f2555
--- /dev/null
+++ b/app/src/main/res/values-my/strings.xml
@@ -0,0 +1,89 @@
+
+
+ ရိုးရှင်း မှတ်စု
+ မှတ်စုများ
+ ရိုးရှင်း မှတ်စုများကိုအသုံးပြုတဲ့အတွက်ကျေးဇူးတင်ပါတယ်။\nအခြားသော ရိုးရှင်း အက်ပ်များအတွက် SimpleMobileTools.com
+ မှတ်စုအလွတ်ကို မမျှဝေနိုင်ပါ
+ ရိုးရှင်း မှတ်စု
+ မှတ်စုအသစ်
+ ကျေးဇူးပြု၍မှတ်စုအသစ်ခေါင်းစဥ် ပေးပါ
+ ပေးထားသောခေါင်းစဥ်ဖြင့် မှတ်စုတစ်ခုရှိပြီးသား
+ မှတ်စုကိုဖွင့်
+ မှတ်စုကိုဖျက်
+ ဒီမှတ်စုကိုဖျက်ရန်ကျိန်းသေပြီလား။ \"%s\"?
+ မှတ်စုတစ်ခုကိုရွေး
+ မှတ်စုကို ခေါင်းစဥ်ပြောင်း
+ အထွေထွေ မှတ်စု
+ မှတ်စုအသစ်တစ်ခု ဖန်တီးမည်
+ မှတ်စုထဲသို့ ထည့်ပါ
+ သင်မသိမ်းဆည်းရသေးသော ပြောင်းလဲမှုအချို့ ကိုဘာလုပ် ချင်ပါသလဲ
+ ဝစ်ဂျစ်တ်တွင် ပြသော မှတ်စု
+ မှတ်စုခေါင်းစဥ်ကို ပြပါ
+ မှတ်စု ပုံစံအသစ်
+ စာသားမှတ်စု
+ မှတ်စုကိုလော့ခ် ခတ်
+ မှတ်စုကို လော့ခ်ဖြည်
+ မှတ်စုများကို လော့ခ်ဖြည်
+ ဖော်ပြပါ မှတ်စုများသည် လော့ခ်ခတ်ထားသည်။သင်တစ်ခုချင်းစီ လော့ခ်ဖြည်တာ ဒါမှမဟုတ် ယင်းမှတ်စုများကို ကျော်သွားနိုင်ပါတယ်။
+ မှတ်စု\' ပါအကြောင်းအရာများလော့ခ်ခတ်ထားသည်
+ အကြောင်းအရာကိုပြပါ
+ သတိပေးခြင်း အကယ်၍သင် မှတ်စု\'စကားဝှက်များကိုမေ့သွားပါက သင့်မှတ်စုပါ အကြောင်းအရာများကိုပြန်မယူနိုင်ပါ
+ စာသားမှတ်စုအသစ်
+ အမှတ်ခြစ်စာရင်း အသစ်
+ အက်ပ်သည် အင်တာနက်ပေါ်ရှိဖိုင်မျာကို မရယူနိုင်ပါ
+
+
+ ဖိုင်
+ဖွင့်
+ ဖိုင်အဖြစ်ထုတ်မည်
+ ဖိုင်ဆိုဒ်ကြီးလွန်းသည်။၁ အမ်ဘီ အထိသာကန့်သတ်ထားသည်။
+ ဖိုင်ကိုသာ သွင်းပါ\n(ဖိုင်ပြောင်းလဲခြင်းသည် မှတ်စုများကိုသက်ရောက်မည်မဟုတ်ပါ)
+ မှတ်စုကို ပြောင်းလဲခြင်းဖြင့် ဖိုင်လည်းပြောင်းလဲပါမည်\n(ဖိုင်လမ်းကြောင်းပြောင်းသွားသောအခါ ဒါမှမဟုတ် ဖိုင်ဖျက်သောအခါ မှတ်စုများလည်းပျက်သွားပါမည်)
+ Also delete file \"%s\"
+ မှတ်စုကို \"%s\" အောင်မြင်စွာသိမ်းဆည်းပြီး
+ မှတ်စုကို \"%s\" အောင်မြင်စွာထုတ်ပြီး
+ လက်ရှိဖိုင်ပါအကြောင်းအရာကိုသာ ထုတ်ပါ\n(မှတ်စုကိုပြောင်းလဲခြင်းသည်ဖိုင်ကိုမသက်ရောက်နိုင်ပါ)
+
+
+ အောင်မြင်စွာ သိမ်းဆည်းပြီးကြောင်း ကိုပြပါ
+ လင့်များ နှင့် အီးမေးလ်း များကိုနှိပ်နိုင်အောင်လုပ်ပါ
+ စာရိုက်မှတ်ကို မှတ်စုအဆုံးတွင်နေရာချပါ
+ ကွဲပြားသောဖောင့် သုံးပါ
+ အက်ပ်စဖွင့်သောအခါကီးဘုတ်ကိုပြပါ
+ စကားလုံး အရေအတွက်ကိုပြပါ
+ စာလုံး အရေအတွက်ကိုပြပါ
+ နေရာချ
+ ဘယ်
+ အလယ်
+ ညာ
+ ဝစ်ဂျစ်တ်တွင်ပြထားသောမှတ်စု
+ အက်ပ်စဖွင့်သောအခါ မှတ်စုရွေးရန်ပြပါ
+ မှတ်စုများ အလိုအလျောက်သိမ်းဆည်းခြင်း
+ Enable line wrap
+ လုံခြုံသော ကီးဘုတ်လုပ်ဆောင်ချက်ကိုသုံးမည်
+ အမှန်ခြစ်ပြီးသောစာရင်းများကိုအောက်သို့ရွှေ့ပါ
+ အမှန်ခြစ် စာရင်းအသစ်များကို အပေါ်မှာ ထည့်ပါ
+
+
+ အမှန်ခြစ် စာရင်း
+ အမှန်ခြစ် စာရင်းများ
+ အမှန်ခြစ် စာရင်းအသစ်
+ အမှတ်ခြစ် စာရင်းအသစ်များ
+ အမှန်ခြစ် စာရင်း မှာဘာမှမရှိပါ
+ ပြီးသွားသောအရာများကို ဖယ်ရှားပါ
+ အပေါ်ဆုံးကို ပို့ပါ
+
+
+ ဖိုဒါကို သွင်းမည်
+ မှတ်စုများကိုထုတ်မည်
+ မှတ်စုများကို သွင်းမည်
+ မှတ်စုများကို သွင်းမည်(ပရိုဗားရှင်း)
+
+
+ ဝစ်ဂျစ်တ်အရောင်ဘယ်လို ချိန်းနိုင်မလဲ
+ သင့်မှာ ဝစ်ဂျစ်တ်တစ်ခုတည်းသာ ဖန်တီးထားလျှင် အသစ်ပြန်ဖန်တီးတာဖြစ်စေ အက်ပ်ဆက်တင်ထဲကနေဖြစ်စေ ပြောင်းလဲနိုင်ပါတယ်။သင်မှာဝစ်ဂျစ်တ် အများအပြားရှိရင်တော့ အက်ပ်ဆက်တင်ထဲ ကနေပြောင်းလဲလို့မရနိုင်ပါ။သင်ပြောင်းလဲလိုတဲ့ ဝစ်ဂျစ်တ်တစ်ခုချင်းစီကို ပြန်ဖန်တီးဖို့လိုပါတယ်။
+
+
diff --git a/app/src/main/res/values-nb-rNO/strings.xml b/app/src/main/res/values-nb-rNO/strings.xml
new file mode 100644
index 000000000..64602be2c
--- /dev/null
+++ b/app/src/main/res/values-nb-rNO/strings.xml
@@ -0,0 +1,87 @@
+
+
+ Enkle notater
+ Notater
+ Takk for at du bruker Enkle notater
+\nFlere enkle programmer er å finne på SimpleMobileTools.com
+ Kan ikke dele tom tekst
+ Enkelt notat
+ Legg til nytt notat
+ Gi ditt notat et navn
+ Et notat med det navnet finnes allerede
+ Åpne notat
+ Slett notat
+ Er du sikker på at du vil slette notatet \"%s\"\?
+ Velg et notat
+ Gi notatet nytt navn
+ Generelt notat
+ Opprett et nytt notat
+ Legg til i notat
+ Du har ulagrede endringer. Hva vil du gjøre med dem\?
+ Notat vist i miniprogrammet:
+ Vis notattittel
+ Ny notattype:
+ Tekstnotat
+ Lås notat
+ Lås opp notat
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ Notatinnholdet er låst.
+ Vis innhold
+ ADVARSEL: Hvis du glemmer passordet til notatene, kan du ikke gjenopprette det eller få tilgang til notatenes innhold lenger.
+ Ny tekstnotat
+ Ny sjekkliste
+ The app cannot load files over the internet
+
+ Åpne fil
+ Eksporter som fil
+ Filen er er større enn grensen på 1 MB
+ Kun importer filinnholdet
+\n(endringen av filen vil ikke ha innvirkning på notatet)
+ Oppdatere selve filen ved oppdatering av notatet
+\n(notatet slettes hvis filen slettes, eller banen endres)
+ Slett også fil \"%s\"
+ Notatet \"%s\" er lagret
+ Notat «%s»-eksporteres
+ Eksporter bare gjeldende filinnhold
+\n(hvis du endrer notatet, påvirkes ikke filen)
+
+ Vis meldinger om vellykket lagring
+ Gjør lenker og e-poster klikkbare
+ Plasser pekeren på slutten av notatet
+ Bruk fastbreddeskrift
+ Vis tastatur ved programstart
+ Vis antall ord
+ Vis antall tegn
+ Justering
+ Venstre
+ Sentrert
+ Høyre
+ Notat brukt i miniprogram
+ Vis en notatvelger ved programstart
+ Lagre notater automatisk
+ Skru på linjebryting
+ Bruke inkognitomodus på tastaturer
+ Flytt utførte sjekklisteelementer til bunnen
+ Legg til nye sjekklisteelementer på toppen
+
+ Sjekkliste
+ Sjekklister
+ Legg til nytt sjekklisteelement
+ Legg til nye sjekklisteelementer
+ Sjekklisten er tom
+ Fjern utførte elementer
+ Add to the top
+
+ Importer mappe
+ Eksportere alle notater
+ Importere notater
+ Importere notater (Pro)
+
+ Hvordan endrer jeg widgetfargen\?
+ Hvis du bare har ett aktivt kontrollprogram, kan du enten opprette det på nytt eller bruke knappen i appinnstillingene for å tilpasse den. Hvis du har flere aktive kontrollprogrammer, vil ikke knappen i appinnstillingene være tilgjengelig. Siden appen støtter fargetilpasning per kontrollprogram, må du opprette kontrollprogrammet du vil tilpasse, på nytt.
+
+
diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml
index 0c9c87af5..4a84484e4 100644
--- a/app/src/main/res/values-nl/strings.xml
+++ b/app/src/main/res/values-nl/strings.xml
@@ -1,7 +1,8 @@
+
Eenvoudige NotitiesNotities
- Kijk op SimpleMobileTools.com voor meer eenvoudige apps.
+ Kijk op SimpleMobileTools.com voor meer eenvoudig te gebruiken apps.Kan geen lege notitie delenEenvoudige NotitieNieuwe notitie
@@ -9,78 +10,77 @@
Notitie met deze naam bestaat reedsNotitie openenNotitie verwijderen
- De notitie \"%s\" verwijderen?
+ De notitie \"%s\" verwijderen\?Kies een notitieNaam wijzigenAlgemeenNieuwe notitie makenAan notitie toevoegenWijzigingen zijn nog niet opgeslagen
- Notitie in widget weergeven:
+ Notitie in widget tonen:
+ Titel van notitie tonenType notitie:Tekst
-
+ Notitie vergrendelen
+ Notitie ontgrendelen
+ Notities ontgrendelen
+ De volgende notities zijn vergrendeld. Ontgrendel ze een voor een of sla het exporteren van deze notities over.
+ De inhoud van deze notitie is vergrendeld.
+ Inhoud weergeven
+ WAARSCHUWING: Zonder het wachtwoord kan de inhoud van de notitie niet meer worden hersteld.
+ Nieuwe notitie
+ Nieuwe lijst
+ Deze app kan geen bestanden laden via het internetBestand openenAls bestand exporterenBestand is te groot: limiet is 1MB
- Alleen de bestandsinhoud importeren\n(wijzigingen aan het bestand zullen de notitie niet beïnvloeden)
- Bestand aanpassen bij wijzigingen in de notitie\n(de notitie wordt gewist als het bestand wordt verplaatst of verwijderd)
+ Alleen de bestandsinhoud importeren
+\n(wijzigingen aan het bestand zullen de notitie niet beïnvloeden)
+ Bestand aanpassen bij wijzigingen in de notitie
+\n(de notitie wordt gewist als het bestand wordt verplaatst of verwijderd)Bestand \"%s\" ook verwijderenNotitie \"%s\" opgeslagenNotitie \"%s\" geëxporteerd
- Alleen de huidige bestandsinhoud exporteren\n(wijzigingen in de notitie zullen niet in het bestand doorgevoerd worden)
-
+ Alleen de huidige bestandsinhoud exporteren
+\n(wijzigingen in de notitie zullen niet in het bestand doorgevoerd worden)
- Bevestigingen weergeven
+ Bevestigingen tonenLinks en e-mailadressen aanklikbaar maken
- Cursor onderaan notitie plaatsen
+ Cursor aan het einde van de notitie plaatsenLettertype met vaste breedte gebruikenToetsenbord bij start tonen
- Aantal woorden weergeven
+ Het aantal woorden tellen
+ Teller voor het aantal tekens tonenUitlijningLinksMiddenRechtsNotitie in widget
- Bij opstarten een keuzescherm met notities weergeven
+ Bij opstarten een keuzescherm met notities tonenNotities automatisch opslaanAutomatische terugloop inschakelenIncognito-modus van toetsenbord gebruiken
- Afgewerkte items naar onderen verplaatsen
-
+ Afgewerkte items naar onderen verplaatsen
+ Nieuwe items boven aan de lijst toevoegen
- Checklist
+ Lijst
+ LijstenItem toevoegenItems toevoegenDe lijst is leeg
-
+ Afgeronde items wissen
+ Bovenaan toevoegen
- Alle notities naar bestanden exporteren
- Bestanden als notitites importerenMap importeren
-
+ Notities exporteren
+ Notities importeren
+ Notities importeren (Pro)
- Hoe verander ik de kleuren van de widgets?
+ Hoe verander ik de kleuren van de widgets\?Gebruik de optie in de instellingen van de app om de kleuren aan te passen, of maak de widget opnieuw aan. Indien er meerdere widgets van deze app actief zijn, zal deze optie niet beschikbaar zijn. De kleuren zijn dan alleen aan te passen door de widget opnieuw aan te maken.
-
-
-
- Eenvoudige Notities Pro - Maak snel handige memo\'s
-
- Een prachtig notitieblok zonder advertenties en onnodige permissies.
-
- Maak snel een notitie van bijvoorbeeld een aankoop, adres of idee. Geen gecompliceerde instellingen, gewoon typen. Notities worden automatisch opgeslagen, dus wijzigingen gaan niet per ongeluk verloren. Ondersteunt het aanmaken van meerdere notities die als verschuifbare tabs worden weergegeven.
-
- Bevat een aan te passen widget die met één klik de notitie opent.
-
- Bevat geen advertenties of onnodige permissies. Volledig open-source. Kleuren van de app kunnen worden aangepast.
-
- Deze app is onderdeel van een grotere verzameling. Vind de andere apps op https://www.simplemobiletools.com
-
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-pa-rPK/strings.xml b/app/src/main/res/values-pa-rPK/strings.xml
new file mode 100644
index 000000000..043ea709e
--- /dev/null
+++ b/app/src/main/res/values-pa-rPK/strings.xml
@@ -0,0 +1,79 @@
+
+
+ سادے نوٹ
+ نوٹ
+ تہاڈیاں اَیپ ورتوں لئی مہربانی۔ «SimpleMobileTools.com» تے ہور سادی اَیپاں دِکھیو۔
+ کوئی لکھت نہیں، سانجھی نہیں کیتی جا سکدی
+ سادہ نوٹ
+ نواں نوٹ پایو
+ نوٹ دا ناں پایو
+ ایہہ سرلیکھ ہور نوٹ پہلاں ہی ورتیا سی
+ نوٹ کھُلھو
+ نوٹ مٹاؤ
+ پکے، «%s» مٹاؤ؟
+ اِک نوٹ چݨو
+ نوٹ لئی نواں ناں بݨاؤ
+ عام نوٹ
+ نواں نوٹ بݨاؤ
+ نوٹ وچ جوڑو
+ کجھ تبدیکیاں نہیں سامبھیاں ہن۔ کیہ کرنا چاہندے او؟
+ وِجٹ وچ نوٹ ویکھدا:
+ نوٹ دا سرلیکھ ویکھو
+ نویں نوٹ دی قسم:
+ لکھت دا نوٹ
+ نوٹ تالؕا مارنا
+ نوٹ اُگھیڑو
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ ایس نوٹ دی سمگاری تالؕا مارنی اے
+ سمگری ویکھو
+ چیتاونی: جےتسی نوٹ دا پاسورڈ بھُل جاندے او، تاں فیر نوٹ دی سمگری لبھ نہیں سکدیاں۔
+ نواں لکھت دا نوٹ بݨاؤ
+ نویں چیکلِسٹ بݨاؤ
+ The app cannot load files over the internet
+
+ فائل کھُلھو
+ فائل ایکسپورٹ کرو
+ فائل بہت وڈی اے، سیمہ ۱ میگابائیٹ اے
+ صرف فائل دا سمگری ہی ایمپورٹ کرو (جے فائل بدلی گئی نوٹ نوں بدلیا نہیں ہووےگا)
+ جدوں نوٹ بدلیا فائل بدلو (جے فائل مٹی گئی یا پاتھ بدلیا گیا، تاں نوٹ مٹا دِتا جاندا اے)
+ فائل «%s» نوں وی مٹاؤ
+ نوٹ «%s» سامبھیا گیا
+ نوٹ «%s» ایکسپورٹ کیتا گیا
+ صرف ایس فائل دا سمگری ہی ایمپورٹ کرو (جے نوٹ بدلیا گیا فائل نوں بدلیا نہیں ہووےگا)
+
+ سامبھݨ دے سنہے ویکھو
+ کڑیاں تے ایمیل کھُلھݨ چالو کرو
+ کرسر نوں نوٹ دے انت وچ رکھو
+ مونوسپیس والے فونٹ ورتو
+ شروع ہوݨ سمیں کیبورڈ ویکھو
+ لفظاں دی گݨتی ویکھو
+ اکھراں دی کھݨتی ویکھو
+ ایکسارتا
+ کھبے
+ کیندر
+ سجے
+ وِجٹ وچ نوٹ ورتدا جاندا
+ شروع ہوݨ سمیں نوٹ چوݨکار ویکھو
+ خود بخود نوٹ سامبھو
+ لائین ریپ کرن چالو کرو
+ کیبورڈاں لئی اینکوگنیٹو سیٹنگ ورتو
+ چیکلِسٹ دے پورن حصے نوں ہیٹھاں لے جاؤ
+ سکھر تے چیکلِسٹ دے نویں حصے پایو
+
+ چیکلسٹ
+ چیکلسٹاں
+ چیکلِسٹ وچ نواں حصہ پایو
+ چیکلِسٹ وچ نویں حصے پایو
+ چیکلِسٹ وچ نوٹ کوئی نہیں
+ کیٹیاں ائیٹماں نوں ہٹاؤ
+ Add to the top
+
+ فولڈر ایمپورٹ کرو
+ سارے نوٹ ایکسپورٹ کرو
+ نوٹ ایمپورٹ کرو
+ نوٹ ایمپورٹ کرو (فیز ورژن)
+
+ میں وِجٹ دا رنگ کیویں بدل سکدا ہاں؟
+ In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
+
diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
index 713a51497..52aa0b5b1 100644
--- a/app/src/main/res/values-pl/strings.xml
+++ b/app/src/main/res/values-pl/strings.xml
@@ -1,86 +1,87 @@
+
- Prosty notatnik
- Notatnik
- Dziękujemy za korzystanie z aplikacji.\nPo więcej prostych aplikacji, takich jak ta, udaj się na SimpleMobileTools.com.
- Nie mogę udostępnić pustej notatki
+ Proste notatki
+ Notatki
+ Dziękujemy za korzystanie z aplikacji Proste notatki.
+\nWięcej prostych aplikacji można znaleźć na SimpleMobileTools.com.
+ Nie można udostępnić pustego tekstuProsta notatkaDodaj nową notatkęNazwij swoją notatkę
- Notatka o tej nazwie już istnieje
+ Notatka o tym tytule już istniejeOtwórz notatkęUsuń notatkę
- Czy na pewno chcesz usunąć notatkę \"%s\"?
+ Czy usunąć notatkę „%s”\?Wybierz notatkęZmień nazwę notatkiNotatka ogólnaUtwórz nową notatkęDodaj do notatki
- You have some unsaved changes. What do you want to do with them?
- Note shown in the widget:
- New note type:
- Text note
-
+ Masz niezapisane zmiany. Co chcesz z nimi zrobić\?
+ Notatka wyświetlana w widżecie:
+ Pokazuj tytuł notatki
+ Typ nowej notatki:
+ Notatka tekstowa
+ Zablokuj notatkę
+ Odblokuj notatkę
+ Odblokuj notatki
+ Poniższe notatki są zablokowane. Możesz je odblokować jedna po drugiej lub pominąć ich eksportowanie.
+ Treść notatki jest zablokowana.
+ Pokaż zawartość
+ 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.
+ Nowa notatka tekstowa
+ Nowa lista kontrolna
+ Aplikacja nie może załadować plików przez InternetOtwórz plik
- Wyeksportuj jako plik
- Plik jest za duży (może mieć co najwyżej 1 MB)
- Zaimportuj tylko zawartość pliku\n(zmiana pliku nie będzie miała wpływu na notatkę)
- Zaktualizuj plik po zaktualizowaniu notatki\n(notatka zostanie usunięta jeśli plik zostanie usunięty lub zmieni się jego lokalizacja)
- Usuń także plik \"%s\"
- Notatka \"%s\" została zapisana
- Notatka \"%s\" została eksportowana
- Only export the current file content\n(changing the note will not affect the file)
-
+ Eksportuj jako plik
+ Plik za duży, limit to 1 MB
+ Zaimportuj tylko zawartość pliku
+\n(zmiana pliku nie wpłynie na notatkę)
+ Aktualizuj plik podczas aktualizacji notatki
+\n(notatka zostanie usunięta w przypadku usunięcia pliku lub zmiany ścieżki)
+ Usuń również plik „%s”
+ Notatka „%s” została zapisana
+ Notatka „%s” została wyeksportowana
+ Wyeksportuj tylko bieżącą zawartość pliku
+\n(zmiana notatki nie wpłynie na plik)
- Wyświetlaj informacje o pomyślnym zapisaniu notatki
- Przetwarzaj linki i adresy e-mail do klikalnej formy.
+ Wyświetlaj informacje o pomyślnym zapisie
+ Przetwarzaj linki i adresy e-mail do klikalnej formyUmieszczaj kursor na końcu notatkiUżywaj czcionki o stałej szerokości
- Pokazuj klawiaturę na starcie
+ Pokazuj klawiaturę przy uruchomieniuPokazuj liczbę słów
- Wyrównanie tekstu w notatkach
- Do lewej strony
+ Pokazuj liczbę znaków
+ Wyrównanie tekstu
+ Do lewejDo środka
- Do prawej strony
+ Do prawejNotatka używana w widżecie
- Pokazuj wybór notatki po uruchomieniu
- Autozapis notatek
- Zawijanie linii
- Use Incognito mode of keyboards
- Move undone checklist items at the top
-
+ Pokazuj wybór notatki przy uruchomieniu
+ Automatyczne zapisywanie notatek
+ Włącz zawijanie linii
+ Używaj trybu incognito klawiatury
+ Przesuwaj na dół wykonane elementy listy kontrolnej
+ Dodawaj na górze nowe elementy listy kontrolnej
- Checklist
- Add a new checklist item
- Add new checklist items
- The checklist is empty
-
+ Lista kontrolna
+ Listy kontrolne
+ Dodaj nowy element listy kontrolnej
+ Dodaj nowe elementy listy kontrolnej
+ Lista kontrolna jest pusta
+ Usuń wykonane elementy
+ Dodaj na górze
- Eksportuj wszystkie notatki jako pliki
- Importuj pliki jako notatkiImportuj folder
-
+ Eksportuj notatki
+ Importuj notatki
+ Importuj notatki (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Potrzebujesz szybko zanotować, co masz kupić, gdzie masz pojść lub co zrobić? Zatem jest to aplikacja, której szukasz. Nie ma tu żadnych skomplikowanych kroków ani ustawień, po prostu pisz, co konieczne jest do zapamiętania. Autozapis nie pozwoli na umknięcie niczego. Dla zabieganych jest opcja pisania kilka notatek na raz.
-
- Widżet dodatkowo ułatwia sprawę. Klikasz go i już możesz pisać.
-
- Aplikacja nie zawiera żadnych żadnych reklam i nie potrzebuje masy uprawnień. Jest w pełni otwartoźródłowa. Posiada ciemny motyw dla osób z wrażliwymi oczami.
-
- Niniejsza aplikacja jest tylko częścią naszej kolekcji prostych narzędzi. Ta, jak i pozostałe, dostępne są na stronie https://www.simplemobiletools.com
-
-
+ Jak mogę zmienić kolor widżetów\?
+ Jeśli masz tylko 1 aktywny widżet, możesz go odtworzyć lub użyć przycisku w ustawieniach aplikacji, aby go dostosować. Jeśli masz wiele aktywnych widżetów, przycisk w ustawieniach aplikacji nie będzie dostępny. Ponieważ aplikacja obsługuje dostosowywanie kolorów dla poszczególnych widżetów, konieczne będzie ponowne utworzenie widżetu, który chcesz dostosować.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml
index c5b5d9017..b0427612f 100644
--- a/app/src/main/res/values-pt-rBR/strings.xml
+++ b/app/src/main/res/values-pt-rBR/strings.xml
@@ -1,36 +1,50 @@
+
- Simple Notes
+ Notas SimplesNotas
- Obrigado por usar o Simple Notes.\nPara mais aplicativos Simple, acesse SimpleMobileTools.com.
- Não pode compartilhar texto em branco
- Nota simples
+ Obrigado por usar o Notas Simples.
+\nPara mais aplicativos Simples, acesse SimpleMobileTools.com.
+ Não é possível compartilhar textos vazios
+ Nota SimplesAdicionar uma notaPor favor, dê um nome à sua notaJá existe uma nota com este títuloAbrir notaApagar nota
- Deseja mesmo apagar a nota \"%s\"?
+ Quer mesmo apagar a nota \"%s\"\?Selecione uma notaRenomear notaNota geralCriar uma nova notaAdicionar à nota
- Você tem algumas alterações que ainda não foram salvas. O que você gostaria de fazer com elas?
- Exibir nota em um widget:
+ Você tem algumas alterações que ainda não foram salvas. O que você gostaria de fazer com elas\?
+ Exibir nota no widget:
+ Mostrar título da notaNovo tipo de nota:Anotações
-
+ Bloquear anotação
+ Desbloquear anotação
+ Desbloquear notas
+ As notas a seguir estão bloqueadas. Você pode desbloqueá-las uma a uma ou pular a exportação.
+ O conteúdo da nota está bloqueado.
+ Mostrar conteúdo
+ AVISO: Caso você esqueça a senha, não conseguirá recuperá-la ou acessar o conteúdo da nota.
+ Nova nota de texto
+ Nova lista
+ O aplicativo não pode carregar arquivos pela InternetAbrir arquivoExportar como arquivoArquivo muito grande, o limite é 1 MB
- Importe apenas o conteúdo do arquivo\n(modificar o arquivo não afetará a nota)
- Atualize o próprio arquivo ao atualizar a nota\n(a nota será excluída se o arquivo for excluído ou o caminho alterado)
+ Importe apenas o conteúdo do arquivo
+\n(modificar o arquivo não afetará a nota)
+ Atualize o próprio arquivo ao atualizar a nota
+\n(a nota será excluída se o arquivo for excluído ou o caminho alterado)Apagar também o arquivo \"%s\"
- Nota \"%s\" guardada com sucesso
+ Nota \"%s\" salva com sucessoNota \"%s\" exportada com sucesso
- Exportar apenas o conteúdo atual do arquivo\n(alterar a nota não afetará o arquivo)
-
+ Exportar apenas o conteúdo atual do arquivo
+\n(alterar a nota não afetará o arquivo)Mostrar mensagens de gravação com sucessoAtivar clique em ligações e endereços de e-mail
@@ -38,7 +52,8 @@
Use fonte de mesmo tamanhoMostrar teclado na inicializaçãoMostrar contagem de palavras
- Gravidade
+ Mostrar contagem de caracteres
+ AlinhamentoEsquerdaCentroDireita
@@ -47,40 +62,26 @@
Salvar notas automaticamenteAtivar quebra de linhaUsar o teclado no modo de Navegação Anônima
- Move undone checklist items at the top
-
+ Mover itens completos da lista de verificação para o final
+ Adicionar novos itens da lista de verificação na parte superiorLista de verificação
- Adicionar novo item de lista de verificação
- Adicionar novos itens de lista de verificação
+ Listas de verificação
+ Adicionar novo item à lista de verificação
+ Adicionar novos itens à lista de verificaçãoA lista de verificação está vazia
-
+ Remover itens concluídos
+ Add to the top
- Exportar todas as notas como arquivo
- Importar múltiplos arquivos como notasImportar pasta
-
+ Exportar notas
+ Import notes
+ Importar notas (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- Um lindo aplicativo para notas rápidas, sem anúncios ou permissões esquisitas.
-
- Precisa escrever uma nota sobre algo? Então este aplicativo é para você! Sem complicações, basta escrever o seu texto na nota. As notas são salvas automaticamente, para que não as perca inesperadamente. Possui suporte a diversas notas independentes.
-
- Pode abrir o aplicativo e acessar sua nota através de um toque no widget.
-
- Não contém anúncios nem permissões desnecessárias. Disponibiliza um tema escuro e é totalmente \'open source\'.
-
- Este aplicativo é apenas parte de um conjunto mais vasto de aplicações. Saiba mais em https://www.simplemobiletools.com
-
-
+ Como mudar a cor dos widgets\?
+ Caso você possua apenas 1 widget ativo, você poderá recriá-lo, ou usar o botão nas configurações do aplicativo para personalizá-lo. Caso você possua vários widgets ativos, o botão nas configurações do aplicativo não estará disponível. Como o aplicativo suporta personalização de cores por widget, você terá que recriar o widget que deseja personalizar.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml
index 6963d02c1..1738c5adb 100644
--- a/app/src/main/res/values-pt/strings.xml
+++ b/app/src/main/res/values-pt/strings.xml
@@ -1,44 +1,59 @@
+
Simple NotesNotas
- Obrigado por usar o Simple Notes.\nPara mais aplicações Simple, aceda a SimpleMobileTools.com.
+ Obrigado por usar Simple Notes.
+\nPara mais aplicações Simple, visite SimpleMobileTools.com.Não pode partilhar texto vazioNota simplesAdicionar uma nota
- Por favor dê um nome à sua nota
- Já existe uma nota com este título
+ Introduza o nome da nota
+ Já existe uma nota com este nomeAbrir notaApagar nota
- Deseja mesmo apagar a nota \"%s\"?
+ Pretende mesmo apagar a nota \"%s\"\?Selecione uma notaRenomear notaNota genéricaCriar uma notaAdicionar a uma nota
- Existem alterações não guardadas. O que deseja fazer?
+ Existem alterações não guardadas. O que pretende fazer\?Nota mostrada no widget:
+ Mostrar título da notaTipo da nova nota:Nota de texto
-
+ Bloquear nota
+ Desbloquear nota
+ Desbloquear notas
+ As notas seguintes estão bloqueadas. Pode desbloquear as notas individualmente ou ignorar a exportação.
+ O conteúdo da nota está bloqueado.
+ Mostrar conteúdo
+ AVISO: se esquecer a palavra-passe, não conseguirá aceder à nota nem recuperar o seu conteúdo.
+ Nova nota de texto
+ Nova lista
+ A aplicação não consegue carregar ficheiros da internetAbrir ficheiroExportar como ficheiro
- Ficheiro muito grande, o limite são 1 MB
- Importar apenas o conteúdo do ficheiro\n(se alterar o ficheiro, a nota fica intacta)
- Atualizar o ficheiro ao atualizar a nota\n(a nota será removida se apagar o ficheiro ou se mudar a sua localização)
+ Ficheiro demasiado grande, o limite é 1 MB
+ Importar apenas o conteúdo do ficheiro
+\n(se alterar o ficheiro, a nota fica intacta)
+ Atualizar o ficheiro ao atualizar a nota
+\n(a nota será removida se apagar o ficheiro ou se mudar a sua localização)Apagar também o ficheiro \"%s\"Nota \"%s\" guardada com sucessoNota \"%s\" exportada com sucesso
- Exportar apenas o conteúdo do ficheiro atual\n(a alteração da nota não afeta não afeta o ficheiro)
-
+ Exportar apenas o conteúdo do ficheiro atual
+\n(a alteração da nota não afeta o ficheiro)
- Mostrar mensagens de gravação com sucesso
- Ativar clique em ligações e endereços de e-mail
- Colocar cursor no fim da nota
+ Mostrar mensagem de gravação com sucesso
+ Ativar toque em ligações e endereços de e-mail
+ Colocar cursor no final da notaUsar letra mono-espaçadaMostrar teclado ao inciarMostrar número de palavras
- Gravidade
+ Mostrar número de caracteres
+ AlinhamentoEsquerdaCentroDireita
@@ -47,40 +62,26 @@
Guardar nota automaticamenteAtivar quebra de linhaUtilizar modo incógnito no teclado
- Mover itens não realizados para o topo
-
+ Mover itens não concluídos para o fundo da lista de verificação
+ Adicionar novos itens ao topo da lista de verificaçãoLista de verificação
- Adicionar item à lista de verificações
+ Listas de verificação
+ Adicionar item à lista de verificaçãoAdicionar itens à lista de verificaçãoA lista está vazia
-
+ Remover itens concluídos
+ Add to the top
- Exportar todas as notas como ficheiros
- Importar ficheiros para notasImportar pasta
-
+ Exportar notas
+ Importar notas
+ Importar notas (Pro)
- Como posso alterar a cor do widget?
- Se apenas tiver um widget ativo, pode recriá-lo ou utilizar o botão nas definições o personalizar. Se tiver vários widgets, este botão não estará disponível. Como cada um dos widgets pode ser personalizado, terá que os recriar sempre que o quiser personalizar.
-
-
-
- Simple Notes Pro - Criação de notas
-
- Um aplicação sem anúncios para registar as suas notas.
-
- Necessita de escrever uma nota sobre algo? Então esta aplicação é para si! Sem complicações, basta escrever o seu texto na nota. Guarda automaticamente as notas, para que não as perca inesperadamente. Possui suporte a diversas notas independentes.
-
- Pode abrir a aplicação e aceder à sua nota através de um toque no widget.
-
- Não contém anúncios nem permissões desnecessárias. Disponibiliza um tema escuro e é totalmente \'open source\'.
-
- Esta aplicação é apenas parte de um conjunto mais vasto de aplicações. Saiba mais em https://www.simplemobiletools.com
-
-
+ Posso alterar a cor do widget\?
+ Se apenas tiver um widget ativo, pode recriar ou utilizar o botão nas definições para o personalizar. Se tiver vários widgets, este botão não estará disponível. Como cada um dos widgets pode ser personalizado, terá que os recriar sempre que os quiser personalizar.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml
new file mode 100644
index 000000000..dc97c3f52
--- /dev/null
+++ b/app/src/main/res/values-ro/strings.xml
@@ -0,0 +1,87 @@
+
+
+ Notițe simple
+ Notițe
+ Vă mulțumim că ați folosit Notițe simple.
+\nPentru mai multe aplicații simple, vă rugăm să vizitați SimpleMobileTools.com.
+ Nu se poate distribui text gol
+ Notiță simplă
+ Adăugați o nouă notă
+ Vă rugăm să denumiți notița dumneavoastră
+ O notiță cu acest titlu există deja
+ Deschideţi notița
+ Ștergeți notița
+ Sunteți sigur că doriți să ștergeți notița \"%s\"\?
+ Alegeți o notiță
+ Redenumiți notița
+ Notiță generală
+ Creați o nouă notiță
+ Adăugați la notiță
+ Aveți unele modificări nesalvate. Ce doriți să faceți cu ele\?
+ Notiță afișată în widget:
+ Arată titlul notiței
+ Un nou tip de notiță:
+ Notiță text
+ Blocaţi notița
+ Deblocaţi notița
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ Conținutul notiței este blocat.
+ Afișați conținutul
+ ATENȚIE: Dacă uitați parola notițelor, nu o veți mai putea recupera și nici nu veți mai putea accesa conținutul notițele.
+ Noua notița de text
+ O nouă listă de verificare
+ The app cannot load files over the internet
+
+ Deschideți fișierul
+ Exportați ca fișier
+ Fișier prea mare, limita este de 1MB
+ Importați numai conținutul fișierului
+\n(modificarea fișierului nu va afecta notița)
+ Actualizarea fișierului în sine la actualizarea notei
+\n(notița este ștearsă dacă fișierul este șters sau dacă se schimbă calea de acces)
+ Ștergeți și fișierul \"%s\"
+ Notița \"%s\" salvată cu succes
+ Notița \"%s\" a fost exportată cu succes
+ Exportați numai conținutul curent al fișierului
+\n(modificarea notiței nu va afecta fișierul)
+
+ Afișaţi mesajele de salvare cu succes
+ Faceți link-urile și e-mailurile accesibile
+ Așezați cursorul la sfârșitul notiței
+ Utilizați un font monospațiat
+ Afișare tastatură la pornire
+ Arată numărul de cuvinte
+ Arată numărul de caractere
+ Aliniere
+ Stânga
+ Centru
+ Dreapta
+ Notiță utilizată în widget
+ Afișați un selector de notițe la pornire
+ Salvare automată a notițelor
+ Activați înfășurarea liniilor
+ Utilizați modul Incognito al tastaturilor
+ Mutați elementele realizate din lista de verificare în partea de jos
+ Adăugați noi elemente ale listei de verificare în partea de sus
+
+ Listă de verificare
+ Liste de verificare
+ Adăugați un nou element în lista de verificare
+ Adăugați noi elemente în lista de verificare
+ Lista de verificare este goală
+ Elimină elementele realizate
+ Add to the top
+
+ Importare dosar
+ Exportați toate notițele
+ Importaţi notițele
+ Importaţi note (Pro)
+
+ Cum pot schimba culoarea widget-urilor\?
+ În cazul în care aveți doar un singur widget activ, îl puteți fie recrea, fie puteți utiliza butonul din setările aplicației pentru a-l personaliza. În cazul în care aveți mai multe widgeturi active, butonul din setările aplicației nu va fi disponibil. Deoarece aplicația acceptă personalizarea culorilor pentru fiecare widget în parte, va trebui să recreați widgetul pe care doriți să îl personalizați.
+
+
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index f038a92a0..221bd5621 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -1,7 +1,9 @@
+
- Simple Notes
+ Простые заметкиЗаметки
- Благодарим вас за использование Simple Notes.\nБольше простых приложений вы можете найти на SimpleMobileTools.com.
+ Благодарим вас за использование \"Простых заметок\".
+\nБольше простых приложений вы можете найти на SimpleMobileTools.com.Нельзя поделиться пустым текстомПростая заметкаДобавить новую заметку
@@ -9,35 +11,48 @@
Заметка с таким названием уже существуетОткрыть заметкуУдалить заметку
- Вы действительно хотите удалить заметку \"%s\"?
+ Удалить заметку \"%s\"\?Выберите заметкуПереименовать заметкуОбщая заметкаНовая заметкаДобавить к заметке
- Есть несохраненные изменения. Что вы хотите с ними сделать?
+ Есть несохранённые изменения. Что вы хотите с ними сделать\?Заметка, показываемая в виджете:
+ Показывать название заметкиТип новой заметки:Текстовая заметка
-
+ Блокировать заметку
+ Разблокировать заметку
+ Разблокировать заметки
+ Следующие заметки заблокированы. Вы можете либо разблокировать их по одной, либо не включать в экспорт.
+ Содержимое заметки заблокировано.
+ Показывать содержание
+ ПРЕДУПРЕЖДЕНИЕ: если вы забудете пароль, то не сможете восстановить его или получить доступ к содержимому заметок.
+ Новая заметка
+ Новый список
+ Приложение не может загружать файлы через интернетОткрыть файлЭкспортировать в файл
- Файл слишком велик, лимит 1МБ
- Только импортировать содержимое файла\n(изменение файла не изменит заметку)
- Обновлять содержимое файла при обновлении заметки\n(заметка удалится, если удалить файл или изменить путь к нему)
+ Файл слишком большой, лимит 1 МБ
+ Только импортировать содержимое файла
+\n(изменение файла не изменит заметку)
+ Обновлять содержимое файла при обновлении заметки
+\n(заметка удалится, если удалить файл или изменить путь к нему)Также удалить файл \"%s\"Заметка \"%s\" сохраненаЗаметка \"%s\" экспортирована
- Экспортировать только текущее содержимое файла\n(изменение заметки не затронет файл)
-
+ Экспортировать только текущее содержимое файла
+\n(изменение заметки не затронет файл)
- Уведомлять, что файл успешно сохранен
- Сделать ссылки и адреса электронной почты активными
+ Уведомлять об успешном сохранении файла
+ Активные ссылки и адреса электронной почтыПомещать курсор в конец заметкиИспользовать моноширинный шрифтПоказывать клавиатуру при запуске
- Отображать количество слов
+ Показывать количество слов
+ Показывать количество символовВыравниваниеПо левому краюПо центру
@@ -47,40 +62,26 @@
Автосохранение заметокПереносить строкиИспользовать режим инкогнито для клавиатур
- Move undone checklist items at the top
-
+ Перемещать выполненные позиции в конец списка
+ Добавлять новые позиции в начало спискаСписок
+ СпискиДобавить позицию в списокДобавить позиции в списокСписок пуст
-
+ Удалить выполненные позиции
+ Добавить в начало
- Экспортировать все заметки в файлы
- Импортировать несколько файлов в заметкиИмпортировать папку
-
+ Экспортировать заметки
+ Импортировать заметки
+ Импортировать заметки (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Нужно записать, что купить, адрес или идею стартапа? Тогда это то приложение, что вы искали! Не нужно долго настраивать, просто введите то, что хотели. Есть автосохранение, поэтому вы никогда не отмените правки по ошибке. Поддерживается создание нескольких независимых друг от друга заметок.
-
- Вы можете получить доступ к заметке мгновенно, используя настраиваемый и изменяемый по размеру виджет, который откроет приложение по клику.
-
- Без рекламы и излишних прав доступа. Полностью открытое ПО, а также со встроенной темной темой.
-
- Это только одно приложение из множества других в серии. Вы можете найти остальные на https://www.simplemobiletools.com
-
-
+ Как я могу изменить цвет виджета\?
+ Если у вас только 1 активный виджет, вы можете либо пересоздать его, либо использовать кнопку в настройках приложения. Если у вас несколько активных виджетов, кнопка в настройках будет недоступна. Поскольку приложение поддерживает настройку цвета для каждого виджета, вам придётся пересоздать виджет, который вы хотите настроить.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-sat/strings.xml b/app/src/main/res/values-sat/strings.xml
new file mode 100644
index 000000000..56b5021eb
--- /dev/null
+++ b/app/src/main/res/values-sat/strings.xml
@@ -0,0 +1,88 @@
+
+
+ Simple Notes
+ Notes
+ Thank you for using Simple Notes.\nFor more simple apps please visit SimpleMobileTools.com.
+ Cannot share empty text
+ Simple Note
+ Add a new note
+ Please name your note
+ A note with that title already exists
+ Open note
+ Delete note
+ Are you sure you want to delete note \"%s\"?
+ Pick a note
+ Rename note
+ General note
+ Create a new note
+ Add to note
+ You have some unsaved changes. What do you want to do with them?
+ Note shown in the widget:
+ Show note title
+ New note type:
+ Text note
+ Lock note
+ Unlock note
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ The notes\' content is locked.
+ Show content
+ WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.
+ New text note
+ New checklist
+ The app cannot load files over the internet
+
+
+ Open file
+ Export as file
+ File too large, the limit is 1MB
+ Only import the file content\n(changing the file will not affect the note)
+ Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)
+ Also delete file \"%s\"
+ Note \"%s\" saved successfully
+ Note \"%s\" exported successfully
+ Only export the current file content\n(changing the note will not affect the file)
+
+
+ Display save success messages
+ Make links and emails clickable
+ Place cursor to the end of note
+ Use monospaced font
+ Show keyboard on startup
+ Show word count
+ Show character count
+ Alignment
+ Left
+ Center
+ Right
+ Note used in widget
+ Show a note picker on startup
+ Autosave notes
+ Enable line wrap
+ Use Incognito mode of keyboards
+ Move done checklist items to the bottom
+ Add new checklist items at the top
+
+
+ Checklist
+ Checklists
+ Add a new checklist item
+ Add new checklist items
+ The checklist is empty
+ Remove done items
+ Add to the top
+
+
+ Import folder
+ Export notes
+ Import notes
+ Import notes (Pro)
+
+
+ How can I change the widgets color?
+ In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
+
+
diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml
index e35ceebd5..714c11e37 100644
--- a/app/src/main/res/values-sk/strings.xml
+++ b/app/src/main/res/values-sk/strings.xml
@@ -1,7 +1,9 @@
+
Jednoduché poznámkyPoznámky
- Ďakujeme za používanie Jednoduchých poznámok.\nPre viac jednoduchých apiek prosím navštívte SimpleMobileTools.com.
+ Ďakujeme za používanie Jednoduchých poznámok.
+\nPre viac jednoduchých apiek prosím navštívte SimpleMobileTools.com.Nedá sa zdieľať prázdny textJednoduchá poznámkaPridať novú poznámku
@@ -9,28 +11,40 @@
Poznámka s týmto názvom už existujeOtvoriť poznámkuOdstrániť poznámku
- Ste si istý, že chcete odstrániť poznámku \"%s\"?
+ Ste si istý, že chcete odstrániť poznámku \"%s\"\?Zvoľte si poznámkuPremenovať poznámkuVšeobecná poznámkaVytvoriť novú poznámkuPridať k poznámke
- Máte nejaké neuložené zmeny. Čo s nimi chcete spraviť?
+ Máte nejaké neuložené zmeny. Čo s nimi chcete spraviť\?Poznámka zobrazená vo widgete:
+ Zobraziť názov poznámkyTyp novej poznámky:Textová poznámka
-
+ Uzamknúť poznámku
+ Odomknúť poznámku
+ Odomknúť poznámky
+ Nasledovné poznámky sú uzamknuté. Môžete ich buď odomknúť po jednom, alebo vynechať ich exportovanie.
+ Obsah poznámky je uzamknutý.
+ Zobraziť obsah
+ UPOZORNENIE: Ak zabudnete heslo poznámky, nebudete ho môcť obnoviť, ani sa už dostať k obsahu poznámky.
+ Nová textová poznámka
+ Nový zoznam položiek
+ Apka nevie načítať súbory cez internetOtvoriť súborExportovať ako súborSúbor je príliš veľký, maximálny limit je 1MB
- Iba importovať obsah súboru\n(úprava súboru nebude mať vplyv na poznámku)
- Aktualizovať samotný súbor po úprave poznámky\n(ak bude daný súbor presunutý, alebo vymazaný, bude vymazaná aj poznámka)
+ Iba importovať obsah súboru
+\n(úprava súboru nebude mať vplyv na poznámku)
+ Aktualizovať samotný súbor po úprave poznámky
+\n(ak bude daný súbor presunutý, alebo vymazaný, bude vymazaná aj poznámka)Odstrániť aj súbor \"%s\"Poznámka \"%s\" bola úspešne uloženáPoznámka \"%s\" bola úspešne exportovaná
- Iba exportovať súčasný obsah súboru\n(úprava poznámky nebude mať vplyv na súbor)
-
+ Iba exportovať súčasný obsah súboru
+\n(úprava poznámky nebude mať vplyv na súbor)Zobraziť správu o úspešnom uložení poznámkySpraviť odkazy a emaily klikateľnými
@@ -38,6 +52,7 @@
Použiť písmo MonospaceZobraziť klávesnicu po spusteníZobraziť počítadlo slov
+ Zobraziť počítadlo znakovZarovnanieVľavoUprostred
@@ -47,38 +62,24 @@
Automaticky ukladať poznámkyPovoliť zalamovanie riadkovPoužiť Inkognito mód klávesníc
- Presunúť nesplnené položky zo zoznamu položiek na vrch
-
+ Presunúť splnené položky zo zoznamu položiek na spodok
+ Pridávať nové položky do zoznamov na vrchZoznam položiek
+ Zoznamy položiekPridať do zoznamu novú položkuPridať do zoznamu nové položkyZoznam položiek je prázdny
-
+ Odstrániť splnené položky
+ Pridať na vrch
- Exportovať všetky poznámky ako súbory
- Importovať viacero súborov ako poznámkyImportovať priečinok
-
+ Exportovať poznámky
+ Importovať poznámky
+ Importovať poznámky (Pro)
- Ako viem zmeniť farby widgetu?
+ Ako viem zmeniť farby widgetu\?V prípade, že máte iba 1 aktívny widget, ho môžete buď znova vytvoriť, alebo použiť tlačidlo v nastaveniach apky na zmenu farby. Ak máte widgetov viacero, tlačidlo v nastaveniach apky zmizne. Keďže apka podporuje rôzne farby pre každý widget, budete musieť znovu vytvoriť ten widget, ktorého farby chcete zmeniť.
-
-
-
- Jednoduché poznámky Pro - Rýchla tvorba zápiskov
-
- Krásna apka na pridávanie rýchlych poznámok bez reklám a nepotrebných oprávnení.
-
- Potrebujete si rýchlo poznačiť niečo na nákup, adresu, alebo nápad na startup? Ak áno, táto apka je pre vás ako stvorená! Nieje potrebné žiadne zdĺhavé nastavovanie, iba zapíšte, čo chcete. Poznámky sa ukladajú automaticky, čiže ich ani náhodou nestratíte. Poskytuje možnosť vytvorenia viacerých nezávislých poznámok.
-
- Ku poznámkam viete rýchlo pristupovať cez upraviteľný widget, ktorý kliknutím otvorí apku.
-
- Neobsahuje žiadne reklamy a nepotrebné oprávnenia. Je opensource, poskytuje možnosť zmeny farieb.
-
- Táto aplikácia je iba jednou zo skupiny aplikácií. Ostatné viete nájsť na https://www.simplemobiletools.com
-
-
+ Odprite datoteko
+ Izvozite kot datoteko
+ Prevelika datoteka, omejitev je 1MB
+ Uvozite le vsebino datoteke\n(sprememba datoteke ne vpliva na opombo)
+ Posodobite datoteko ob posodabljanju opombe\n(opomba se izbriše, če se datoteka izbriše ali spremeni pot)
+ Izbrišite tudi datoteko \"%s\"
+ Opomba \"%s\" uspešno shranjena
+ Opomba \"%s\" uspešno izvožena
+ Izvozite le trenutno vsebino datoteke\n(sprememba opombe ne vpliva na datoteko)
+
+ Pokažite sporočila o uspešnem shranjevanju
+ Poskrbite, da je moč klikniti povezave in e-poštna sporočila
+ Kazalec postavite na koncu opomb
+ Uporabite enozvezno pisavo
+ Prikažite tipkovnico ob zagonu
+ Pokažite število besed
+ Prikažite število znakov
+ Poravnava
+ Levo
+ Središče
+ Desno
+ Opomba, uporabljena v pripomočku
+ Prikažite izbirnik za opombe ob zagonu
+ Samodejno shranjevanje opomb
+ Omogočite zavijanje vrstice
+ Uporabite način inkognito na tipkovnicah
+ Na dno premaknite postavke kontrolnega seznama
+ Dodajte nove elemente kontrolnega seznama na vrh
+
+ Preverjanje
+ Preverjanje seznamov
+ Dodajte novo zadevo na seznam
+ Dodajte nove zadeve na seznam
+ Seznam kontrolni je prazen
+ Odstranite opravljene elemente
+ Add to the top
+
+ Uvozite datoteko
+ Izvozite opombe
+ Uvozite opombe
+ Uvozite opombe (Pro)
+
+ Kako lahko spremenim barvo pripomočkov\?
+ V primeru le enega aktivnega pripomočka, ga ponovno ustvarite ali uporabite gumb v nastavitvah aplikacije za njegovo prilagoditev. Če imate več aktivnih gradnikov, gumb v nastavitvah aplikacije ne bo na voljo. Ker aplikacija podpira prilagajanje barv za posamezen pripomoček, ga boste morali ponovno ustvariti, v primeru prilagoditve.
+
\ No newline at end of file
diff --git a/app/src/main/res/values-sr/strings.xml b/app/src/main/res/values-sr/strings.xml
new file mode 100644
index 000000000..2165a4552
--- /dev/null
+++ b/app/src/main/res/values-sr/strings.xml
@@ -0,0 +1,79 @@
+
+
+ Једноставне белешке
+ Напомене
+ Хвала вам што користите Једноставне белешке.\nЗа једноставније апликације посетите SimpleMobileTools.com.
+ Не можете да делите празан текст
+ Симпле Нотес
+ Додајте нову белешку
+ Молимо да наведете своју белешку
+ Белешка са тим насловом већ постоји
+ Отвори белешку
+ Избриши белешку
+ Да ли сте сигурни да желите да избришете белешку \"%s\"\?
+ Изаберите белешку
+ Преименуј белешку
+ Општа напомена
+ Направите нову белешку
+ Додај напомену
+ Имате неке несачуване промене. Шта желиш да урадиш са њима\?
+ Напомена приказана у виџету:
+ Прикажи наслов белешке
+ Нова врста белешке:
+ Текст напомене
+ Закључај белешку
+ Откључај белешку
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ Садржај белешки је закључан.
+ Прикажи садржај
+ УПОЗОРЕЊЕ: Ако заборавите лозинку за белешке, више нећете моћи да је повратите нити да приступите садржају белешки.
+ Нова текстуална белешка
+ Нова контролна листа
+ The app cannot load files over the internet
+
+ Отворена датотека
+ Извези као датотеку
+ Датотека је превелика, ограничење је 1 МБ
+ Увезите само садржај датотеке\n(промена датотеке неће утицати на белешку)
+ Ажурирајте саму датотеку када ажурирате белешку\n(напомена се брише ако се датотека избрише или се промени путања)
+ Такође избришите датотеку \"%s\"
+ Белешке \"%s\" су успешно сачуване
+ Белешке \"%s\" успешно извезено
+ Извезите само тренутни садржај датотеке\n(промена белешке неће утицати на датотеку)
+
+ Прикажите поруке о успеху чувања
+ Учините линкове и е-поруке на које се може кликнути
+ Поставите курсор на крај белешке
+ Користите једноразредни фонт
+ Прикажи тастатуру при покретању
+ Прикажи број речи
+ Прикажи број знакова
+ Поравнање
+ Лево
+ Центар
+ Јел тако
+ Напомена која се користи у виџету
+ Прикажи бирач белешки при покретању
+ Аутоматско чување белешки
+ Омогући преламање линија
+ Користите анонимни режим тастатура
+ Померите готове ставке контролне листе на дно
+ Додајте нове ставке контролне листе на врх
+
+ Контролна листа
+ Контролне листе
+ Додајте нову ставку контролне листе
+ Додајте нове ставке контролне листе
+ Контролна листа је празна
+ Уклоните готове ставке
+ Add to the top
+
+ Увоз фолдера
+ Извези све белешке
+ Увезите белешке
+ Увезите белешке (Про)
+
+ Како могу да променим боју виџета\?
+ У случају да имате само 1 активан виџет, можете га поново креирати или користити дугме у подешавањима апликације да бисте га прилагодили. Ако имате више активних виџета, дугме у подешавањима апликације неће бити доступно. Пошто апликација подржава прилагођавање боја по виџету, мораћете поново да креирате виџет који желите да прилагодите.
+
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index 34540609b..3d5d001fa 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -1,36 +1,50 @@
+
Simple NotesAnteckningar
- Tack för att du använder Simple Notes.\nDu hittar fler enkla appar på simplemobiletools.com.
+ Tack för att du använder Simple Notes.
+\nDu hittar fler enkla appar på simplemobiletools.com.Det går inte att dela en tom anteckningEnkel anteckning
- Lägg till en ny anteckning
+ Ny anteckningNamnge din anteckningDet finns redan en anteckning med samma titelÖppna anteckning
- Ta bort anteckning
- Är du säker på att du vill ta bort anteckningen \"%s\"?
+ Ta bort
+ Är du säker på att du vill ta bort anteckningen \"%s\"\?Välj en anteckning
- Byt namn på anteckning
+ Byt namnAllmän anteckningSkapa en ny anteckningLägg till i anteckning
- Det finns några ändringar som inte har sparats. Vad vill du göra med dem?
+ Det finns några ändringar som inte har sparats. Vad vill du göra med dem\?Anteckning som visas i widgeten:
- Anteckningstyp:
- Textanteckning
-
+ Visa anteckningstitel
+ Format:
+ Anteckning
+ Lås
+ Lås upp
+ Lås upp anteckningar
+ Följande anteckningar är låsta. Du kan antingen låsa upp dem en i taget eller hoppa över att exportera dem.
+ Anteckningens innehåll är låst.
+ Visa innehåll
+ VARNING: Om du glömmer anteckningens lösenord så finns ingen möjlighet att återställa detta och du kommer således förlora åtkomsten till anteckningens innehåll.
+ Ny textanteckning
+ Ny checklista
+ Appen kan inte läsa in filer på internetÖppna fil
- Exportera som fil
- Filen är för stor, gränsen är 1 MB
- Importera bara innehållet i filen\n(anteckningen påverkas inte om filen ändras)
- Uppdatera själva filen när anteckningen uppdateras\n(anteckningen tas bort om filen tas bort eller sökvägen ändras)
+ Exportera
+ Filen är för stor, gränsen är 1MB
+ Importera bara innehållet i filen
+\n(anteckningen påverkas inte om filen ändras)
+ Uppdatera själva filen när anteckningen uppdateras
+\n(anteckningen tas bort om filen tas bort eller sökvägen ändras)Ta även bort filen \"%s\"
- Anteckningen \"%s\" har sparats
+ Anteckning \"%s\" sparades framgångsriktAnteckningen \"%s\" har exporterats
- Exportera bara det aktuella innehållet i filen\n(filen påverkas inte om anteckningen ändras)
-
+ Exportera endast det aktuella filinnehållet
+\n(att ändra anteckningen påverkar inte filen)Visa ett meddelande när en anteckning har sparatsGör länkar och e-postadresser tryckbara
@@ -38,6 +52,7 @@
Använd ett teckensnitt med fast breddVisa tangentbordet vid startVisa antal ord
+ Visa antal teckenJusteringVänsterCentrerad
@@ -47,40 +62,26 @@
Spara anteckningar automatisktAktivera radbrytningAnvänd tangentbordets inkognitoläge
- Move undone checklist items at the top
-
+ Flytta slutförda checklisteobjekt längst ned
+ Lägg till nya checklisteobjekt överstChecklista
+ ChecklistorLägg till ett nytt checklisteobjektLägg till nya checklisteobjektChecklistan är tom
-
+ Ta bort slutförda
+ Lägg till överst
- Exportera alla anteckningar som filer
- Importera flera filer som anteckningarImportera mapp
-
+ Exportera anteckningar
+ Importera
+ Importera (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Behöver du snabbt anteckna något att köpa, en adress eller en företagsidé? Då är det här appen som du har letat efter! Ingen komplicerad konfiguration behövs. Anteckningen sparas automatiskt så att dina ändringar inte tas bort av misstag. Du kan skapa flera oberoende anteckningar.
-
- Du kan komma åt anteckningen på nolltid genom att använda den anpassningsbara och justerbara widgeten, som öppnar appen när du trycker på den.
-
- Innehåller ingen reklam eller onödiga behörigheter. Den har helt öppen källkod och anpassningsbara färger.
-
- Denna app är bara en del av en större serie appar. Du hittar resten av dem på https://www.simplemobiletools.com
-
-
+ Hur ändrar jag färgen på widgetarna\?
+ Om du bara har 1 aktiv widget kan du antingen återskapa den eller använda knappen i appinställningarna för att anpassa den. Om du har flera aktiva widgetar är knappen i appinställningarna inte tillgänglig. Eftersom appen stöder färganpassning per widget måste du återskapa den widget som du vill anpassa.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-th/strings.xml b/app/src/main/res/values-th/strings.xml
new file mode 100644
index 000000000..a06d70501
--- /dev/null
+++ b/app/src/main/res/values-th/strings.xml
@@ -0,0 +1,87 @@
+
+
+ โน็ตแบบเรียบง่าย
+ โน้ต
+ ขอบคุณที่ใช้โน็ตแบบเรียบง่าย
+\nสำหรับแอปแบบเรียบง่ายอื่นๆโปรดไปที่ SimpleMobileTools.com.
+ ไม่สามารถแชร์ข้อความที่ว่างเปล่าได้
+ โน็ตแบบเรียบง่าย
+ เพิ่มโน็ตใหม่
+ โปรดตั้งชื่อโน็ตของคุณ
+ โน็ตในชื่อนั้นมีอยู่แล้ว
+ เปิดโน็ต
+ ลบโน็ต
+ คุณแน่ใจว่าคุณอยากจะลบ \"%s\"\?
+ เลือกโน็ต
+ เปลี่ยนชื่อโน็ต
+ โน็ตทั่วไป
+ สร้างโน็ตใหม่
+ เพิ่มไปที่โน็ต
+ คุณมีบางอย่างที่ไม่ได้บันทึก คุณอยากจะทำอะไรกับมัน\?
+ โน็ตที่แสดงในวิดเจ็ต:
+ แสดงชื่อของโน็ต
+ ชนิดของโน็ตใหม่:
+ โน็ตข้อความ
+ ล็อกโน็ต
+ ปลดล็อกโน็ต
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ ข้อมูลในโน็ตถูกล็อก
+ แสดงข้อมูล
+ คำเตือน: ถ้าคุณลืมรหัสผ่านของโน็ต คุณจะไม่สามารถกู้คืนหรือเข้าถึงโน็ตตัวนั้นได้อีกต่อไป
+ เพิ่มโน็ตข้อความใหม่
+ เพิ่มรายการตรวจสอบใหม่
+ The app cannot load files over the internet
+
+ เปิดไฟล์
+ ส่งออกเป็นไฟล์
+ ไฟล์ใหญ่เกิน จำกัดอยู่ 1 เมกะไบต์
+ สำหรับเอาไฟล์เข้าเท่านั้น
+\n(เปลี่ยนไฟล์จะไม่ส่งผลกับโน็ต)
+ อัปเดตไฟล์ของมันที่อัปเดตโน็ต
+\n(โน็ตจะถูกลบถ้าไฟล์ถูกลบหรือเปลี่ยนที่อยู่)
+ และลบไฟล์ \"%s\" ด้วย
+ โน็ต \"%s\" บันทึกสำเร็จ
+ โน็ต \"%s\" ส่งออกสำเร็จ
+ เอาข้อมูลในไฟล์ส่งออกเท่านั้น
+\n(เปลี่ยนโน็ตจะไม่ส่งผลกับไฟล์)
+
+ แสดงข้อความให้เห็นว่าบันทึกเรียบร้อย
+ ทำให้ลิงค์หรืออีเมล์กดเข้าได้
+ เอาเคอร์เซอร์ไว้ที่ท้ายสุดของโน็ต
+ ใช้ฟอนร์โมโนสเปสย์
+ แสดงคีย์บอร์ดเมื่อเปิดแอป
+ แสดงการนับคำ
+ แสดงการนับตัวอักษร
+ การจัดตำแหน่ง
+ ซ้าย
+ กลาง
+ ขวา
+ โน็ตที่ใช้ในวิดเจ็ต
+ แสดงที่เลือกโน็ตเมื่อเปิดแอป
+ บันทึกโน็ตอัตโนมัติ
+ เปิดการใช้การคลุมบรรทัด
+ ใช้คีย์บอร์ดในโหมดไม่ระบุตัวตน
+ ย้ายรายการตรวจสอบที่เรียบร้อยไปไว้ด้านล่าง
+ เพิ่มรายการตรวจสอบใหม่ไว้ด้านบน
+
+ รายการตรวจสอบ
+ รายการตรวจสอบ
+ เพิ่มรายการตรวจสอบใหม่
+ เพิ่มรายการตรวจสอบใหม่
+ รายการตรวจนั้นว่างเปล่า
+ ลบของที่เรียบร้อยแล้ว
+ Add to the top
+
+ เอาโฟลเดอร์เข้า
+ ส่งออกโน็ตทุกตัว
+ นำเข้าโน็ตทุกตัว
+ นำเข้าโน็ต (โปร)
+
+ เปลี่ยนสีวิดเจ็ตอย่างไร\?
+ ในกรณีที่คุณมีวิดเจ็ตตัวเดียว คุณสามารถสร้างใหม่ได้ หรือ ใช้ปุ่มในการตั้งค่าของแอปเพื่อตกแต่งมัน ถ้าคุณมีวิดเจ็ตหลายตัว ปุ่มในการตั้งค่าของแอปจะไม่มีอยู่ เพราะว่าแอปสนับสนุนการตกแต่งสีในแต่ละวิดเจ็ต คุณจะต้องสร้างวิดเจ็ตที่ต้องการใหม่เพื่อตกแต่ง
+
+
diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml
index 98f11d8b6..293dcfdd8 100644
--- a/app/src/main/res/values-tr/strings.xml
+++ b/app/src/main/res/values-tr/strings.xml
@@ -1,7 +1,9 @@
+
Basit NotlarNotlar
- Basit Notlar\'ı kullandığınız için teşekkürler.\nDaha fazla basit uygulamalar için lütfen SimpleMobileTools.com adresini ziyaret edin.
+ Basit Notlar\'ı kullandığınız için teşekkürler.
+\nDaha fazla basit uygulamalar için lütfen SimpleMobileTools.com adresini ziyaret edin.Boş metin paylaşılamazBasit NotYeni not ekle
@@ -9,28 +11,40 @@
Bu başlığa sahip bir not zaten mevcutNotu açNotu sil
- \"%s\" notunu silmek istediğinizden emin misiniz?
+ \"%s\" notunu silmek istediğinizden emin misiniz\?Not seçNotu yeniden adlandırGenel notYeni not oluşturNota ekle
- Kaydedilmemiş bazı değişiklikleriniz var. Onlarla ne yapmak istersiniz?
+ Kaydedilmemiş bazı değişiklikleriniz var. Onlarla ne yapmak istersiniz\?Widget\'ta gösterilen not:
+ Not başlığını gösterYeni not türü:Metin notu
-
+ Notu kilitle
+ Notun kilidini aç
+ Notların kilidini aç
+ Aşağıdaki notlar kilitli. Bunların kilidini tek tek açabilir veya dışa aktarmayı atlayabilirsiniz.
+ Notların içeriği kilitlendi.
+ İçeriği göster
+ UYARI: Notların parolasını unutursanız, onu kurtaramaz veya notların içeriğine artık erişemezsiniz.
+ Yeni metin notu
+ Yeni yapılacak listesi
+ Uygulama internet üzerinden dosya yükleyemiyorDosya açDosya olarak aktarDosya çok büyük, sınır 1MB
- Sadece dosya içeriğini içe aktar\n(dosyayı değiştirmek notu etkilemez)
- Not güncellenirken orijinal dosyayı da güncelle\n(dosya silinirse veya yol değişirse not silinir)
+ Yalnızca dosya içeriğini içe aktar
+\n(dosyayı değiştirmek notu etkilemez)
+ Not güncellenirken orijinal dosyayı da güncelle
+\n(dosya silinirse veya yol değişirse not silinir)\"%s\" dosyasını da sil\"%s\" notu başarıyla kaydedildi\"%s\" notu başarıyla dışa aktarıldı
- Sadece geçerli dosya içeriğini dışa aktar\n(notu değiştirmek dosyayı etkilemez)
-
+ Yalnızca geçerli dosya içeriğini dışa aktar
+\n(notu değiştirmek dosyayı etkilemez)Başarıyla kaydedildi mesajlarını görüntüleBağlantıları ve e-postaları tıklanabilir yap
@@ -38,6 +52,7 @@
Sabit genişlikli yazı tipi kullanBaşlangıçta klavyeyi gösterKelime sayısını göster
+ Karakter sayısını gösterHizalamaSolaOrtaya
@@ -47,40 +62,26 @@
Notları otomatik kaydetSözcük kaydırmayı etkinleştirKlavyelerin Gizli modunu kullan
- Move undone checklist items at the top
-
+ Tamamlanan yapılacak listesi ögelerini en alta taşı
+ Yeni yapılacak listesi ögelerini en üste taşıYapılacak listesi
- Yeni bir yapılacak listesi öğesi ekle
- Yeni yapılacak listesi öğeleri ekle
+ Yapılacak listeleri
+ Yeni bir yapılacak listesi ögesi ekle
+ Yeni yapılacak listesi ögeleri ekleYapılacak listesi boş
-
+ Tamamlanan ögeleri kaldır
+ Add to the top
- Tüm notları dosya olarak dışa aktar
- Birden çok dosyayı not olarak içe aktarKlasörü içe aktar
-
+ Notları dışa aktar
+ Notları içe aktar
+ Notları içe aktar (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Satın almanız gereken bir şey, adres veya aklınıza gelen bir fikir hakkında hızlı bir not almanız mı gerekti? O halde, aradığınız uygulama bu! Karmaşık kurulum adımları gerekmeden hemen notunuzu yazın. Otomatik kaydetme ile birlikte gelir, bu nedenle yanlışlıkla değişiklikleri kaybetmezsiniz. Birden fazla bağımsız not oluşturmayı destekler.
-
- Nota, tıklamayla açılan, özelleştirilebilir ve yeniden boyutlandırılabilir widget\'ı kullanarak anında erişebilirsiniz.
-
- Reklam veya gereksiz izinler içermez. Tamamen açık kaynaktır, özelleştirilebilir renkler sunar.
-
- Bu uygulama, daha büyük bir uygulama serisinden sadece bir parça. Geri kalanı https://www.simplemobiletools.com adresinde bulabilirsiniz
-
-
+ Widget rengini nasıl değiştirebilirim\?
+ Yalnızca 1 etkin widget\'ınız varsa, yeniden oluşturabilir veya özelleştirmek için uygulama ayarlarındaki düğmeyi kullanabilirsiniz. Birden fazla etkin widget\'ınız varsa, uygulama ayarlarındaki düğme kullanılamaz. Uygulama, widget başına renk özelleştirmeyi desteklediğinden, özelleştirmek istediğiniz widget\'ı yeniden oluşturmanız gerekir.
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml
index 3c1bc51ee..7327d4a4f 100644
--- a/app/src/main/res/values-uk/strings.xml
+++ b/app/src/main/res/values-uk/strings.xml
@@ -1,7 +1,9 @@
+
Простий НотатникНотатник
- Дякуємо, що користуєтесь Простим Нотатником.\nБільше простих додатків знайдете на SimpleMobileTools.com.
+ Дякуємо, що користуєтесь Простим Notes.
+\nБільше простих застосунків знайдете на SimpleMobileTools.com.Не можна поділитися пустою нотаткоюПроста нотаткаДодати нову нотатку
@@ -9,35 +11,48 @@
Нотатка з таким ім\'ям вже існуєВідкрити нотаткуВидалити нотатку
- Ви впевнені, що бажаєте видалити нотатку \"%s\"?
+ Ви впевнені, що хочете видалити нотатку \"%s\"\?Оберіть нотаткуПерейменуйте нотаткуЗвичайна нотаткаСтворити нову нотаткуДодати до нотатки
- Ви внесли деякі зміни. Що ви бажаєте з ними зробити?
+ Ви внесли деякі зміни. Що ви бажаєте з ними зробити\?Нотатка, що показується у віджеті:
+ Показувати назву нотаткиНовий тип нотаток:Текст нотатки
-
+ Заблокувати нотатку
+ Розблокувати нотатку
+ Розблокувати нотатки
+ Наступні нотатки заблоковано. Ви можете розблокувати їх по черзі або пропустити експорт.
+ Вміст нотатки заблоковано.
+ Показати нотатку
+ ЗАСТЕРЕЖЕННЯ: Якщо ви забудете пароль, то більше не зможете його відновити або отримати доступ до вмісту нотаток.
+ Нова текстова нотатка
+ Новий список
+ Застосунок не може завантажувати файли через ІнтернетВідкрити файлЕкспортувати як файл
- Файл надто великого розміру, ліміт складає 1MB
- Імпортувати лише вміст файлу\n(зміна файлу не змінить нотатку)
- Оновлювати вміст файлу при оновленні нотатки\n(нотатку буде видалено, якщо буде видалено файл або зміниться його розташування)
+ Файл надто великий, ліміт 1MB
+ Імпортувати лише вміст файлу
+\n(зміна файлу не змінить нотатку)
+ Оновлювати вміст файлу при оновленні нотатки
+\n(нотатку буде видалено, якщо буде видалено файл або зміниться його розташування)Також видалити файл \"%s\"Нотатка \"%s\" успішно збереженаНотатка \"%s\" успішно експортована
- Експортувати лише поточний вміст файлу\n(зміна нотатки не вплине на файл)
-
+ Експортувати лише поточний вміст файлу
+\n(зміна нотатки не вплине на файл)Повідомляти, що файл успішно збереженоЗробити активними посилання та адреси електронної пошти
- Поміщати курсор вкінці нотатки
+ Розташувати курсор в кінці нотаткиВикористовувати шрифт в один відступПоказувати клавіатуру при запускуРахувати слова
+ Рахувати знакиВирівнюванняЗліваЦентрувати
@@ -47,38 +62,24 @@
Автозбереження нотатокПродовжувати друк з нового рядкаВикористовувати режим Приватності в клавіатурі
- Move undone checklist items at the top
-
+ Поміщати виконані позиції в кінець списку
+ Додавати нові елементи на початку спискуСписок
+ СпискиДодати нову позицію у спискуДодати нові позиції у спискуСписок порожній
-
+ Вилучати виконані позиції
+ Додати вгорі
- Експортувати всі нотатки як файли
- Імпортувати файли як нотаткиІмпортувати теку
-
+ Експортувати нотатки
+ Імпортувати нотатки
+ Імпорт нотаток (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Потрібно швидко занотувати список покупок, адресу чи ідею для стартапу? Тоді це є додаток, який ви шукали! Без складних налаштувань, просто нотуйте те, що потрібно. Вбудована функція автозбереження, що завадить вам помилково скасувати зміни. Підтримує створення багатьох незалежних нотаток.
-
- Ви можете швидко прочитати нотатку з допомогою змінного віджета, який відкриває додаток одним натиском.
-
- Цей додаток не буде показувати рекламу, потрібні лише найнеобхідніші дозволи. Додаток має повністю відкритий програмний код, кольори оформлення можна легко налаштувати.
-
- Простий Нотатник є лише одним із ряду додатків від Simple Mobile Tools. Ви знайдете інші за адресою https://www.simplemobiletools.com
-
-
+ Як я можу змінити колір віджетів\?
+ Якщо у вас тільки 1 активний віджет, ви можете або відворити його знову, або використовувати кнопку в налаштуваннях програми. Якщо у вас декілька активних віджетів, кнопка в налаштуваннях буде недоступна. Оскільки додаток підтримує налаштування кольору для кожного віджета, вам доведеться відтворити віджет, який ви хочете налаштувати.
+ Mở tệp
+ Xuất dưới dạng tệp
+ Tệp quá lớn, giới hạn là 1MB
+ Chỉ nhập nội dung tệp \n (việc thay đổi tệp sẽ không ảnh hưởng đến ghi chú)
+ Cập nhật chính tệp khi cập nhật ghi chú \n (ghi chú sẽ bị xóa nếu tệp bị xóa hoặc thay đổi đường dẫn)
+ Đồng thời xóa tệp \"%s\"
+ Ghi chú \"%s\" thành công
+ Xuất ghi chú \"%s\" thành công
+ Chỉ xuất nội dung tệp hiện tại \n (việc thay đổi ghi chú sẽ không ảnh hưởng đến tệp)
+
+
+ Hiển thị thông báo lưu thành công
+ Làm cho các liên kết và email có thể nhấp được
+ Đặt con trỏ đến cuối ghi chú
+ Sử dụng phông chữ monospaced
+ Hiển thị bàn phím khi khởi động
+ Hiển thị số lượng từ
+ Hiển thị số lượng ký tự
+ Căn chỉnh
+ Left
+ Trung tâm
+ Đúng
+ Ghi chú được sử dụng trong widget
+ Hiển thị bộ chọn ghi chú khi khởi động
+ Tự động lưu ghi chú
+ Bật gói dòng
+ Sử dụng chế độ Ẩn danh của bàn phím
+ Di chuyển các mục trong danh sách kiểm tra đã hoàn thành xuống dưới cùng
+ Thêm các mục mới trong danh sách kiểm tra ở trên cùng
+
+
+ Danh sách kiểm tra
+ Danh sách kiểm tra
+ Thêm một mục mới trong danh sách kiểm tra
+ Thêm các mục mới trong danh sách kiểm tra
+ Danh sách kiểm tra trống
+ Xóa các mục đã hoàn thành
+ Add to the top
+
+
+ Nhập thư mục
+ Xuất tất cả các ghi chú
+ Nhập ghi chú
+ Nhập ghi chú (Bản trả phí)
+
+
+ Làm cách nào để thay đổi màu tiện ích?
+ Trong trường hợp bạn chỉ có 1 tiện ích con đang hoạt động, bạn có thể tạo lại nó hoặc sử dụng nút trong cài đặt ứng dụng để tùy chỉnh nó. Nếu bạn có nhiều tiện ích con đang hoạt động, nút trong cài đặt ứng dụng sẽ không khả dụng. Vì ứng dụng hỗ trợ tùy chỉnh màu sắc cho mỗi tiện ích, bạn sẽ phải tạo lại tiện ích mà bạn muốn tùy chỉnh.
+
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 4e53d22e1..8beab631d 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -1,36 +1,50 @@
+
- 简约笔记
+ 简单笔记笔记
- 谢谢使用简约笔记.\n想要获取更多的简约app,您可以访问这个SimpleMobileTools.com.
- 没有内容不能分享M
- 简约笔记
+ 谢谢使用简单笔记.
+\n想要获取更多的简单应用程序,您可以访问这个 SimpleMobileTools.com 。
+ 没有内容不能分享
+ 简单笔记添加一个新的笔记请提供笔记名字笔记的标题已经存在打开笔记删除笔记
- 您确定要删除这个笔记吗\"%s\"?
+ 确定删除笔记\"%s\"吗?选择一个笔记重命名笔记一般笔记创建一个新的笔记添加到笔记
- You have some unsaved changes. What do you want to do with them?
- Note shown in the widget:
- New note type:
- Text note
-
+ 您有未保存的更改。您对此想如何操作呢?
+ 小工具中显示的笔记:
+ 显示笔记标题
+ 新笔记类型:
+ 文本笔记
+ 锁定笔记
+ 解锁笔记
+ 解锁笔记
+ 下列笔记被锁定。你可以逐一解锁或不导出它们。
+ 笔记的内容被锁定。
+ 显示内容
+ 警告:如果您忘记了笔记的密码,您将无法恢复或访问笔记的内容。
+ 新建文本笔记
+ 新建清单
+ 此应用无法通过互联网加载文件打开文件以文件的形式导出
- 文件太大了, 限制只有1MB
- 只要导入文件的内容\n(改变文件不会影响笔记)
- 在更新笔记的时侯更新文件本身\n(注意,如果文件被删除或路径更改,将被删除)
+ 文件太大了, 上限为 1MB
+ 只要导入文件的内容
+\n(改变文件不会影响笔记)
+ 在更新笔记的时侯更新文件本身
+\n(注意,如果文件被删除或路径更改,将被删除)同时删除文件 \"%s\"
- 笔记 \"%s\" 保存成功
- 笔记 \"%s\" 导出成功
- Only export the current file content\n(changing the note will not affect the file)
-
+ 已成功保存笔记 \"%s\"
+ 已成功导出笔记 \"%s\"
+ 只导出当前文件内容
+\n(更改笔记将不会影响文件)显示保存成功消息使链接和电子邮件可点击
@@ -38,49 +52,36 @@
使用等宽字体在启动时显示键盘显示字数
+ 显示字符计数对准左边中间右边在小部件中使用笔记
- Show a note picker on startup
- Autosave notes
- Enable line wrap
- Use Incognito mode of keyboards
- Move undone checklist items at the top
-
+ 在启动时显示笔记选择器
+ 自动保存笔记
+ 启用行折叠
+ 对于键盘使用隐私模式
+ 移动未完成的清单至顶端
+ 在顶部添加新的清单项目
- Checklist
- Add a new checklist item
- Add new checklist items
- The checklist is empty
-
+ 清单
+ 清单
+ 添加一个新的清单项目
+ 添加新的清单项目
+ 清单为空
+ 删除完成的项目
+ Add to the top
- Export all notes as files
- Import multiple files as notes
- Import folder
-
+ 导入文件夹
+ 导出笔记
+ 导入笔记
+ 导入笔记 (Pro)
- How can I change the widgets color?
- In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Need to take a quick note of something to buy, an address, or a startup idea? Then this is the app you\'ve been looking for! No complicated setup steps needed, just type in what you came for. Comes with autosave, so you will not discard your changes by mistake. Supports creating multiple independent notes.
-
- You can access the note in no time by using the customizable and resizable widget, which opens the app on click.
-
- Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
-
- This app is just one piece of a bigger series of apps. You can find the rest of them at https://www.simplemobiletools.com
-
-
+ 我如何更改小工具颜色?
+ 如果您仅用一个活动的小工具,您既可以重新创建它,或者使用应用程序设定的按钮来自定义它。如果您拥有多个活动的小工具,应用程序设定中的按钮将不可用。因为应用程序支持小工具分别自定义,您必须要重新创建小工具来自定义它们。
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index 54516fb4a..50d303b18 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -1,7 +1,9 @@
+
簡易筆記簡易筆記
- 感謝您使用簡易筆記\n更多[簡易]系列應用程式請拜訪 SimpleMobileTools.com
+ 感謝您使用簡易筆記。
+\n歡迎造訪 SimpleMobileTools.com 了解更多簡易 app。無法分享空白內容簡易筆記新增筆記
@@ -9,35 +11,48 @@
已經存在這標題的筆記打開筆記刪除筆記
- 你確定要刪除筆記 \"%s\"嗎?
+ 確定要刪除筆記「%s」嗎?選擇筆記重新命名筆記一般筆記建立新筆記添加到筆記
- 你有一些尚未儲存的變更。你想對他們怎麼處理?
+ 你有一些尚未儲存的變更。你想對他們怎麼處理\?在小工具顯示的筆記:
+ 顯示筆記標題新筆記類型:文字筆記
-
+ Lock note
+ 解鎖筆記
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ 筆記的內容已被鎖定。
+ Show content
+ 警告:如果您遺忘了筆記的密碼,您將無法找回它或再次存取筆記的內容。
+ 新文字筆記
+ New checklist
+ The app cannot load files over the internet打開檔案匯出成檔案
- 檔案太大,上限1MB
- 僅匯入檔案內容\n(檔案變更不影響筆記)
- 更新筆記時也更新檔案本身\n(如果檔案被刪除或變更路徑,筆記將被刪除)
+ 檔案太大,上限為 1MB
+ 僅匯入檔案內容
+\n(檔案變更不影響筆記)
+ 更新筆記時也更新檔案本身
+\n(如果檔案被刪除或變更路徑,筆記將被刪除)也刪除檔案 \"%s\"
- 筆記 \"%s\" 儲存成功
- 筆記 \"%s\" 匯出成功
- 只匯出目前的檔案內容\n(修改筆記不影響檔案)
-
+ 筆記「%s」儲存成功
+ 筆記「%s」匯出成功
+ 只匯出目前的檔案內容
+\n(修改筆記不影響檔案)顯示儲存成功的訊息使連結和信箱可點擊
- 將游標放置於筆記尾端
+ 將游標置於筆記末尾使用等寬字體啟動時顯示鍵盤顯示字數
+ 顯示字元數統計對齊靠左置中
@@ -47,40 +62,26 @@
自動儲存筆記自動換行使用無痕模式的鍵盤
- 將未完成的核對清單項目移動至頂端
-
+ 將未完成的核對清單項目移動至頂端
+ Add new checklist items at the top核對清單
+ Checklists新增新的核對清單項目新增新的核對清單項目核對清單為空白
-
+ 移除已完成的項目
+ Add to the top
- 將全部筆記匯出成檔案
- 將多個檔案匯入成筆記匯入資料夾
-
+ 匯出筆記
+ Import notes
+ Import notes (Pro)
- 我如何變更小工具的顏色?
+ 要怎麼變更小工具的顏色?要是你只有1個現行的小工具,你可以重新建立,或者使用程式設定中的按鈕來自訂。如果你有多個現行的小工具,程式設定中的按鈕會沒作用。你必須將想要自訂的小工具重新建立,如此一來程式便能支援每個小工具自訂顏色。
-
-
-
- 簡易筆記 Pro - 輕鬆建立便利的筆記
-
- 一個美觀又快速記筆記的應用程式,而且沒有廣告或奇怪權限。
-
- 需要快速記下得購買的東西、地址或創業點子?那麼這就是你一直在尋找的程式!不需要繁複的設定步驟,把你目的寫下就可以了。隨著自動儲存,你不會不小心失去你的修改。支援建立多個獨立的筆記。
-
- 使用可自訂及調整大小的小工具,你能夠隨即查看筆記,並且點擊就可以開啟程式。
-
- 不包含廣告及非必要的權限,而且完全開放原始碼,並提供自訂顏色。
-
- 這程式只是一系列眾多應用程式的其中一項,你可以在這發現更多 https://www.simplemobiletools.com
-
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index 25bc7b5d3..f31c0889c 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -1,3 +1,9 @@
- 64dp
+ 56dp
+ 150dp
+ 150dp
+ 500dp
+ 200dp
+ 76dp
+ 56dp
diff --git a/app/src/main/res/values/donottranslate.xml b/app/src/main/res/values/donottranslate.xml
index a1909d47f..00f747611 100644
--- a/app/src/main/res/values/donottranslate.xml
+++ b/app/src/main/res/values/donottranslate.xml
@@ -3,6 +3,8 @@
com.simplemobiletools.notes.pro
+ Allow changing checklist item sorting
+ Notes linked to files have been reset, please set them up again
Allow reordering checklist items by dragging, once selection mode by long pressing is activated\n
Added a new settings item for moving undone checklist items at the top automatically
diff --git a/app/src/main/res/values/integers.xml b/app/src/main/res/values/integers.xml
new file mode 100644
index 000000000..272ad8bd3
--- /dev/null
+++ b/app/src/main/res/values/integers.xml
@@ -0,0 +1,3 @@
+
+ 2048
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 05d499889..56b5021eb 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,3 +1,4 @@
+
Simple NotesNotes
@@ -17,8 +18,19 @@
Add to noteYou have some unsaved changes. What do you want to do with them?Note shown in the widget:
+ Show note titleNew note type:Text note
+ Lock note
+ Unlock note
+ Unlock notes
+ The following notes are locked. You can either unlock them one by one or skip exporting them.
+ The notes\' content is locked.
+ Show content
+ WARNING: If you forget the notes\' password, you won\'t be able to recover it or access the notes\' content anymore.
+ New text note
+ New checklist
+ The app cannot load files over the internetOpen file
@@ -38,6 +50,7 @@
Use monospaced fontShow keyboard on startupShow word count
+ Show character countAlignmentLeftCenter
@@ -47,38 +60,27 @@
Autosave notesEnable line wrapUse Incognito mode of keyboards
- Move undone checklist items at the top
+ Move done checklist items to the bottom
+ Add new checklist items at the topChecklist
+ ChecklistsAdd a new checklist itemAdd new checklist itemsThe checklist is empty
+ Remove done items
+ Add to the top
- Export all notes as files
- Import multiple files as notesImport folder
+ Export notes
+ Import notes
+ Import notes (Pro)How can I change the widgets color?In case you have only 1 active widget, you can either recreate it, or use the button in the app settings for customizing it. If you have multiple active widgets, the button in the app settings will not be available. As the app supports color customization per-widget, you will have to recreate the widget that you want to customize.
-
-
-
- Simple Notes Pro - Create handy notes easily
-
- A beautiful quick note taking app without ads or weird permissions.
-
- Need to take a quick note of something to buy, an address, or a startup idea? Then this is the app you\'ve been looking for! No complicated setup steps needed, just type in what you came for. Comes with autosave, so you will not discard your changes by mistake. Supports creating multiple independent notes.
-
- You can access the note in no time by using the customizable and resizable widget, which opens the app on click.
-
- Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
-
- This app is just one piece of a bigger series of apps. You can find the rest of them at https://www.simplemobiletools.com
-
-