Bimba.git

commit 733912890006fb8af44e6ee0fb63b55c93592954

Author: Adam Pioterek <adam.pioterek@protonmail.ch>

bugfix: deaccenting capital letters

 app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt | 18 +-


diff --git a/app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt b/app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt
index fbb618b2d978861b8efee2706476eb73e421ba5f..cc63e01b732d8c4c8632aac9b344aa0af533e2dd 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt
@@ -261,15 +261,15 @@         unregisterReceiver(receiver)
     }
 
     private fun deAccent(str: String): String {
-        var result = str.replace('ę', 'e')
-        result = result.replace('ó', 'o')
-        result = result.replace('ą', 'a')
-        result = result.replace('ś', 's')
-        result = result.replace('ł', 'l')
-        result = result.replace('ż', 'z')
-        result = result.replace('ź', 'z')
-        result = result.replace('ć', 'c')
-        result = result.replace('ń', 'n')
+        var result = str.replace('ę', 'e', true)
+        result = result.replace('ó', 'o', true)
+        result = result.replace('ą', 'a', true)
+        result = result.replace('ś', 's', true)
+        result = result.replace('ł', 'l', true)
+        result = result.replace('ż', 'z', true)
+        result = result.replace('ź', 'z', true)
+        result = result.replace('ć', 'c', true)
+        result = result.replace('ń', 'n', true)
         return result
     }