Skip to content

Commit

Permalink
Cleanup codes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaIvaz committed Jun 21, 2023
1 parent 62fc3a7 commit 0ccfebe
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ class MainActivity : AppCompatActivity() {

setContentView(binding.root)
setSupportActionBar(binding.toolbar)
supportActionBar!!.setDisplayShowTitleEnabled(false)
supportActionBar?.setDisplayShowTitleEnabled(false)

val action = intent?.action ?: ""
if (action == Utils.MISSING_PERMISSION) {
Snackbar.make(binding.root, R.string.permissions_need_to_be_granted,
Snackbar.LENGTH_INDEFINITE).apply {
Snackbar.make(
binding.root,
R.string.permissions_need_to_be_granted,
Snackbar.LENGTH_INDEFINITE
).apply {
setAction(R.string.ok) { dismiss() }
show()
}
Expand Down

0 comments on commit 0ccfebe

Please sign in to comment.