From 947441aeb9be8d049c220b1c02956cac0da5f829 Mon Sep 17 00:00:00 2001 From: chok Date: Tue, 13 Jun 2017 20:31:39 -0700 Subject: Minor bug fix to btUnpairedDevice() (#61) * Fixed btUnpairDevice() bug where an exception is thrown even in the success case --- .../android/mobly/snippet/bundled/bluetooth/BluetoothAdapterSnippet.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/java/com/google/android/mobly/snippet/bundled/bluetooth/BluetoothAdapterSnippet.java b/src/main/java/com/google/android/mobly/snippet/bundled/bluetooth/BluetoothAdapterSnippet.java index 5971517..81ffd2d 100644 --- a/src/main/java/com/google/android/mobly/snippet/bundled/bluetooth/BluetoothAdapterSnippet.java +++ b/src/main/java/com/google/android/mobly/snippet/bundled/bluetooth/BluetoothAdapterSnippet.java @@ -246,6 +246,7 @@ public class BluetoothAdapterSnippet implements Snippet { throw new BluetoothAdapterSnippetException( "Failed to un-pair device " + deviceAddress + " after 30s."); } + return; } } throw new NoSuchElementException("No device wih address " + deviceAddress + " is paired."); -- cgit v1.2.3