ditch ThreadPoolExecutor for AsyncTask
This commit is contained in:
@@ -222,8 +222,7 @@ public class BackupOperation extends BaseOperation<BackupKeyringParcel> {
|
||||
}
|
||||
int numKeys = unifiedKeyInfos.size();
|
||||
|
||||
updateProgress(mContext.getResources().getQuantityString(R.plurals.progress_exporting_key, numKeys),
|
||||
0, numKeys);
|
||||
updateProgress(numKeys == 1 ? R.string.progress_exporting_key : R.string.progress_exporting_key, 0, numKeys);
|
||||
|
||||
// For each public masterKey id
|
||||
for (UnifiedKeyInfo keyInfo : unifiedKeyInfos) {
|
||||
|
||||
@@ -88,12 +88,6 @@ public abstract class BaseOperation<T extends Parcelable> implements PassphraseC
|
||||
}
|
||||
}
|
||||
|
||||
public void updateProgress(String message, int current, int total) {
|
||||
if (mProgressable != null) {
|
||||
mProgressable.setProgress(message, current, total);
|
||||
}
|
||||
}
|
||||
|
||||
public void updateProgress(int current, int total) {
|
||||
if (mProgressable != null) {
|
||||
mProgressable.setProgress(current, total);
|
||||
|
||||
Reference in New Issue
Block a user