File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/folder Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ abstract class TwoPaneFragment : Fragment() {
82
82
override fun onConfigurationChanged (newConfig : Configuration ) {
83
83
super .onConfigurationChanged(newConfig)
84
84
updateDrawerLockMode()
85
+ ensureThreadIsDisplayed(newConfig.orientation)
85
86
}
86
87
87
88
private fun setupSlidingPane () = with (slidingPaneLayout) {
@@ -192,4 +193,10 @@ abstract class TwoPaneFragment : Fragment() {
192
193
)
193
194
}
194
195
}
196
+
197
+ private fun ensureThreadIsDisplayed (orientation : Int ) {
198
+ if (orientation == Configuration .ORIENTATION_PORTRAIT && twoPaneViewModel.isInThreadInPhoneMode(requireContext())) {
199
+ slidingPaneLayout.openPaneNoAnimation()
200
+ }
201
+ }
195
202
}
You can’t perform that action at this time.
0 commit comments