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

Commit 0110293b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "OPP: Update batch status when sdp failed"

parents f78c6651 3d93d09b
Loading
Loading
Loading
Loading
+14 −15
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
                            intent.getParcelableExtra(BluetoothDevice.EXTRA_SDP_RECORD);
                    if (record == null) {
                        Log.w(TAG, " Invalid SDP , ignoring !!");
                        markConnectionFailed(null);
                        return;
                    }
                    mConnectThread =
@@ -827,6 +828,7 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
                return;
            }
        }
    };

    private void markConnectionFailed(BluetoothSocket s) {
        if (V) {
@@ -844,9 +846,6 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
        mSessionHandler.obtainMessage(TRANSPORT_ERROR).sendToTarget();
        return;
    }
    }

    ;

    /* update a trivial field of a share to notify Provider the batch status change */
    private void tickShareStatus(BluetoothOppShareInfo share) {