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/InCallUIMaterialColorMapUtils.java | |
parent | fc81a030a7b4f6d4a497f71aed593d398795e7da (diff) | |
parent | 183cb71663320f16149d83eeebaff7795a4b55f2 (diff) |
Merge "Remove field prefixes."
Diffstat (limited to 'java/com/android/incallui/InCallUIMaterialColorMapUtils.java')
-rw-r--r-- | java/com/android/incallui/InCallUIMaterialColorMapUtils.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/java/com/android/incallui/InCallUIMaterialColorMapUtils.java b/java/com/android/incallui/InCallUIMaterialColorMapUtils.java index 7b06a5e39..945e9fb5a 100644 --- a/java/com/android/incallui/InCallUIMaterialColorMapUtils.java +++ b/java/com/android/incallui/InCallUIMaterialColorMapUtils.java @@ -23,15 +23,15 @@ import com.android.contacts.common.util.MaterialColorMapUtils; public class InCallUIMaterialColorMapUtils extends MaterialColorMapUtils { - private final TypedArray mPrimaryColors; - private final TypedArray mSecondaryColors; - private final Resources mResources; + private final TypedArray primaryColors; + private final TypedArray secondaryColors; + private final Resources resources; public InCallUIMaterialColorMapUtils(Resources resources) { super(resources); - mPrimaryColors = resources.obtainTypedArray(R.array.background_colors); - mSecondaryColors = resources.obtainTypedArray(R.array.background_colors_dark); - mResources = resources; + primaryColors = resources.obtainTypedArray(R.array.background_colors); + secondaryColors = resources.obtainTypedArray(R.array.background_colors_dark); + this.resources = resources; } /** @@ -52,12 +52,12 @@ public class InCallUIMaterialColorMapUtils extends MaterialColorMapUtils { @Override public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { if (color == PhoneAccount.NO_HIGHLIGHT_COLOR) { - return getDefaultPrimaryAndSecondaryColors(mResources); + return getDefaultPrimaryAndSecondaryColors(resources); } - for (int i = 0; i < mPrimaryColors.length(); i++) { - if (mPrimaryColors.getColor(i, 0) == color) { - return new MaterialPalette(mPrimaryColors.getColor(i, 0), mSecondaryColors.getColor(i, 0)); + for (int i = 0; i < primaryColors.length(); i++) { + if (primaryColors.getColor(i, 0) == color) { + return new MaterialPalette(primaryColors.getColor(i, 0), secondaryColors.getColor(i, 0)); } } |