|
@@ -18,8 +18,6 @@
|
|
|
|
|
|
package com.owncloud.android.ui.activity;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
-
|
|
|
import android.accounts.Account;
|
|
|
import android.accounts.AccountManager;
|
|
|
import android.accounts.AccountManagerCallback;
|
|
@@ -50,7 +48,6 @@ import com.owncloud.android.files.services.FileDownloader;
|
|
|
import com.owncloud.android.files.services.FileUploader;
|
|
|
import com.owncloud.android.files.services.FileDownloader.FileDownloaderBinder;
|
|
|
import com.owncloud.android.files.services.FileUploader.FileUploaderBinder;
|
|
|
-import com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException;
|
|
|
import com.owncloud.android.lib.common.operations.OnRemoteOperationListener;
|
|
|
import com.owncloud.android.lib.common.operations.RemoteOperation;
|
|
|
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
|
@@ -198,24 +195,6 @@ implements OnRemoteOperationListener, ComponentsGetter {
|
|
|
|
|
|
@Override
|
|
|
protected void onPause() {
|
|
|
- // Save cookies here
|
|
|
- Log_OC.wtf(TAG, "Saving Cookies" );
|
|
|
- if (mAccount != null) {
|
|
|
- try {
|
|
|
- ((MainApp)getApplicationContext()).getOwnCloudClientManager().
|
|
|
- saveClient(mAccount, this);
|
|
|
-
|
|
|
- // TODO get rid of the exceptions
|
|
|
- } catch (AccountNotFoundException e) {
|
|
|
- e.printStackTrace();
|
|
|
- } catch (AuthenticatorException e) {
|
|
|
- e.printStackTrace();
|
|
|
- } catch (OperationCanceledException e) {
|
|
|
- e.printStackTrace();
|
|
|
- } catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
if (mOperationsServiceBinder != null) {
|
|
|
mOperationsServiceBinder.removeOperationListener(this);
|