File tree 1 file changed +6
-1
lines changed
test-app/app/src/debug/java/com/tns
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ private class LiveSyncWorker implements Runnable {
105
105
public static final int CREATE_FILE_OPERATION = 8 ;
106
106
public static final int DO_SYNC_OPERATION = 9 ;
107
107
public static final int ERROR_REPORT_CODE = 1 ;
108
+ public static final int OPERATION_END_NO_REFRESH_REPORT_CODE = 3 ;
108
109
public static final int OPERATION_END_REPORT_CODE = 2 ;
109
110
public static final int REPORT_CODE_SIZE = 1 ;
110
111
public static final String FILE_NAME = "fileName" ;
@@ -157,13 +158,17 @@ public void run() {
157
158
158
159
} else if (operation == DO_SYNC_OPERATION ) {
159
160
byte [] operationUid = readNextBytes (OPERATION_ID_BYTE_SIZE );
161
+ int operationReportCode ;
160
162
161
163
validateData ();
162
164
if (runtime != null ) {
163
165
runtime .runScript (new File (NativeScriptSyncServiceSocketIml .this .context .getFilesDir (), "internal/livesync.js" ));
166
+ operationReportCode = OPERATION_END_REPORT_CODE ;
167
+ } else {
168
+ operationReportCode = OPERATION_END_NO_REFRESH_REPORT_CODE ;
164
169
}
165
170
166
- output .write (getReportMessageBytes (OPERATION_END_REPORT_CODE , operationUid ));
171
+ output .write (getReportMessageBytes (operationReportCode , operationUid ));
167
172
output .flush ();
168
173
169
174
} else if (operation == DEFAULT_OPERATION ) {
You can’t perform that action at this time.
0 commit comments