update commons to 3.0.20

This commit is contained in:
tibbi 2017-12-01 14:21:03 +01:00
parent 45780b9143
commit a574052dcc
3 changed files with 20 additions and 19 deletions

View File

@ -39,7 +39,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:3.0.13' implementation 'com.simplemobiletools:commons:3.0.20'
implementation 'com.facebook.stetho:stetho:1.5.0' implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.android.support:multidex:1.0.2' implementation 'com.android.support:multidex:1.0.2'
} }

View File

@ -25,14 +25,14 @@ class AddAppLauncherDialog(val activity: Activity, val displayedLaunchers: Array
.setPositiveButton(R.string.ok, { dialogInterface, i -> confirmSelection() }) .setPositiveButton(R.string.ok, { dialogInterface, i -> confirmSelection() })
.setNegativeButton(R.string.cancel, null) .setNegativeButton(R.string.cancel, null)
.create().apply { .create().apply {
activity.setupDialogStuff(view, this) activity.setupDialogStuff(view, this) {
Thread {
Thread({
adapter = LaunchersDialogAdapter(activity, getNotDisplayedLaunchers()) adapter = LaunchersDialogAdapter(activity, getNotDisplayedLaunchers())
activity.runOnUiThread { activity.runOnUiThread {
view.pick_launchers_holder.adapter = adapter view.pick_launchers_holder.adapter = adapter
} }
}).start() }.start()
}
} }
} }

View File

@ -24,7 +24,7 @@ class EditDialog(val activity: Activity, val appLauncher: AppLauncher, val callb
.setNegativeButton(R.string.cancel, null) .setNegativeButton(R.string.cancel, null)
.create().apply { .create().apply {
window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE) window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
activity.setupDialogStuff(view, this, R.string.rename) activity.setupDialogStuff(view, this, R.string.rename) {
getButton(android.app.AlertDialog.BUTTON_POSITIVE).setOnClickListener { getButton(android.app.AlertDialog.BUTTON_POSITIVE).setOnClickListener {
val newName = view.edit_launcher_edittext.value val newName = view.edit_launcher_edittext.value
if (!newName.isEmpty()) { if (!newName.isEmpty()) {
@ -41,3 +41,4 @@ class EditDialog(val activity: Activity, val appLauncher: AppLauncher, val callb
} }
} }
} }
}