Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e41b9419 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "OPP: Remove markBatchFailed with no arguments"

am: 41df4537

Change-Id: I0f4b00fa57ff8db4c8311643eed347477c0eae52
parents 0aef8a15 41df4537
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -325,7 +325,7 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
                        if (info3 != null) {
                            markBatchFailed(info3.mStatus);
                        } else {
                            markBatchFailed();
                            markBatchFailed(BluetoothShare.STATUS_UNKNOWN_ERROR);
                        }
                        tickShareStatus(mCurrentShare);
                    }
@@ -441,10 +441,6 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch

    }

    private void markBatchFailed() {
        markBatchFailed(BluetoothShare.STATUS_UNKNOWN_ERROR);
    }

    /*
     * NOTE
     * For outbound transfer
@@ -474,7 +470,7 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
         */
        if (!mAdapter.isEnabled()) {
            Log.e(TAG, "Can't start transfer when Bluetooth is disabled for " + mBatch.mId);
            markBatchFailed();
            markBatchFailed(BluetoothShare.STATUS_UNKNOWN_ERROR);
            mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
            return;
        }
@@ -570,7 +566,7 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
            if (mSession == null) {
                /** set current share as error */
                Log.e(TAG, "Unexpected error happened !");
                markBatchFailed();
                markBatchFailed(BluetoothShare.STATUS_UNKNOWN_ERROR);
                mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
                return;
            }