diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-12-08 04:03:35 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-12-08 04:03:35 +0000 |
commit | fe5d60748922f95fb47a96c963fd04801886edcf (patch) | |
tree | 9699e42279a77adc0bd2ee94a4fb75772a42c2c8 | |
parent | ebfdae4ab203e8ea2f34f26e9dd38d2fb38545ef (diff) | |
parent | fb8ecbff5dfeeb62e02eea71f6226c7e7738d906 (diff) | |
download | Bluetooth-android10-security-release.tar.gz |
Merge cherrypicks of ['ag/20417237'] into security-aosp-qt-release.android-security-10.0.0_r75android10-security-release
Change-Id: I34a99a9119a69e65c8ec77dc2e692df34e78332c
-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) { |