diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt index 73160e42..f8900915 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt @@ -11,6 +11,8 @@ import android.view.Menu import android.view.MenuItem import android.view.View import android.view.inputmethod.InputMethodManager +import com.simplemobiletools.filepicker.extensions.toast +import com.simplemobiletools.filepicker.extensions.value import com.simplemobiletools.notes.MyWidgetProvider import com.simplemobiletools.notes.R import com.simplemobiletools.notes.TYPE_NOTE @@ -19,8 +21,6 @@ import com.simplemobiletools.notes.databases.DBHelper import com.simplemobiletools.notes.dialogs.NewNoteDialog import com.simplemobiletools.notes.dialogs.OpenNoteDialog import com.simplemobiletools.notes.dialogs.WidgetNoteDialog -import com.simplemobiletools.notes.extensions.toast -import com.simplemobiletools.notes.extensions.value import com.simplemobiletools.notes.models.Note import kotlinx.android.synthetic.main.activity_main.* diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/NewNoteDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/NewNoteDialog.kt index d7745f8b..1bad82f5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/NewNoteDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/NewNoteDialog.kt @@ -3,10 +3,10 @@ package com.simplemobiletools.notes.dialogs import android.app.Activity import android.app.AlertDialog import android.view.WindowManager +import com.simplemobiletools.filepicker.extensions.toast +import com.simplemobiletools.filepicker.extensions.value import com.simplemobiletools.notes.R import com.simplemobiletools.notes.databases.DBHelper -import com.simplemobiletools.notes.extensions.toast -import com.simplemobiletools.notes.extensions.value import kotlinx.android.synthetic.main.new_note.view.* class NewNoteDialog(val activity: Activity, val db: DBHelper, callback: (title: String) -> Unit) { diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/extensions/context.kt b/app/src/main/kotlin/com/simplemobiletools/notes/extensions/context.kt deleted file mode 100644 index 40761ec9..00000000 --- a/app/src/main/kotlin/com/simplemobiletools/notes/extensions/context.kt +++ /dev/null @@ -1,6 +0,0 @@ -package com.simplemobiletools.notes.extensions - -import android.content.Context -import android.widget.Toast - -fun Context.toast(id: Int) = Toast.makeText(this, id, Toast.LENGTH_SHORT).show() diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/extensions/editText.kt b/app/src/main/kotlin/com/simplemobiletools/notes/extensions/editText.kt deleted file mode 100644 index 79081004..00000000 --- a/app/src/main/kotlin/com/simplemobiletools/notes/extensions/editText.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.simplemobiletools.notes.extensions - -import android.widget.EditText - -val EditText.value: String get() = text.toString().trim()