mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Merge pull request #214 from Bnyro/settings
Fixed Settings Loop on Back Pressed
This commit is contained in:
commit
c6c4cdfd2b
@ -256,14 +256,12 @@ class MainActivity : AppCompatActivity() {
|
||||
}else{
|
||||
navController.popBackStack()
|
||||
if (navController.currentBackStackEntry == null){
|
||||
super.onBackPressed()
|
||||
moveTaskToBack(true)
|
||||
}
|
||||
}
|
||||
}catch (e: Exception){
|
||||
navController.popBackStack()
|
||||
if (navController.currentBackStackEntry == null){
|
||||
super.onBackPressed()
|
||||
}
|
||||
moveTaskToBack(true)
|
||||
}
|
||||
}
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user