mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 16:32:57 +01:00
Fix closed conversation reopening after changing the device orientation.
This commit is contained in:
committed by
Michelle Tang
parent
824ff18ba5
commit
6ee14d5e7c
@@ -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