Skip to content

Commit

Permalink
Update app/src/main/java/org/sopt/official/feature/notification/Schem…
Browse files Browse the repository at this point in the history
…eActivity.kt

Co-authored-by: SeHun <[email protected]>
  • Loading branch information
l2hyunwoo and s9hn committed Sep 18, 2024
1 parent 6fc26e2 commit 7f173a4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ class SchemeActivity : AppCompatActivity() {
}
}

private fun isIntentToHome(intent: Intent): Boolean {
return when (intent.component?.className) {
HomeActivity::class.java.name -> true
else -> false
private fun Intent.isIntentToHome(): Boolean =
intent.component?.className == HomeActivity::class.java.name
}
}

Expand Down

0 comments on commit 7f173a4

Please sign in to comment.