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

Commit 73e7f11a authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

Prevent duplicate OPP permission request dialogs

When multiple files are sent in a single OPP session, the user should be
prompted to accept/reject only once.

Bug: 17770561
Change-Id: I438116915883c5fdc2d743f13456006f66511c0f
parent 96da8e36
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -276,7 +276,8 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen

        boolean needConfirm = true;
        /** It's not first put if !serverBlocking, so we auto accept it */
        if (!mServerBlocking && mAccepted == BluetoothShare.USER_CONFIRMATION_CONFIRMED) {
        if (!mServerBlocking && (mAccepted == BluetoothShare.USER_CONFIRMATION_CONFIRMED ||
                mAccepted == BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED)) {
            values.put(BluetoothShare.USER_CONFIRMATION,
                    BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED);
            needConfirm = false;