diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/activities/SettingsActivity.kt
index dc52087b..84b7ff91 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/activities/SettingsActivity.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/activities/SettingsActivity.kt
@@ -22,6 +22,7 @@ class SettingsActivity : SimpleActivity() {
super.onResume()
setupCustomizeColors()
+ setupClickableLinks()
setupFontSize()
setupWidgetNote()
setupGravity()
@@ -34,6 +35,14 @@ class SettingsActivity : SimpleActivity() {
}
}
+ private fun setupClickableLinks() {
+ settings_clickable_links.isChecked = config.clickableLinks
+ settings_clickable_links_holder.setOnClickListener {
+ settings_clickable_links.toggle()
+ config.clickableLinks = settings_clickable_links.isChecked
+ }
+ }
+
private fun setupFontSize() {
settings_font_size.setSelection(config.fontSize)
settings_font_size.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/notes/helpers/Config.kt
index dad0a627..1e4c0080 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/helpers/Config.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/helpers/Config.kt
@@ -8,6 +8,10 @@ class Config(context: Context) : BaseConfig(context) {
fun newInstance(context: Context) = Config(context)
}
+ var clickableLinks: Boolean
+ get() = prefs.getBoolean(CLICKABLE_LINKS, false)
+ set(clickableLinks) = prefs.edit().putBoolean(CLICKABLE_LINKS, clickableLinks).apply()
+
var fontSize: Int
get() = prefs.getInt(FONT_SIZE, FONT_SIZE_MEDIUM)
set(size) = prefs.edit().putInt(FONT_SIZE, size).apply()
diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/notes/helpers/Constants.kt
index b51b6693..9a9a4c18 100644
--- a/app/src/main/kotlin/com/simplemobiletools/notes/helpers/Constants.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/notes/helpers/Constants.kt
@@ -4,6 +4,7 @@ val NOTE_ID = "note_id"
// shared preferences
val CURRENT_NOTE_ID = "current_note_id"
+val CLICKABLE_LINKS = "clickable_links"
val WIDGET_NOTE_ID = "widget_note_id"
val FONT_SIZE = "font_size"
val GRAVITY = "gravity"
diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml
index 26252885..94822105 100644
--- a/app/src/main/res/layout/activity_settings.xml
+++ b/app/src/main/res/layout/activity_settings.xml
@@ -30,6 +30,26 @@
+
+
+
+
+
+
Widget Notiz
+ Make links and emails clickable
Schriftgröße
Klein
Normal
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 32e27434..e84bec95 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -17,6 +17,7 @@
Tamaño de fuente
+ Make links and emails clickable
Nota del widget
Pequeña
Normal
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 6fafbec7..64959212 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -17,6 +17,7 @@
Note utilisée dans le widget
+ Make links and emails clickable
Taille de la police de la note
Petite
Normale
diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml
index 274ded13..d90cfcc1 100644
--- a/app/src/main/res/values-hu/strings.xml
+++ b/app/src/main/res/values-hu/strings.xml
@@ -17,6 +17,7 @@
A widget-ben használt jegyzet
+ Make links and emails clickable
Betűméret
Kis
Átlagos
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index 300c721e..5e306969 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -17,6 +17,7 @@
Note font size
+ Make links and emails clickable
Note used in widget
Small
Normal
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index a76ed89a..80446918 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -17,6 +17,7 @@
メモのフォントサイズ
+ Make links and emails clickable
ウィジェットで使用するメモ
小
通常
diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml
index 399860b9..c77e462f 100644
--- a/app/src/main/res/values-pt-rPT/strings.xml
+++ b/app/src/main/res/values-pt-rPT/strings.xml
@@ -17,6 +17,7 @@
Tamanho do texto da nota
+ Make links and emails clickable
Nota utilizada no widget
Pequeno
Normal
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index 1753351b..ed1272ae 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -17,6 +17,7 @@
Note font size
+ Make links and emails clickable
Note used in widget
Small
Normal
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 566c3193..4809b9e6 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -17,6 +17,7 @@
Note used in widget
+ Make links and emails clickable
Note font size
Small
Normal