Skip to content

Commit

Permalink
Fix context wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 authored Aug 5, 2024
1 parent 9a8efbc commit 72ec6e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
binding.toolBar.setOnMenuItemClickListener { menuItem ->
when (menuItem.itemId) {
R.id.item_settings -> {
val intent = Intent(context, SettingsActivity::class.java)
val intent = Intent(this@MainActivity.context, SettingsActivity::class.java)
startActivity(intent)

VibrationUtils.performHapticFeedback(binding.toolBar)
Expand Down

0 comments on commit 72ec6e6

Please sign in to comment.