From 48e37c8d4ec5c2e87c3e993bd3a3df091079cc58 Mon Sep 17 00:00:00 2001 From: Patrick Schneider Date: Fri, 20 Dec 2024 21:25:02 +0100 Subject: [PATCH] [fix] drawer name and icon. --- .../privacyfriendly2048/activities/helper/BaseActivity.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/secuso/privacyfriendly2048/activities/helper/BaseActivity.kt b/app/src/main/java/org/secuso/privacyfriendly2048/activities/helper/BaseActivity.kt index 905228d..da0b516 100644 --- a/app/src/main/java/org/secuso/privacyfriendly2048/activities/helper/BaseActivity.kt +++ b/app/src/main/java/org/secuso/privacyfriendly2048/activities/helper/BaseActivity.kt @@ -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)