Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4022619 authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

remove CrashAnalytics. Start to add ResetService

parent 4aa8f013
Loading
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ import android.util.Log;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.operations.RemoteOperation;
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
import com.owncloud.android.lib.resources.files.FileUtils;
import com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation;
import com.owncloud.android.lib.resources.files.RemoteFile;

@@ -25,7 +24,6 @@ import java.util.ListIterator;

import io.eelo.drive.database.DbHelper;
import io.eelo.drive.models.SyncedFolder;
import io.eelo.drive.utils.AppConstants;

/**
 *
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import com.owncloud.android.lib.resources.files.UploadRemoteFileOperation;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import io.eelo.drive.database.DbHelper;
+0 −1
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ import android.content.Context;
import android.content.Intent;
import android.util.Log;

import io.eelo.drive.utils.CommonUtils;
import io.eelo.drive.utils.JobUtils;


+0 −1
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.util.Log;

import io.eelo.drive.services.InitializerService;
+2 −8
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;

import com.crashlytics.android.Crashlytics;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.operations.OnRemoteOperationListener;
import com.owncloud.android.lib.common.operations.RemoteOperation;
@@ -31,15 +30,12 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import io.eelo.drive.database.DbHelper;
import io.eelo.drive.models.SyncedFolder;
import io.eelo.drive.operations.CreateInitialRemoteFolderOperation;
import io.eelo.drive.utils.AppConstants;
import io.eelo.drive.utils.CommonUtils;
import io.eelo.drive.utils.CrashlyticsUtils;
import io.eelo.drive.utils.IGetOCClient;
import io.eelo.drive.utils.JobUtils;
import io.fabric.sdk.android.Fabric;

import static com.owncloud.android.lib.resources.files.FileUtils.PATH_SEPARATOR;
import static io.eelo.drive.utils.AppConstants.INITIALFOLDERS_NUMBER;
@@ -68,7 +64,6 @@ public class InitializerService extends Service implements OnRemoteOperationList
        this.mHandler = new Handler();
        this.mSyncedFolders = new ArrayList<>();
        this.existingRemoteFolderCounter = 0;
        Fabric.with(this, new Crashlytics());
        this.notificationID =  3310 + (int) (System.currentTimeMillis() / 1000);
    }

@@ -93,7 +88,6 @@ public class InitializerService extends Service implements OnRemoteOperationList
                mAccount = CommonUtils.getAccount(accountName, accountType, AccountManager.get(this));
                //Get OwnCloudlient
                if (mAccount != null) {
                    CrashlyticsUtils.logUser(this.mAccount.name);
                    CommonUtils.getOwnCloudClient(mAccount, getApplicationContext(), this);
                }
            }else{
@@ -263,7 +257,7 @@ public class InitializerService extends Service implements OnRemoteOperationList
     **/
    private void areRemoteFolderReady(){
        Log.i(TAG, "areRemoteFolderReady()");
        if(!this.mSyncedFolders.isEmpty() ){
        if(this.mSyncedFolders != null && !this.mSyncedFolders.isEmpty() ){
            if(existingRemoteFolderCounter ==  this.mSyncedFolders.size()){
                JobUtils.scheduleScannerJob(this, 120000);
                SharedPreferences settings = getApplicationContext().getSharedPreferences(
@@ -279,7 +273,7 @@ public class InitializerService extends Service implements OnRemoteOperationList
                startFolderCreation();
            }
        } else {
            Log.e(TAG, "mSyncedFolders is empty");
            Log.e(TAG, "mSyncedFolders is empty or null");
        }
    }

Loading