remove broken(?) cancellation code
This commit is contained in:
@@ -52,23 +52,12 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
public class PgpImportExport {
|
||||
|
||||
// TODO: is this really used?
|
||||
public interface KeychainServiceListener {
|
||||
boolean hasServiceStopped();
|
||||
}
|
||||
|
||||
private Context mContext;
|
||||
private Progressable mProgressable;
|
||||
private AtomicBoolean mCancelled;
|
||||
|
||||
private KeychainServiceListener mKeychainServiceListener;
|
||||
|
||||
private ProviderHelper mProviderHelper;
|
||||
|
||||
public PgpImportExport(Context context, Progressable progressable) {
|
||||
this(context, new ProviderHelper(context), progressable);
|
||||
}
|
||||
|
||||
public PgpImportExport(Context context, ProviderHelper providerHelper, Progressable progressable) {
|
||||
super();
|
||||
this.mContext = context;
|
||||
@@ -84,15 +73,6 @@ public class PgpImportExport {
|
||||
mCancelled = cancelled;
|
||||
}
|
||||
|
||||
public PgpImportExport(Context context,
|
||||
Progressable progressable, KeychainServiceListener keychainListener) {
|
||||
super();
|
||||
this.mContext = context;
|
||||
this.mProgressable = progressable;
|
||||
this.mProviderHelper = new ProviderHelper(context);
|
||||
this.mKeychainServiceListener = keychainListener;
|
||||
}
|
||||
|
||||
public void updateProgress(int message, int current, int total) {
|
||||
if (mProgressable != null) {
|
||||
mProgressable.setProgress(message, current, total);
|
||||
@@ -277,11 +257,6 @@ public class PgpImportExport {
|
||||
// TODO: inform user?
|
||||
}
|
||||
|
||||
if (mKeychainServiceListener.hasServiceStopped()) {
|
||||
arOutStream.close();
|
||||
return null;
|
||||
}
|
||||
|
||||
arOutStream.close();
|
||||
}
|
||||
|
||||
@@ -306,11 +281,6 @@ public class PgpImportExport {
|
||||
// TODO: inform user?
|
||||
}
|
||||
|
||||
if (mKeychainServiceListener.hasServiceStopped()) {
|
||||
arOutStream.close();
|
||||
return null;
|
||||
}
|
||||
|
||||
arOutStream.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user