Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
oligamiq committed Dec 14, 2023
1 parent ace088c commit 89adae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/android/jni/nick_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> {
if crate::get_device_api_level()? < 5 {
if crate::get_device_api_level()? < 5 {
return Err(crate::Error::ApiLevelTooLow);
}

Expand Down Expand Up @@ -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<String> {
if crate::get_device_api_level()? < 18 {
if crate::get_device_api_level()? < 18 {
return Err(crate::Error::ApiLevelTooLow);
}

Expand Down

0 comments on commit 89adae1

Please sign in to comment.