Commit 91470b83 authored by narinder Rana's avatar narinder Rana
Browse files

remove unused tags

parent 697ec137
Pipeline #135494 failed with stage
in 1 minute and 6 seconds
......@@ -61,20 +61,14 @@ public class FileObserverService extends Service {
//Modify =2, create =256, delete =512, movedTo =128
if(event== FileObserver.CREATE || event==FileObserver.MODIFY || event== FileObserver.DELETE || event ==FileObserver.MOVED_TO){
Log.e("OnEvent", "...Event ..." + event+"...file ..." + file);
Log.i(TAG, "...Event ..." + event+"...file ..." + file);
if(!InitializerService.files.contains(file)){
Log.e(TAG, "adding new file into files list "+file.getName() +" .... "+file.getAbsolutePath());
InitializerService.files.add(file);
}
//Check internet
// Add event in List<File>
//InitializerService.fileObserver.add(file);
//call to ObserverService >> getSyncedFileState >> HandleLocal File
if(ConnectivityReceiver.isConnected()){
try
{
......@@ -116,7 +110,7 @@ public class FileObserverService extends Service {
@Override
public void onTaskRemoved(Intent rootIntent) {
Log.d("TAG", "............onTaskRemoved");
Log.d(TAG, "............onTaskRemoved");
super.onTaskRemoved(rootIntent);
Intent intent = new Intent(this, InitializerService.class);
this.startActivity(intent);
......@@ -134,11 +128,7 @@ public class FileObserverService extends Service {
@Override
protected void onPostExecute(String s) {
super.onPostExecute(s);
// Log.d("onPostExecute", "...ObserverService Intent...post Execute " );
try {
Log.e("TAG", "=========================================");
Log.e("TAG", "File Observer to Observer services.....");
Intent observersServiceIntent = new Intent(getApplicationContext(), foundation.e.drive.services.ObserverService.class);
Bundle mBundle = new Bundle();
......@@ -151,20 +141,6 @@ public class FileObserverService extends Service {
}
observerFlag=-1;
// final Handler handler = new Handler();
// handler.postDelayed(new Runnable() {
// @Override
// public void run() {
// // Log.e("onPostExecute", "...ObserverService Intent..." );
// // Do something after 20s = 20000ms
//
//
//
//
//
// }
// }, 20000);
}
......
......@@ -559,8 +559,7 @@ public class ObserverService extends Service implements OnRemoteOperationListene
* Prepare the list of files and SyncedFileState for synchronisation
*/
private void scanLocalFiles(){
Log.e( TAG, "========================================================" );
Log.e( TAG, "scanLocalFiles()" );
List<File> fileList = new ArrayList<>();
List<Long> folderIdList= new ArrayList<>();
boolean contentToSyncFound = false;
......@@ -669,8 +668,6 @@ public class ObserverService extends Service implements OnRemoteOperationListene
* @param syncedFileStates List of SyncedFileState to scan
*/
private void handleLocalFiles(List<File> localFileList, List<SyncedFileState> syncedFileStates ){
Log.e( TAG, "========================================================" );
Log.e(TAG, "handleLocalFiles()");
Log.d(TAG, "Loop through local file list");
Log.v(TAG, "format: filePath, exist, lastModified) :");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment