Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67f715b7 authored by William Escande's avatar William Escande
Browse files

Prevent newApi error when checking after flag

Bug: 386841394
Test: None
Flag: Exempt lint warning silence
Change-Id: I636f902223de69eb198a741ef8a6ae63eb5313d0
parent 481b69d9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -343,6 +343,7 @@ public class BassClientService extends ProfileService {
            return handler.hasMessages(msg);
        }

        @SuppressLint("NewApi") // Api is protected by flag check and the lint is wrong
        private boolean hasAnyMessagesOrCallbacks(Handler handler) {
            if (android.os.Flags.mainlineVcnPlatformApi()) {
                return handler.hasMessagesOrCallbacks();