forked from upstream-mirrors/quik
Upgrade sdk and androidx
This commit is contained in:
@@ -23,14 +23,14 @@ apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion "28.0.3"
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion "29.0.2"
|
||||
flavorDimensions "analytics"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.moez.QKSMS"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 28
|
||||
targetSdkVersion 29
|
||||
versionCode 2202
|
||||
versionName "3.7.3"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
@@ -27,7 +27,7 @@ object ClipboardUtils {
|
||||
fun copy(context: Context, string: String) {
|
||||
val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
|
||||
val clip = ClipData.newPlainText("SMS", string)
|
||||
clipboard.primaryClip = clip
|
||||
clipboard.setPrimaryClip(clip)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,10 +49,10 @@ class ComposeActivityModule {
|
||||
activity.intent.data?.let {
|
||||
val data = it.toString()
|
||||
address = when {
|
||||
it.scheme.startsWith("smsto") -> data.replace("smsto:", "")
|
||||
it.scheme.startsWith("mmsto") -> data.replace("mmsto:", "")
|
||||
it.scheme.startsWith("sms") -> data.replace("sms:", "")
|
||||
it.scheme.startsWith("mms") -> data.replace("mms:", "")
|
||||
it.scheme?.startsWith("smsto") == true -> data.replace("smsto:", "")
|
||||
it.scheme?.startsWith("mmsto") == true -> data.replace("mmsto:", "")
|
||||
it.scheme?.startsWith("sms") == true -> data.replace("sms:", "")
|
||||
it.scheme?.startsWith("mms") == true -> data.replace("mms:", "")
|
||||
else -> ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user