Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
replace == usage with equals() usage
Browse files Browse the repository at this point in the history
as suggested by Android Studio. Also decreases an import statement.
  • Loading branch information
curche committed Jun 25, 2021
1 parent 6bb6497 commit 3e098df
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -128,7 +127,7 @@ class HandleImageActivity : AppCompatActivity() {
val targetedShareIntents = ArrayList<Intent>()
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
}

Expand Down

0 comments on commit 3e098df

Please sign in to comment.