clean up warnings in CryptoOperationHelper
This commit is contained in:
parent
1fcc1889ec
commit
ebf7512a9d
|
@ -90,12 +90,12 @@ public class CryptoOperationHelper<T extends Parcelable, S extends OperationResu
|
||||||
// summands are stored in the mHelperId for easy operation.
|
// summands are stored in the mHelperId for easy operation.
|
||||||
private final int mHelperId;
|
private final int mHelperId;
|
||||||
// bitmask for helperId is everything except the least 8 bits
|
// bitmask for helperId is everything except the least 8 bits
|
||||||
public static final int HELPER_ID_BITMASK = ~0xff;
|
private static final int HELPER_ID_BITMASK = ~0xff;
|
||||||
|
|
||||||
public static final int REQUEST_CODE_PASSPHRASE = 1;
|
private static final int REQUEST_CODE_PASSPHRASE = 1;
|
||||||
public static final int REQUEST_CODE_NFC = 2;
|
private static final int REQUEST_CODE_NFC = 2;
|
||||||
public static final int REQUEST_CODE_ENABLE_ORBOT = 3;
|
private static final int REQUEST_CODE_ENABLE_ORBOT = 3;
|
||||||
public static final int REQUEST_CODE_RETRY_UPLOAD = 4;
|
private static final int REQUEST_CODE_RETRY_UPLOAD = 4;
|
||||||
|
|
||||||
private Integer mProgressMessageResource;
|
private Integer mProgressMessageResource;
|
||||||
private boolean mCancellable = false;
|
private boolean mCancellable = false;
|
||||||
|
@ -264,14 +264,16 @@ public class CryptoOperationHelper<T extends Parcelable, S extends OperationResu
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cryptoOperation(final CryptoInputParcel cryptoInput) {
|
public void cryptoOperation(final CryptoInputParcel cryptoInput) {
|
||||||
|
|
||||||
FragmentActivity activity = mUseFragment ? mFragment.getActivity() : mActivity;
|
|
||||||
|
|
||||||
T operationInput = mCallback.createOperationInput();
|
T operationInput = mCallback.createOperationInput();
|
||||||
if (operationInput == null) {
|
if (operationInput == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FragmentActivity activity = mUseFragment ? mFragment.getActivity() : mActivity;
|
||||||
|
if (activity == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
|
||||||
ProgressDialogManager progressDialogManager;
|
ProgressDialogManager progressDialogManager;
|
||||||
if (mProgressMessageResource != null) {
|
if (mProgressMessageResource != null) {
|
||||||
progressDialogManager = new ProgressDialogManager(activity);
|
progressDialogManager = new ProgressDialogManager(activity);
|
||||||
|
@ -323,8 +325,8 @@ public class CryptoOperationHelper<T extends Parcelable, S extends OperationResu
|
||||||
}
|
}
|
||||||
|
|
||||||
@UiThread
|
@UiThread
|
||||||
private void onHandleResult(final OperationResult result) {
|
private void onHandleResult(OperationResult result) {
|
||||||
Timber.d("Handling result in OperationHelper success: " + result.success());
|
Timber.d("Handling result in OperationHelper success: %s", result.success());
|
||||||
|
|
||||||
if (result instanceof InputPendingResult) {
|
if (result instanceof InputPendingResult) {
|
||||||
InputPendingResult pendingResult = (InputPendingResult) result;
|
InputPendingResult pendingResult = (InputPendingResult) result;
|
||||||
|
|
Loading…
Reference in a new issue