Skip to content

Commit

Permalink
[fix] drawer name and icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderPaddyS committed Dec 20, 2024
1 parent b95f204 commit 48e37c8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ abstract class BaseActivity : DrawerActivity() {
super.setContent(layoutResID)
}

override fun setContentView(view: View) {
super.setContent(view)
override fun setContentView(view: View?) {
super.setContent(view!!)
}

override fun drawer() = DrawerMenu.build {
name = getString(R.string.app_name_long)
icon = R.mipmap.ic_logo
section {
activity {
name = ContextCompat.getString(this@BaseActivity, R.string.action_main)
Expand Down

0 comments on commit 48e37c8

Please sign in to comment.