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

Commit 2675ea8f authored by Heemin Seog's avatar Heemin Seog Committed by android-build-merger
Browse files

Merge "Make the default user the current user (not 0)" into qt-qpr1-dev

am: a7bdb8ba

Change-Id: Iea445966a2da3fa8d03e252f0a78290ecaf68199
parents cd084d5c a7bdb8ba
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@

package android.testing;

import static org.junit.Assert.assertEquals;

import android.content.ContentProviderClient;
import android.content.Context;
import android.os.Bundle;
@@ -25,8 +27,6 @@ import android.util.Log;

import java.util.HashMap;

import static org.junit.Assert.*;

/**
 * Allows calls to android.provider.Settings to be tested easier.
 *
@@ -71,7 +71,7 @@ public class TestableSettingsProvider extends MockContentProvider {

    public Bundle call(String method, String arg, Bundle extras) {
        // Methods are "GET_system", "GET_global", "PUT_secure", etc.
        final int userId = extras.getInt(Settings.CALL_METHOD_USER_KEY, 0);
        final int userId = extras.getInt(Settings.CALL_METHOD_USER_KEY, UserHandle.myUserId());
        final String[] commands = method.split("_", 2);
        final String op = commands[0];
        final String table = commands[1];