Explorar el Código

Changes the error message of RESULT_ERROR_GENERIC_FAILURE

RebekkaMa hace 4 años
padre
commit
641b519082

+ 2 - 2
app/src/main/java/net/folivo/android/smsGatewayServer/MessageManager.kt

@@ -167,8 +167,8 @@ class MessageManager(private val applicationContext: Context) {
         return when (resultCode) {
             Activity.RESULT_OK -> Pair(HttpStatusCode.OK, "Transmission successful")
             SmsManager.RESULT_ERROR_GENERIC_FAILURE -> Pair(
-                HttpStatusCode.InternalServerError,
-                "Transmission failed"
+                HttpStatusCode.BadRequest,
+                "Unknown generic failure"
             )
             SmsManager.RESULT_ERROR_RADIO_OFF -> Pair(
                 HttpStatusCode.InternalServerError,

+ 1 - 1
build.gradle

@@ -6,7 +6,7 @@ buildscript {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:4.1.3'
+        classpath 'com.android.tools.build:gradle:4.2.0'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10"
 
         // NOTE: Do not place your application dependencies here; they belong

+ 1 - 1
gradle/wrapper/gradle-wrapper.properties

@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip