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

Commit 0e536aaf authored by Victor Chang's avatar Victor Chang
Browse files

Fix compile-time error due to Thread.Builder API

Thread.Builder API is being added as the API, and caused the following
error:

AggregationSuggestionEngine.java:221: error: incompatible types:
android.provider.ContactsContract.Contacts.AggregationSuggestions.Builder
cannot be converted to java.lang.Thread.Builder

Flag: EXEMPT refactor
Bug: 346542404
Test: m Contacts
Change-Id: I79d1d41349adbbe9d316d851bf7c581b2f64dc0e
parent 2d1ab29a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ public class AggregationSuggestionEngine extends HandlerThread {

        // AggregationSuggestions.Builder() became visible in API level 23, so use it if applicable.
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            final Builder uriBuilder = new AggregationSuggestions.Builder()
            final AggregationSuggestions.Builder uriBuilder = new AggregationSuggestions.Builder()
                    .setLimit(SUGGESTIONS_LIMIT)
                    .setContactId(mContactId);
            if (nameSb.length() != 0) {