remove the cursor extensions

This commit is contained in:
tibbi 2017-01-06 20:00:10 +01:00
parent ca16d12112
commit 0932fb3816
5 changed files with 3 additions and 12 deletions

View File

@ -5,9 +5,9 @@ import android.content.Context
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import com.simplemobiletools.commons.extensions.getIntValue
import com.simplemobiletools.commons.extensions.getStringValue
import com.simplemobiletools.notes.R
import com.simplemobiletools.notes.extensions.getIntValue
import com.simplemobiletools.notes.extensions.getStringValue
import com.simplemobiletools.notes.helpers.TYPE_NOTE
import com.simplemobiletools.notes.models.Note
import java.util.*

View File

@ -1,7 +0,0 @@
package com.simplemobiletools.notes.extensions
import android.database.Cursor
fun Cursor.getStringValue(key: String) = getString(getColumnIndex(key))
fun Cursor.getIntValue(key: String) = getInt(getColumnIndex(key))

View File

@ -9,12 +9,12 @@ import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import com.simplemobiletools.commons.extensions.value
import com.simplemobiletools.notes.helpers.NOTE_ID
import com.simplemobiletools.notes.R
import com.simplemobiletools.notes.databases.DBHelper
import com.simplemobiletools.notes.extensions.getTextGravity
import com.simplemobiletools.notes.extensions.getTextSize
import com.simplemobiletools.notes.extensions.updateWidget
import com.simplemobiletools.notes.helpers.NOTE_ID
import com.simplemobiletools.notes.models.Note
import kotlinx.android.synthetic.main.fragment_note.view.*

View File

@ -2,7 +2,6 @@ package com.simplemobiletools.notes.helpers
import android.content.Context
import com.simplemobiletools.commons.helpers.BaseConfig
import com.simplemobiletools.notes.*
class Config(context: Context) : BaseConfig(context) {
companion object {

View File

@ -1,6 +1,5 @@
package com.simplemobiletools.notes.helpers
val TEXT = "text"
val NOTE_ID = "note_id"
// shared preferences