Skip to content

Commit bf86fde

Browse files
committed
update commons to 2.3.8
1 parent 67ef104 commit bf86fde

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ android {
3232
}
3333

3434
dependencies {
35-
compile 'com.simplemobiletools:commons:2.1.9'
35+
compile 'com.simplemobiletools:commons:2.3.8'
3636
compile 'com.facebook.stetho:stetho:1.4.1'
3737
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
3838
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import com.simplemobiletools.commons.extensions.checkWhatsNew
1313
import com.simplemobiletools.commons.extensions.toast
1414
import com.simplemobiletools.commons.extensions.updateTextColors
1515
import com.simplemobiletools.commons.extensions.value
16-
import com.simplemobiletools.commons.helpers.LICENSE_AMBILWARNA
1716
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
1817
import com.simplemobiletools.commons.helpers.LICENSE_RTL
1918
import com.simplemobiletools.commons.helpers.LICENSE_STETHO
@@ -138,7 +137,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
138137
}
139138

140139
private fun launchAbout() {
141-
startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_AMBILWARNA or LICENSE_STETHO or LICENSE_RTL, BuildConfig.VERSION_NAME)
140+
startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_STETHO or LICENSE_RTL, BuildConfig.VERSION_NAME)
142141
}
143142

144143
private fun displayDeleteNotePrompt() {

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

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import android.support.v7.app.AppCompatActivity
99
import android.util.TypedValue
1010
import android.widget.RemoteViews
1111
import android.widget.SeekBar
12+
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
1213
import com.simplemobiletools.notes.R
1314
import com.simplemobiletools.notes.extensions.getTextSize
1415
import com.simplemobiletools.notes.helpers.Config
1516
import com.simplemobiletools.notes.helpers.MyWidgetProvider
1617
import kotlinx.android.synthetic.main.widget_config.*
17-
import yuku.ambilwarna.AmbilWarnaDialog
1818

1919
class WidgetConfigureActivity : AppCompatActivity() {
2020
private var mBgAlpha = 0f
@@ -110,27 +110,17 @@ class WidgetConfigureActivity : AppCompatActivity() {
110110
}
111111

112112
fun pickBackgroundColor() {
113-
AmbilWarnaDialog(this, mBgColorWithoutTransparency, object : AmbilWarnaDialog.OnAmbilWarnaListener {
114-
override fun onCancel(dialog: AmbilWarnaDialog) {
115-
}
116-
117-
override fun onOk(dialog: AmbilWarnaDialog, color: Int) {
118-
mBgColorWithoutTransparency = color
119-
updateBackgroundColor()
120-
}
121-
}).show()
113+
ColorPickerDialog(this, mBgColorWithoutTransparency) {
114+
mBgColorWithoutTransparency = it
115+
updateBackgroundColor()
116+
}
122117
}
123118

124119
fun pickTextColor() {
125-
AmbilWarnaDialog(this, mTextColor, object : AmbilWarnaDialog.OnAmbilWarnaListener {
126-
override fun onCancel(dialog: AmbilWarnaDialog) {
127-
}
128-
129-
override fun onOk(dialog: AmbilWarnaDialog, color: Int) {
130-
mTextColor = color
131-
updateTextColor()
132-
}
133-
}).show()
120+
ColorPickerDialog(this, mTextColor) {
121+
mTextColor = it
122+
updateTextColor()
123+
}
134124
}
135125

136126
private val bgSeekbarChangeListener = object : SeekBar.OnSeekBarChangeListener {

0 commit comments

Comments
 (0)