mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +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{
|
}else{
|
||||||
navController.popBackStack()
|
navController.popBackStack()
|
||||||
if (navController.currentBackStackEntry == null){
|
if (navController.currentBackStackEntry == null){
|
||||||
super.onBackPressed()
|
moveTaskToBack(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}catch (e: Exception){
|
}catch (e: Exception){
|
||||||
navController.popBackStack()
|
navController.popBackStack()
|
||||||
if (navController.currentBackStackEntry == null){
|
moveTaskToBack(true)
|
||||||
super.onBackPressed()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user