@@ -20,10 +20,7 @@ import android.webkit.WebView
20
20
import android.webkit.WebViewClient
21
21
import android.widget.ImageView
22
22
import android.widget.TextView
23
- import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
24
- import com.simplemobiletools.commons.dialogs.FilePickerDialog
25
- import com.simplemobiletools.commons.dialogs.RadioGroupDialog
26
- import com.simplemobiletools.commons.dialogs.SecurityDialog
23
+ import com.simplemobiletools.commons.dialogs.*
27
24
import com.simplemobiletools.commons.extensions.*
28
25
import com.simplemobiletools.commons.helpers.*
29
26
import com.simplemobiletools.commons.models.FAQItem
@@ -1065,12 +1062,14 @@ class MainActivity : SimpleActivity() {
1065
1062
}
1066
1063
1067
1064
private fun lockNote () {
1068
- SecurityDialog (this , " " , SHOW_ALL_TABS ) { hash, type, success ->
1069
- if (success) {
1070
- mCurrentNote.protectionHash = hash
1071
- mCurrentNote.protectionType = type
1072
- NotesHelper (this ).insertOrUpdateNote(mCurrentNote) {
1073
- invalidateOptionsMenu()
1065
+ ConfirmationDialog (this , " " , R .string.locking_warning, R .string.ok, R .string.cancel) {
1066
+ SecurityDialog (this , " " , SHOW_ALL_TABS ) { hash, type, success ->
1067
+ if (success) {
1068
+ mCurrentNote.protectionHash = hash
1069
+ mCurrentNote.protectionType = type
1070
+ NotesHelper (this ).insertOrUpdateNote(mCurrentNote) {
1071
+ invalidateOptionsMenu()
1072
+ }
1074
1073
}
1075
1074
}
1076
1075
}
0 commit comments