replace custom extension functions with the filepickers ones

This commit is contained in:
tibbi 2016-11-21 20:39:56 +01:00
parent 2567680dac
commit fb003eaee9
4 changed files with 4 additions and 15 deletions

View File

@ -11,6 +11,8 @@ import android.view.Menu
import android.view.MenuItem import android.view.MenuItem
import android.view.View import android.view.View
import android.view.inputmethod.InputMethodManager 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.MyWidgetProvider
import com.simplemobiletools.notes.R import com.simplemobiletools.notes.R
import com.simplemobiletools.notes.TYPE_NOTE 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.NewNoteDialog
import com.simplemobiletools.notes.dialogs.OpenNoteDialog import com.simplemobiletools.notes.dialogs.OpenNoteDialog
import com.simplemobiletools.notes.dialogs.WidgetNoteDialog 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 com.simplemobiletools.notes.models.Note
import kotlinx.android.synthetic.main.activity_main.* import kotlinx.android.synthetic.main.activity_main.*

View File

@ -3,10 +3,10 @@ package com.simplemobiletools.notes.dialogs
import android.app.Activity import android.app.Activity
import android.app.AlertDialog import android.app.AlertDialog
import android.view.WindowManager 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.R
import com.simplemobiletools.notes.databases.DBHelper 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.* import kotlinx.android.synthetic.main.new_note.view.*
class NewNoteDialog(val activity: Activity, val db: DBHelper, callback: (title: String) -> Unit) { class NewNoteDialog(val activity: Activity, val db: DBHelper, callback: (title: String) -> Unit) {

View File

@ -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()

View File

@ -1,5 +0,0 @@
package com.simplemobiletools.notes.extensions
import android.widget.EditText
val EditText.value: String get() = text.toString().trim()