Commit e4b8bb2d authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Update navigation drawer library

parent 2d80a47e
......@@ -147,9 +147,9 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2'
implementation 'com.frostnerd.utilskt:lifecycle:1.2.0'
implementation 'com.frostnerd.utilskt:lifecycle:1.2.1'
implementation 'com.frostnerd.utilskt:preferences:1.5.30' // https://git.frostnerd.com/AndroidUtils/preferenceskt
implementation 'com.frostnerd.utilskt:navigationdraweractivity:1.4.0' // https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
implementation 'com.frostnerd.utilskt:navigationdraweractivity:1.4.1' // https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
implementation 'com.frostnerd.utilskt:encrypteddnstunnelproxy:2.1.20' // https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
implementation 'com.frostnerd.utilskt:general:1.0.25' // https://git.frostnerd.com/AndroidUtils/generalkt
implementation 'com.frostnerd.utilskt:adapters:1.2.0' // https://git.frostnerd.com/AndroidUtils/Adapters
......
......@@ -353,7 +353,7 @@ class MainActivity : NavigationDrawerActivity() {
}
override fun onBackPressed() {
val fragment = currentFragment
val fragment = supportFragmentManager.findFragmentById(R.id.drawerContent)
if (fragment != null && fragment is BackpressFragment) {
if (!fragment.onBackPressed()) super.onBackPressed()
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment