From 3e098dfe32df10165cf6f8cab577b58ca0bc55e5 Mon Sep 17 00:00:00 2001 From: curche <72807749+curche@users.noreply.github.com> Date: Sat, 26 Jun 2021 03:23:06 +0530 Subject: [PATCH] replace == usage with equals() usage as suggested by Android Studio. Also decreases an import statement. --- .../jarsilio/android/scrambledeggsif/HandleImageActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/jarsilio/android/scrambledeggsif/HandleImageActivity.kt b/app/src/main/java/com/jarsilio/android/scrambledeggsif/HandleImageActivity.kt index 6cc9683..79b5f87 100644 --- a/app/src/main/java/com/jarsilio/android/scrambledeggsif/HandleImageActivity.kt +++ b/app/src/main/java/com/jarsilio/android/scrambledeggsif/HandleImageActivity.kt @@ -37,7 +37,6 @@ import com.jarsilio.android.scrambledeggsif.utils.ExifScrambler import com.jarsilio.android.scrambledeggsif.utils.MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE import com.jarsilio.android.scrambledeggsif.utils.Utils import java.util.ArrayList -import java.util.Locale import timber.log.Timber @ExperimentalUnsignedTypes @@ -128,7 +127,7 @@ class HandleImageActivity : AppCompatActivity() { val targetedShareIntents = ArrayList() val resolveInfos = packageManager.queryIntentActivities(createShareIntent(imageUris), 0) for (info in resolveInfos) { - if (info.activityInfo.packageName.toLowerCase(Locale.ROOT) == packageName.toLowerCase(Locale.ROOT)) { + if (info.activityInfo.packageName.equals(packageName, ignoreCase = true)) { continue // Don't add out own package }