Skip to content

Commit f4b0a0e

Browse files
committed
moving a couple files in Helpers folder
1 parent 83a99eb commit f4b0a0e

File tree

12 files changed

+19
-12
lines changed

12 files changed

+19
-12
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
android:parentActivityName=".activities.MainActivity"/>
5050

5151
<receiver
52-
android:name=".MyWidgetProvider"
52+
android:name=".helpers.MyWidgetProvider"
5353
android:icon="@drawable/img_widget_preview">
5454
<intent-filter>
5555
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>

app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
1616
import com.simplemobiletools.commons.helpers.LICENSE_STETHO
1717
import com.simplemobiletools.notes.BuildConfig
1818
import com.simplemobiletools.notes.R
19-
import com.simplemobiletools.notes.TYPE_NOTE
19+
import com.simplemobiletools.notes.helpers.TYPE_NOTE
2020
import com.simplemobiletools.notes.adapters.NotesPagerAdapter
2121
import com.simplemobiletools.notes.databases.DBHelper
2222
import com.simplemobiletools.notes.dialogs.NewNoteDialog

app/src/main/kotlin/com/simplemobiletools/notes/activities/SimpleActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.simplemobiletools.notes.activities
22

33
import android.os.Bundle
44
import com.simplemobiletools.commons.activities.BaseSimpleActivity
5-
import com.simplemobiletools.notes.Config
5+
import com.simplemobiletools.notes.helpers.Config
66

77
open class SimpleActivity : BaseSimpleActivity() {
88
lateinit var config: Config

app/src/main/kotlin/com/simplemobiletools/notes/activities/WidgetConfigureActivity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import android.widget.RemoteViews
1212
import android.widget.SeekBar
1313
import com.simplemobiletools.notes.*
1414
import com.simplemobiletools.notes.extensions.getTextSize
15+
import com.simplemobiletools.notes.helpers.MyWidgetProvider
16+
import com.simplemobiletools.notes.helpers.PREFS_KEY
17+
import com.simplemobiletools.notes.helpers.WIDGET_BG_COLOR
18+
import com.simplemobiletools.notes.helpers.WIDGET_TEXT_COLOR
1519
import kotlinx.android.synthetic.main.widget_config.*
1620
import yuku.ambilwarna.AmbilWarnaDialog
1721

app/src/main/kotlin/com/simplemobiletools/notes/adapters/NotesPagerAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import android.support.v4.app.Fragment
55
import android.support.v4.app.FragmentManager
66
import android.support.v4.app.FragmentStatePagerAdapter
77
import android.util.SparseArray
8-
import com.simplemobiletools.notes.NOTE_ID
8+
import com.simplemobiletools.notes.helpers.NOTE_ID
99
import com.simplemobiletools.notes.fragments.NoteFragment
1010
import com.simplemobiletools.notes.models.Note
1111

app/src/main/kotlin/com/simplemobiletools/notes/databases/DBHelper.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import android.content.Context
55
import android.database.Cursor
66
import android.database.sqlite.SQLiteDatabase
77
import android.database.sqlite.SQLiteOpenHelper
8-
import com.simplemobiletools.notes.PREFS_KEY
8+
import com.simplemobiletools.notes.helpers.PREFS_KEY
99
import com.simplemobiletools.notes.R
10-
import com.simplemobiletools.notes.TEXT
11-
import com.simplemobiletools.notes.TYPE_NOTE
10+
import com.simplemobiletools.notes.helpers.TEXT
11+
import com.simplemobiletools.notes.helpers.TYPE_NOTE
1212
import com.simplemobiletools.notes.extensions.getIntValue
1313
import com.simplemobiletools.notes.extensions.getStringValue
1414
import com.simplemobiletools.notes.models.Note

app/src/main/kotlin/com/simplemobiletools/notes/dialogs/OpenNoteDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import android.app.AlertDialog
55
import android.view.ViewGroup
66
import android.widget.RadioButton
77
import android.widget.RadioGroup
8-
import com.simplemobiletools.notes.Config
8+
import com.simplemobiletools.notes.helpers.Config
99
import com.simplemobiletools.notes.R
1010
import com.simplemobiletools.notes.databases.DBHelper
1111
import kotlinx.android.synthetic.main.dialog_radio_group.view.*

app/src/main/kotlin/com/simplemobiletools/notes/extensions/Context.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import android.content.Context
66
import android.content.Intent
77
import android.view.Gravity
88
import com.simplemobiletools.notes.*
9+
import com.simplemobiletools.notes.helpers.*
910

1011
fun Context.getTextSize() =
1112
when (Config.newInstance(this).fontSize) {

app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import android.view.View
99
import android.view.ViewGroup
1010
import android.view.inputmethod.InputMethodManager
1111
import com.simplemobiletools.commons.extensions.value
12-
import com.simplemobiletools.notes.NOTE_ID
12+
import com.simplemobiletools.notes.helpers.NOTE_ID
1313
import com.simplemobiletools.notes.R
1414
import com.simplemobiletools.notes.databases.DBHelper
1515
import com.simplemobiletools.notes.extensions.getTextGravity

app/src/main/kotlin/com/simplemobiletools/notes/Config.kt renamed to app/src/main/kotlin/com/simplemobiletools/notes/helpers/Config.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
package com.simplemobiletools.notes
1+
package com.simplemobiletools.notes.helpers
22

33
import android.content.Context
44
import com.simplemobiletools.commons.helpers.BaseConfig
5+
import com.simplemobiletools.notes.*
56

67
class Config(context: Context) : BaseConfig(context) {
78
companion object {

0 commit comments

Comments
 (0)