Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdfd11e8 authored by narinder Rana's avatar narinder Rana
Browse files

add customAlertDialog

parent 795ccb2a
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
    override fun clearSelection() = messageAdapter.clearSelection()

    override fun showDetails(details: String) {
        AlertDialog.Builder(this)
        AlertDialog.Builder(this, R.style.customAlertDialog)
                .setTitle(R.string.compose_details_title)
                .setMessage(details)
                .setCancelable(true)
@@ -267,8 +267,8 @@ class ComposeActivity : QkThemedActivity(), ComposeView {

    override fun requestDatePicker() {
        val calendar = Calendar.getInstance()
        DatePickerDialog(this, DatePickerDialog.OnDateSetListener { _, year, month, day ->
            TimePickerDialog(this, TimePickerDialog.OnTimeSetListener { _, hour, minute ->
        DatePickerDialog(this, R.style.customAlertDialog, DatePickerDialog.OnDateSetListener { _, year, month, day ->
            TimePickerDialog(this, R.style.customAlertDialog, TimePickerDialog.OnTimeSetListener { _, hour, minute ->
                calendar.set(Calendar.YEAR, year)
                calendar.set(Calendar.MONTH, month)
                calendar.set(Calendar.DAY_OF_MONTH, day)