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

Commit e8ae51d7 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7090944 from c04e25d3 to sc-d1-release

Change-Id: I2161b7cf9c6bb4c5ba60184e77f72ba0128555e3
parents ece5c763 c04e25d3
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.content.ContentProviderOperation;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.provider.BaseColumns;
@@ -87,11 +88,12 @@ public class AccountWithDataSet implements Parcelable {
    }

    public static AccountWithDataSet getLocalAccount(Context context) {
        return new AccountWithDataSet(
        return android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.R
                ? getNullAccount()
                : new AccountWithDataSet(
                      RawContacts.getLocalAccountName(context),
                      RawContacts.getLocalAccountType(context),
                null
        );
                      null);
    }

    public Account getAccountOrNull() {
@@ -261,4 +263,3 @@ public class AccountWithDataSet implements Parcelable {
        return ret;
    }
}