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

add Author, remove unused import in Initializer and createInitialRemoteFoldersService

parent f10eb511
Pipeline #34297 failed with stage
in 1 minute and 25 seconds
/*
* Copyright © Vincent Bourgmayer (/e/ foundation).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/
package foundation.e.drive.backgroundServices; package foundation.e.drive.backgroundServices;
import android.accounts.Account; import android.accounts.Account;
...@@ -20,7 +28,6 @@ import java.util.List; ...@@ -20,7 +28,6 @@ import java.util.List;
import foundation.e.drive.database.DbHelper; import foundation.e.drive.database.DbHelper;
import foundation.e.drive.models.SyncedFolder; import foundation.e.drive.models.SyncedFolder;
import foundation.e.drive.utils.AppConstants;
import foundation.e.drive.utils.CommonUtils; import foundation.e.drive.utils.CommonUtils;
import static com.owncloud.android.lib.resources.files.FileUtils.PATH_SEPARATOR; import static com.owncloud.android.lib.resources.files.FileUtils.PATH_SEPARATOR;
...@@ -28,9 +35,11 @@ import static foundation.e.drive.utils.AppConstants.ACCOUNT_KEY_CODE; ...@@ -28,9 +35,11 @@ import static foundation.e.drive.utils.AppConstants.ACCOUNT_KEY_CODE;
import static foundation.e.drive.utils.AppConstants.resultCodeKey; import static foundation.e.drive.utils.AppConstants.resultCodeKey;
import static foundation.e.drive.utils.AppConstants.resultIntentActionKey; import static foundation.e.drive.utils.AppConstants.resultIntentActionKey;
//https://developer.android.com/training/run-background-service/report-status.html //https://developer.android.com/training/run-background-service/report-status.html
//https://developer.android.com/guide/components/services.html#ExtendingIntentService //https://developer.android.com/guide/components/services.html#ExtendingIntentService
/**
* @author Vincent Bourgmayer
*/
public class CreateInitialRemoteFoldersIntentService extends IntentService { public class CreateInitialRemoteFoldersIntentService extends IntentService {
private static final String TAG = CreateInitialRemoteFoldersIntentService.class.getSimpleName(); private static final String TAG = CreateInitialRemoteFoldersIntentService.class.getSimpleName();
...@@ -39,7 +48,6 @@ public class CreateInitialRemoteFoldersIntentService extends IntentService { ...@@ -39,7 +48,6 @@ public class CreateInitialRemoteFoldersIntentService extends IntentService {
*/ */
public CreateInitialRemoteFoldersIntentService() { super(TAG); } public CreateInitialRemoteFoldersIntentService() { super(TAG); }
@Override @Override
protected void onHandleIntent(Intent workIntent) { protected void onHandleIntent(Intent workIntent) {
if(workIntent == null || workIntent.getExtras() == null) return; if(workIntent == null || workIntent.getExtras() == null) return;
...@@ -51,7 +59,6 @@ public class CreateInitialRemoteFoldersIntentService extends IntentService { ...@@ -51,7 +59,6 @@ public class CreateInitialRemoteFoldersIntentService extends IntentService {
LocalBroadcastManager.getInstance(this).sendBroadcast(doMission(client)); LocalBroadcastManager.getInstance(this).sendBroadcast(doMission(client));
} }
/** /**
* @TODO: rename it * @TODO: rename it
* @return Intent the result intent to send to launcher service * @return Intent the result intent to send to launcher service
...@@ -140,7 +147,6 @@ public class CreateInitialRemoteFoldersIntentService extends IntentService { ...@@ -140,7 +147,6 @@ public class CreateInitialRemoteFoldersIntentService extends IntentService {
} }
return mSyncedFolders; return mSyncedFolders;
} }
private String getExternalFolder(String directory){ private String getExternalFolder(String directory){
return CommonUtils.getLocalPath(Environment.getExternalStoragePublicDirectory(directory))+ PATH_SEPARATOR; return CommonUtils.getLocalPath(Environment.getExternalStoragePublicDirectory(directory))+ PATH_SEPARATOR;
} }
......
...@@ -17,16 +17,12 @@ import android.content.Intent; ...@@ -17,16 +17,12 @@ import android.content.Intent;
import android.content.IntentFilter; import android.content.IntentFilter;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder; import android.os.IBinder;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.support.v4.content.LocalBroadcastManager; import android.support.v4.content.LocalBroadcastManager;
import android.util.Log; import android.util.Log;
import com.owncloud.android.lib.common.OwnCloudClient;
import java.util.List;
import foundation.e.drive.backgroundServices.CreateInitialRemoteFoldersIntentService; import foundation.e.drive.backgroundServices.CreateInitialRemoteFoldersIntentService;
import foundation.e.drive.models.SyncedFolder;
import foundation.e.drive.receivers.ScreenOffReceiver; import foundation.e.drive.receivers.ScreenOffReceiver;
import foundation.e.drive.utils.AppConstants; import foundation.e.drive.utils.AppConstants;
import foundation.e.drive.utils.CommonUtils; import foundation.e.drive.utils.CommonUtils;
......
Markdown is supported
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