OSDN Git Service

Fix non-existing received file still appearing in live folder issue
authorLixin Yue <L.X.YUE@motorola.com>
Wed, 16 Dec 2009 08:07:53 +0000 (16:07 +0800)
committerJaikumar Ganesh <jaikumar@google.com>
Tue, 22 Dec 2009 18:06:58 +0000 (10:06 -0800)
commit1f0fc26568c1babf0c66d2c75812b72e894eb0de
treef37ecaed890071c5305fa776992db0e6d2902ed1
parenta4508589f298c67fda54c344760ae39f0f375c11
Fix non-existing received file still appearing in live folder issue

After receiving a file by OPP from Bluetooth remote device, user can delete
this file from Gallery or 3rd party application. In Opp live folder, user
could still open this file, but with dialog "file not exist" displayed, and
there is no way to make this file disappear from liver folder.
Current solution is to delete the BT OPP DB record after openning an invalid
uri associated with the file in folder, as an easy method without syncing.
src/com/android/bluetooth/opp/BluetoothOppReceiver.java
src/com/android/bluetooth/opp/BluetoothOppTransferActivity.java
src/com/android/bluetooth/opp/BluetoothOppUtility.java