Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1434)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java

Issue 1625633004: bluetooth: Tell chooser discovery ended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Improve comment Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java b/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
index 825560da2bdd36f43574e2e9c0a454173fb84ab2..0d551b645d004a505e1db173cb8436fdadaa5054 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
@@ -318,6 +318,16 @@ public class BluetoothChooserDialog
checkLocationPermission();
break;
}
+ case DISCOVERY_IDLE: {
+ // If devices have been discovered already, sending an update to the
+ // chooser does nothing. Otherwise, if no devices have been discovered,
+ // sending and update to the chooser results in the "noneFound" label
+ // being shown.
+ List<ItemChooserDialog.ItemChooserRow> devices =
+ new ArrayList<ItemChooserDialog.ItemChooserRow>();
+ mItemChooserDialog.showList(devices);
+ break;
+ }
default: {
// TODO(jyasskin): Report the new state to the user.
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698