mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
Grant that OperationsService doesn't keep old saved results forever
This commit is contained in:
parent
46e949c826
commit
d535c420f2
1 changed files with 13 additions and 4 deletions
|
@ -156,7 +156,16 @@ public class OperationsService extends Service {
|
|||
return START_NOT_STICKY;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
//Log.wtf(TAG, "onDestroy init" );
|
||||
super.onDestroy();
|
||||
//Log.wtf(TAG, "Clear mOperationResults" );
|
||||
mOperationResults.clear();
|
||||
//Log.wtf(TAG, "onDestroy end" );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Provides a binder object that clients can use to perform actions on the queue of operations,
|
||||
* except the addition of new operations.
|
||||
|
@ -338,9 +347,9 @@ public class OperationsService extends Service {
|
|||
}
|
||||
}
|
||||
|
||||
public RemoteOperationResult getOperationResultIfFinished(int mDetectAuthOpId) {
|
||||
//Log_OC.wtf(TAG, "Searching result for operation with id " + mDetectAuthOpId);
|
||||
return mOperationResults.remove(mDetectAuthOpId);
|
||||
public RemoteOperationResult getOperationResultIfFinished(int operationId) {
|
||||
//Log_OC.wtf(TAG, "Searching result for operation with id " + operationId);
|
||||
return mOperationResults.remove(operationId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue