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

Commit 07feb40b authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix spacing in if/else statement and fix 'final' word placement

parent 07bf89b0
Loading
Loading
Loading
Loading
+20 −20
Original line number Diff line number Diff line
@@ -11,12 +11,10 @@ package foundation.e.drive.services;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.Service;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.os.Handler;
@@ -52,7 +50,7 @@ import androidx.work.WorkManager;
 * @author Vincent Bourgmayer
 */
public class InitializerService extends Service implements OnRemoteOperationListener {
    final private String TAG = InitializerService.class.getSimpleName();
    private final String TAG = InitializerService.class.getSimpleName();

    private int existingRemoteFolderCounter; //Temporarily used to know if all remotePath exist
    private List<SyncedFolder> mSyncedFolders;
@@ -76,7 +74,9 @@ public class InitializerService extends Service implements OnRemoteOperationList
        //Get account
        SharedPreferences prefs = this.getSharedPreferences( AppConstants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE );


        if (prefs.getBoolean( AppConstants.INITIALIZATION_HAS_BEEN_DONE, false ) ) {

            Log.w(TAG, "Initializer has already been run");
        } else {
            String accountName = prefs.getString( AccountManager.KEY_ACCOUNT_NAME, "" );
+2 −2
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ import androidx.work.WorkManager;
 */

public abstract class CommonUtils {
    final private static String TAG = CommonUtils.class.getSimpleName();
    private final static String TAG = CommonUtils.class.getSimpleName();

    /**
     * Set ServiceUncaughtExceptionHandler to be the MainThread Exception Handler
+5 −5
Original line number Diff line number Diff line
@@ -33,8 +33,8 @@ import foundation.e.drive.utils.CommonUtils;
 * @author Vincent Bourgmayer
 */
public class FullScanWorker extends Worker {
    final private static String TAG = FullScanWorker.class.getSimpleName();
    final public static String UNIQUE_WORK_NAME="FullScan";
    private final static String TAG = FullScanWorker.class.getSimpleName();
    public final static String UNIQUE_WORK_NAME="FullScan";

    public FullScanWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
        super(context, workerParams);