Skip to content

Commit

Permalink
[Chore/#5] showToast 함수 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
SYAAINN committed Sep 18, 2024
1 parent d2083f2 commit 83f0679
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.sopt.now.data.User
import com.sopt.now.databinding.ActivityMainBinding
import com.sopt.now.presentation.utils.KeyStorage
import com.sopt.now.presentation.utils.getSafeParcelable
import com.sopt.now.presentation.utils.showToast

class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
Expand All @@ -36,11 +37,7 @@ class MainActivity : AppCompatActivity() {
startActivity(intent)
finish()
} else {
Toast.makeText(
this@MainActivity,
R.string.mypage_back_handler_caution,
Toast.LENGTH_SHORT
).show()
showToast(context = this@MainActivity, message = getString(R.string.mypage_back_handler_caution))
backPressedTime = System.currentTimeMillis()
}
}
Expand Down

0 comments on commit 83f0679

Please sign in to comment.