diff options
author | Lixin Yue <L.X.YUE@motorola.com> | 2009-09-29 13:57:36 +0800 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2009-09-29 18:51:27 -0700 |
commit | b0fa09caef6a0748a568dc2a89f5d94b85423bb2 (patch) | |
tree | d04a6a44bcd6d5d36396b36305a8974b29ced4e8 /src/com/android/bluetooth/opp/BluetoothOppTransfer.java | |
parent | c1a5501b401400368379681cbb961dd5c38311c6 (diff) | |
download | android_packages_apps_Bluetooth-b0fa09caef6a0748a568dc2a89f5d94b85423bb2.tar.gz android_packages_apps_Bluetooth-b0fa09caef6a0748a568dc2a89f5d94b85423bb2.tar.bz2 android_packages_apps_Bluetooth-b0fa09caef6a0748a568dc2a89f5d94b85423bb2.zip |
Update OPP/PBAP UI
Add timeout handling to incoming file confirm dialog, to avoid uncertain
behavior when timeout happen
Fix PBAP request timeout issue when open/close slider, dismiss timeout
dialog to avoid uncertain behavior
Fix typo in strings
Diffstat (limited to 'src/com/android/bluetooth/opp/BluetoothOppTransfer.java')
-rw-r--r-- | src/com/android/bluetooth/opp/BluetoothOppTransfer.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppTransfer.java b/src/com/android/bluetooth/opp/BluetoothOppTransfer.java index c84e69289..7ca7857db 100644 --- a/src/com/android/bluetooth/opp/BluetoothOppTransfer.java +++ b/src/com/android/bluetooth/opp/BluetoothOppTransfer.java @@ -34,6 +34,7 @@ package com.android.bluetooth.opp; import javax.obex.ObexTransport; +import android.app.NotificationManager; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; @@ -273,9 +274,19 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch } if (V) Log.v(TAG, "mTransport closed "); } else { - /* For inbound transfer, the block point is waiting for user confirmation - * we can interrupt it nicely + /* + * For inbound transfer, the block point is waiting for + * user confirmation we can interrupt it nicely */ + + // Remove incoming file confirm notification + NotificationManager nm = (NotificationManager)mContext + .getSystemService(Context.NOTIFICATION_SERVICE); + nm.cancel(mCurrentShare.mId); + // Send intent to UI for timeout handling + Intent in = new Intent(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION); + mContext.sendBroadcast(in); + markShareTimeout(mCurrentShare); } break; |