Skip to content

Commit

Permalink
[MOD] previous screen 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
minju1459 committed Jun 7, 2024
1 parent f5ae0ee commit a6a850c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class MainActivity : BindingActivity<ActivityMainBinding>(R.layout.activity_main
if (intent.getBooleanExtra(RECOMMEND_FRAGMENT, false)) {
binding.bnvMain.selectedItemId = R.id.menu_recommend
navigateTo<RecommendFragment>()
val inviteFriendDialog = InviteFriendDialog.newInstance(viewModel.getYelloId(), "Previous Screen")
val inviteFriendDialog = InviteFriendDialog.newInstance(viewModel.getYelloId(), PREVIOUS_Screen)
inviteFriendDialog.show(supportFragmentManager, INVITE_FRIEND_DIALOG)
}
}
Expand Down Expand Up @@ -373,6 +373,7 @@ class MainActivity : BindingActivity<ActivityMainBinding>(R.layout.activity_main

private const val RECOMMEND_FRAGMENT = "RecommendFragment"
private const val INVITE_FRIEND_DIALOG = "InviteFriendDialog"
private const val PREVIOUS_Screen = "Previous Screen"

@JvmStatic
fun getIntent(context: Context, type: String? = null, path: String? = null) =
Expand Down

0 comments on commit a6a850c

Please sign in to comment.