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

Commit d7f6d3be authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix typo in method name

parent 3a407d47
Loading
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -11,10 +11,8 @@ package foundation.e.drive.services;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.os.Handler;
@@ -44,7 +42,6 @@ import foundation.e.drive.models.SyncRequest;
import foundation.e.drive.models.SyncedFolder;
import foundation.e.drive.models.SyncedFileState;
import foundation.e.drive.operations.ListFileRemoteOperation;
import foundation.e.drive.operations.RemoveFileOperation;
import foundation.e.drive.receivers.ForceSyncReceiver;
import foundation.e.drive.utils.AppConstants;
import foundation.e.drive.utils.CommonUtils;
@@ -145,7 +142,7 @@ public class ObserverService extends Service implements OnRemoteOperationListene
        }

        //check for the case where intent has been launched by initializerService
        if (!CommonUtils.haveNetworkConnexion(this)) {
        if (!CommonUtils.haveNetworkConnection(this)) {
            Log.w(TAG, "There is no Internet connexion.");
            return super.onStartCommand( intent, flags, startId );
        }
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ public class SynchronizationService extends Service implements OnRemoteOperation

    private void startWorker(int threadIndex){
        if (syncedRequestQueue.isEmpty()) return;
        if (!threadWorkingState[threadIndex] && CommonUtils.haveNetworkConnexion(getApplicationContext())) { //check if the thread corresponding to threadIndex isn't already working
        if (!threadWorkingState[threadIndex] && CommonUtils.haveNetworkConnection(getApplicationContext())) { //check if the thread corresponding to threadIndex isn't already working

            final SyncRequest request = this.syncedRequestQueue.poll(); //return null if deque is empty

+2 −2
Original line number Diff line number Diff line
@@ -191,8 +191,8 @@ public abstract class CommonUtils {
     * @param context Activity or service which are calling this method
     * @return True if there is connexion, false either
     */
    public static boolean haveNetworkConnexion(Context context) {
        Log.i(TAG, "haveNetworkConnexion()");
    public static boolean haveNetworkConnection(Context context) {
        Log.i(TAG, "haveNetworkConnection()");

        ConnectivityManager cm = context.getSystemService(ConnectivityManager.class);
        NetworkCapabilities capabilities = cm.getNetworkCapabilities(cm.getActiveNetwork());