mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-10-05 23:33:34 +01:00
Fix closed conversation reopening after changing the device orientation.
This commit is contained in:
1 parent
824ff18ba5
commit
6ee14d5e7c
1 file changed
+8
@@ -319,6 +319,14 @@ class MainNavigationViewModel(
|
||||
* piece of content via [goTo].
|
||||
*/
|
||||
private inner class Nav<T>(delegate: ThreePaneScaffoldNavigator<T>) : AppScaffoldNavigator<T>(delegate) {
|
||||
override suspend fun navigateBack(backNavigationBehavior: BackNavigationBehavior): Boolean {
|
||||
val result = super.navigateBack(backNavigationBehavior)
|
||||
if (result) {
|
||||
lockPaneToSecondary = true
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
override suspend fun seekBack(backNavigationBehavior: BackNavigationBehavior, fraction: Float) {
|
||||
super.seekBack(backNavigationBehavior, fraction)
|
||||
|
||||
|
||||
Reference in new issue
Block a user