From 445f5104861f551c985ff2ffc885f7db8b55e133 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sun, 12 Apr 2020 12:13:17 +0300 Subject: [PATCH] - Added locale to toLowerCase calls. --- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index cb79d4b1..c990dbec 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -332,7 +332,7 @@ class BaresipService: Service() { val newIntent = Intent(this, MainActivity::class.java) newIntent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_NEW_TASK - newIntent.putExtra("action", action.toLowerCase()) + newIntent.putExtra("action", action.toLowerCase(Locale.ROOT)) newIntent.putExtra("callp", intent!!.getStringExtra("callp")) startActivity(newIntent) } @@ -363,7 +363,7 @@ class BaresipService: Service() { val newIntent = Intent(this, MainActivity::class.java) newIntent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_NEW_TASK - newIntent.putExtra("action", action.toLowerCase()) + newIntent.putExtra("action", action.toLowerCase(Locale.ROOT)) newIntent.putExtra("callp", intent.getStringExtra("callp")) newIntent.putExtra("uri", intent.getStringExtra("uri")) startActivity(newIntent) @@ -385,7 +385,7 @@ class BaresipService: Service() { val newIntent = Intent(this, MainActivity::class.java) newIntent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_NEW_TASK - newIntent.putExtra("action", action.toLowerCase()) + newIntent.putExtra("action", action.toLowerCase(Locale.ROOT)) newIntent.putExtra("uap", intent!!.getStringExtra("uap")) newIntent.putExtra("peer", intent.getStringExtra("peer")) startActivity(newIntent)