From 317100ff9cd044f58e8475c776596d24f88c9c73 Mon Sep 17 00:00:00 2001 From: sadorowo Date: Thu, 13 Jun 2024 22:58:47 +0200 Subject: [PATCH] fix: "Back button opens drawer" (redundant super call) --- app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt b/app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt index 1ef4bd69..dde0058b 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt @@ -1191,8 +1191,7 @@ class MainActivity : AppCompatActivity(), CoroutineScope { drawer.addProfileSettings(*drawerProfiles.toTypedArray()) } - private val targetPopToHomeList = arrayListOf() - private var targetHomeId: Int = -1 + @SuppressLint("MissingSuperCall") @Deprecated("Deprecated in Java") override fun onBackPressed() { if (App.config.ui.openDrawerOnBackPressed) {