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