Use correct Uri in IsSuperPrimaryName test

Bug: 21171472
Change-Id: I960a8fa9e17f47501a640fbd73bbd5fd0ac894c5
diff --git a/tests/tests/provider/src/android/provider/cts/ContactsContract_IsSuperPrimaryName.java b/tests/tests/provider/src/android/provider/cts/ContactsContract_IsSuperPrimaryName.java
index 4ff6a88..603cb61 100644
--- a/tests/tests/provider/src/android/provider/cts/ContactsContract_IsSuperPrimaryName.java
+++ b/tests/tests/provider/src/android/provider/cts/ContactsContract_IsSuperPrimaryName.java
@@ -112,10 +112,10 @@
         //
 
         // Execute: make the non primary name IS_SUPER_PRIMARY
-        TestData nonPrimaryName = isFirstNamePrimary ? name1 : name2;
+        TestData nonPrimaryName = !isFirstNamePrimary ? name1 : name2;
         ContentValues values = new ContentValues();
         values.put(StructuredName.IS_SUPER_PRIMARY, 1);
-        mResolver.update(nonPrimaryName.getContentUri(), values, null, null);
+        mResolver.update(nonPrimaryName.getUri(), values, null, null);
 
         // Verify: the IS_SUPER_PRIMARY values swap
         name1.load();