minor code style update
This commit is contained in:
parent
014ac2a4cf
commit
deecd78650
|
@ -10,7 +10,6 @@ import kotlinx.android.synthetic.main.dialog_export_messages.view.export_message
|
||||||
import kotlinx.android.synthetic.main.dialog_export_messages.view.export_mms_checkbox
|
import kotlinx.android.synthetic.main.dialog_export_messages.view.export_mms_checkbox
|
||||||
import kotlinx.android.synthetic.main.dialog_export_messages.view.export_sms_checkbox
|
import kotlinx.android.synthetic.main.dialog_export_messages.view.export_sms_checkbox
|
||||||
|
|
||||||
|
|
||||||
class ExportMessagesDialog(
|
class ExportMessagesDialog(
|
||||||
private val activity: SimpleActivity,
|
private val activity: SimpleActivity,
|
||||||
private val callback: (fileName: String) -> Unit,
|
private val callback: (fileName: String) -> Unit,
|
||||||
|
@ -40,7 +39,6 @@ class ExportMessagesDialog(
|
||||||
filename.isAValidFilename() -> {
|
filename.isAValidFilename() -> {
|
||||||
callback(filename)
|
callback(filename)
|
||||||
alertDialog.dismiss()
|
alertDialog.dismiss()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> activity.toast(R.string.invalid_name)
|
else -> activity.toast(R.string.invalid_name)
|
||||||
|
|
Loading…
Reference in New Issue