diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-12-28 02:35:07 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-12-28 02:35:07 +0000 |
commit | 281998c825ad48d842bb653e2f462719fdb0c1d9 (patch) | |
tree | bc8bfcce809257b3ddbb423a9808082292b9f6a3 /java/com/android/incallui/ContactsPreferencesFactory.java | |
parent | fc81a030a7b4f6d4a497f71aed593d398795e7da (diff) | |
parent | 183cb71663320f16149d83eeebaff7795a4b55f2 (diff) |
Merge "Remove field prefixes."
Diffstat (limited to 'java/com/android/incallui/ContactsPreferencesFactory.java')
-rw-r--r-- | java/com/android/incallui/ContactsPreferencesFactory.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/com/android/incallui/ContactsPreferencesFactory.java b/java/com/android/incallui/ContactsPreferencesFactory.java index 429de7bc9..a9a210963 100644 --- a/java/com/android/incallui/ContactsPreferencesFactory.java +++ b/java/com/android/incallui/ContactsPreferencesFactory.java @@ -24,8 +24,8 @@ import com.android.contacts.common.preference.ContactsPreferences; /** Factory class for {@link ContactsPreferences}. */ public class ContactsPreferencesFactory { - private static boolean sUseTestInstance; - private static ContactsPreferences sTestInstance; + private static boolean useTestInstance; + private static ContactsPreferences testInstance; /** * Creates a new {@link ContactsPreferences} object if possible. @@ -35,8 +35,8 @@ public class ContactsPreferencesFactory { */ @Nullable public static ContactsPreferences newContactsPreferences(Context context) { - if (sUseTestInstance) { - return sTestInstance; + if (useTestInstance) { + return testInstance; } if (UserManagerCompat.isUserUnlocked(context)) { return new ContactsPreferences(context); @@ -50,7 +50,7 @@ public class ContactsPreferencesFactory { * @param testInstance the instance to return. */ static void setTestInstance(ContactsPreferences testInstance) { - sUseTestInstance = true; - sTestInstance = testInstance; + useTestInstance = true; + ContactsPreferencesFactory.testInstance = testInstance; } } |