forked from upstream-mirrors/quik
Upgrade gradle and kotlin versions
This commit is contained in:
@@ -22,7 +22,6 @@ import android.content.Context
|
||||
import android.telephony.PhoneNumberUtils
|
||||
import android.telephony.SmsMessage
|
||||
import android.view.inputmethod.EditorInfo
|
||||
import androidx.core.widget.toast
|
||||
import com.moez.QKSMS.R
|
||||
import com.moez.QKSMS.common.Navigator
|
||||
import com.moez.QKSMS.common.androidxcompat.scope
|
||||
@@ -503,7 +502,7 @@ class ComposeViewModel @Inject constructor(
|
||||
view.scheduleSelectedIntent
|
||||
.filter { scheduled ->
|
||||
(scheduled > System.currentTimeMillis()).also { future ->
|
||||
if (!future) context.toast(R.string.compose_scheduled_future)
|
||||
if (!future) context.makeToast(R.string.compose_scheduled_future)
|
||||
}
|
||||
}
|
||||
.autoDisposable(view.scope())
|
||||
@@ -607,7 +606,7 @@ class ComposeViewModel @Inject constructor(
|
||||
val uris = attachments.map { it.getUri() }.map { it.toString() }
|
||||
val params = AddScheduledMessage.Params(state.scheduled, subId, addresses, state.sendAsGroup, body, uris)
|
||||
addScheduledMessage.execute(params)
|
||||
context.toast(R.string.compose_scheduled_toast)
|
||||
context.makeToast(R.string.compose_scheduled_toast)
|
||||
}
|
||||
|
||||
state.sendAsGroup -> {
|
||||
|
||||
Reference in New Issue
Block a user