Bug 899711 - Notify file change after receiving an one-packet-size file. r=gyeh, a=leo+
authorEric Chou <echou@mozilla.com>
Thu, 01 Aug 2013 12:32:18 +0800
changeset 119831 7375ee9442d2151d49a6a94ef15e4055b7b03899
parent 119830 43a00244c61e09f634393796ef9cbc9233396637
child 119832 28b9d4af74789e88e31f00158be195f80995b6b6
push id1017
push userryanvm@gmail.com
push dateTue, 06 Aug 2013 19:16:36 +0000
reviewersgyeh, leo
bugs899711
milestone18.1
Bug 899711 - Notify file change after receiving an one-packet-size file. r=gyeh, a=leo+
dom/bluetooth/BluetoothOppManager.cpp
--- a/dom/bluetooth/BluetoothOppManager.cpp
+++ b/dom/bluetooth/BluetoothOppManager.cpp
@@ -431,16 +431,17 @@ BluetoothOppManager::ConfirmReceivingFil
     if (CreateFile()) {
       success = WriteToFile(mBodySegment.get(), mBodySegmentLength);
     }
   }
 
   if (success && mPutFinalFlag) {
     mSuccessFlag = true;
     FileTransferComplete();
+    NotifyAboutFileChange();
   }
 
   ReplyToPut(mPutFinalFlag, success);
   return true;
 }
 
 void
 BluetoothOppManager::AfterFirstPut()