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

Commit 089772d4 authored by Shuki Hashimoto's avatar Shuki Hashimoto Committed by android-build-merger
Browse files

Merge "OPP: Fix "0%" progress even after file transfer finished"

am: 17227a12

Change-Id: Idb8003add2df20febf6d0d4f74fedc816211c6ca
parents b085c4d3 17227a12
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -418,6 +418,13 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                        /* check remote accept or reject */
                        responseCode = putOperation.getResponseCode();

                        if (position == fileInfo.mLength) {
                            // if file length is smaller than buffer size, only one packet
                            // so block point is here
                            outputStream.close();
                            outputStream = null;
                        }

                        mCallback.removeMessages(BluetoothOppObexSession.MSG_CONNECT_TIMEOUT);
                        synchronized (this) {
                            mWaitingForRemote = false;