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

Commit 17227a12 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents c024cec3 4b746205
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -416,6 +416,13 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {

                        position += readLength;

                        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;