File tree 2 files changed +8
-28
lines changed
platform/nativescript/runtime/components 2 files changed +8
-28
lines changed Original file line number Diff line number Diff line change @@ -158,32 +158,12 @@ export default {
158
158
159
159
// replace the controllers instead of pushing directly
160
160
frame . _ios . controller . setViewControllersAnimated ( newControllers , false )
161
- } else {
162
- const frameId = frame . _android . frameId
163
- frame . _isBack = false
164
- backstackEntry . frameId = frameId
165
-
166
- const manager = frame . _getFragmentManager ( )
167
- const currentEntry = frame . _currentEntry
168
-
169
- const newFragmentTag = `fragment${ frameId } [-1]`
170
- const newFragment = frame . createFragment ( backstackEntry , newFragmentTag )
171
- const animated = false
172
- const navigationTransition = null
173
-
174
- const transaction = manager . beginTransaction ( )
175
- _setAndroidFragmentTransitions (
176
- animated ,
177
- navigationTransition ,
178
- currentEntry ,
179
- backstackEntry ,
180
- transaction ,
181
- frameId
182
- )
183
- transaction . remove ( currentEntry . fragment )
184
- transaction . replace ( frame . containerViewId , newFragment , newFragmentTag )
185
- transaction . commitAllowingStateLoss ( )
186
161
}
162
+ // Note: in the Android platform there is nothing to do, as the
163
+ // page is able to change without the need of replacing the last
164
+ // navigation entry
165
+
166
+ // reset HMR checking flag
187
167
resetHMRChecking ( )
188
168
} ,
189
169
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default {
51
51
52
52
mounted ( ) {
53
53
if ( ! this . $templates ) {
54
- return ;
54
+ return
55
55
}
56
56
57
57
this . $refs . listView . setAttribute (
@@ -69,9 +69,9 @@ export default {
69
69
} ,
70
70
onItemLoading ( args ) {
71
71
if ( ! this . $templates ) {
72
- return ;
72
+ return
73
73
}
74
-
74
+
75
75
const index = args . index
76
76
const items = args . object . items
77
77
You can’t perform that action at this time.
0 commit comments