From 89adae154cf08a89c9a7c3e2250428cbac5c385a Mon Sep 17 00:00:00 2001 From: oligami-0424 Date: Thu, 14 Dec 2023 21:51:14 +0900 Subject: [PATCH] patch --- rust/android/jni/nick_name.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/android/jni/nick_name.rs b/rust/android/jni/nick_name.rs index b10d5b8..d8eb406 100644 --- a/rust/android/jni/nick_name.rs +++ b/rust/android/jni/nick_name.rs @@ -378,7 +378,7 @@ impl NickName { /// * String deviceName = myDevice.getName(); /// https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#getDefaultAdapter() pub fn get_bluetooth_name_old(&self) -> crate::Result { - if crate::get_device_api_level()? < 5 { + if crate::get_device_api_level()? < 5 { return Err(crate::Error::ApiLevelTooLow); } @@ -417,7 +417,7 @@ impl NickName { /// * Android Emulator don't has bluetooth feature /// https://developer.android.com/reference/android/bluetooth/BluetoothManager#getAdapter() pub fn get_bluetooth_name_new(&self) -> crate::Result { - if crate::get_device_api_level()? < 18 { + if crate::get_device_api_level()? < 18 { return Err(crate::Error::ApiLevelTooLow); }