Add schedule send message creation ui

Move android-smsmms logic into a separate file
This commit is contained in:
Naveen 2022-09-26 03:02:07 +05:30
parent acefd0c0f4
commit 7624174cad
16 changed files with 485 additions and 60 deletions

View file

@ -0,0 +1,8 @@
package com.simplemobiletools.smsmessenger.extensions
import kotlin.math.roundToInt
/**
* Returns the closest next number divisible by [multipleOf].
*/
fun Int.round(multipleOf: Int = 1) = (toDouble() / multipleOf).roundToInt() * multipleOf