diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-05-10 16:17:23 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-05-10 16:17:23 +0000 |
commit | 0bb17778eb5c8afa34a25d27c955630eaf494425 (patch) | |
tree | 0ebed1f11f75800404ad7b3edb7d78f8e8765c07 | |
parent | 2de9623e28da4f47a9962271d8ff24a3c9d30ec4 (diff) | |
parent | b265f5079f81bf0d42ef24747369ad94ea0a420b (diff) | |
download | Bluetooth-q_tzdata_aml_297100000.tar.gz |
Snap for 10101514 from b265f5079f81bf0d42ef24747369ad94ea0a420b to qt-aml-tzdata-releaseq_tzdata_aml_297100400q_tzdata_aml_297100300q_tzdata_aml_297100000q_tzdata_aml_296200000q_tzdata_aml_297100000android10-android13-mainline-tzdata-release
Change-Id: Ib01749d538798abb6190fd7aa83d2d022760174d
-rw-r--r-- | src/com/android/bluetooth/opp/BluetoothOppUtility.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppUtility.java b/src/com/android/bluetooth/opp/BluetoothOppUtility.java index 7fdbe1302..b0878e83c 100644 --- a/src/com/android/bluetooth/opp/BluetoothOppUtility.java +++ b/src/com/android/bluetooth/opp/BluetoothOppUtility.java @@ -60,6 +60,7 @@ import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.Objects; import java.util.concurrent.ConcurrentHashMap; /** @@ -77,10 +78,10 @@ public class BluetoothOppUtility { public static boolean isBluetoothShareUri(Uri uri) { if (uri.toString().startsWith(BluetoothShare.CONTENT_URI.toString()) - && !uri.getAuthority().equals(BluetoothShare.CONTENT_URI.getAuthority())) { + && !Objects.equals(uri.getAuthority(), BluetoothShare.CONTENT_URI.getAuthority())) { EventLog.writeEvent(0x534e4554, "225880741", -1, ""); } - return uri.getAuthority().equals(BluetoothShare.CONTENT_URI.getAuthority()); + return Objects.equals(uri.getAuthority(), BluetoothShare.CONTENT_URI.getAuthority()); } public static BluetoothOppTransferInfo queryRecord(Context context, Uri uri) { |