File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -99,20 +99,20 @@ public RoutedViewHost()
99
99
. SelectMany ( _ => PageForViewModel ( Router . GetCurrentViewModel ( ) ) )
100
100
. SelectMany ( async page =>
101
101
{
102
+ bool animated = true ;
103
+ var attribute = page . GetType ( ) . GetCustomAttribute < DisableAnimationAttribute > ( ) ;
104
+ if ( attribute != null )
105
+ {
106
+ animated = false ;
107
+ }
108
+
102
109
if ( popToRootPending && Navigation . NavigationStack . Count > 0 )
103
110
{
104
111
Navigation . InsertPageBefore ( page , Navigation . NavigationStack [ 0 ] ) ;
105
- await PopToRootAsync ( ) ;
112
+ await PopToRootAsync ( animated ) ;
106
113
}
107
114
else
108
115
{
109
- bool animated = true ;
110
- var attribute = page . GetType ( ) . GetCustomAttribute < DisableAnimationAttribute > ( ) ;
111
- if ( attribute != null )
112
- {
113
- animated = false ;
114
- }
115
-
116
116
await PushAsync ( page , animated ) ;
117
117
}
118
118
You can’t perform that action at this time.
0 commit comments