fix: "Back button opens drawer" (redundant super call)

This commit is contained in:
Franek 2024-06-13 22:58:47 +02:00
parent eca2028595
commit b148f7197f
No known key found for this signature in database
GPG Key ID: 0329F871B2079351

View File

@ -1,5 +1,6 @@
package pl.szczodrzynski.edziennik package pl.szczodrzynski.edziennik
import android.annotation.SuppressLint
import android.app.ActivityManager import android.app.ActivityManager
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@ -1211,9 +1212,9 @@ class MainActivity : AppCompatActivity(), CoroutineScope {
drawer.addProfileSettings(*drawerProfiles.toTypedArray()) drawer.addProfileSettings(*drawerProfiles.toTypedArray())
} }
@SuppressLint("MissingSuperCall")
@Deprecated("Deprecated in Java") @Deprecated("Deprecated in Java")
override fun onBackPressed() { override fun onBackPressed() {
super.onBackPressed()
if (App.config.ui.openDrawerOnBackPressed) { if (App.config.ui.openDrawerOnBackPressed) {
if (drawer.isOpen) if (drawer.isOpen)
navigateUp() navigateUp()