summaryrefslogtreecommitdiff
path: root/java/com/android/incallui/answer/impl/FixedAspectSurfaceView.java
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2017-12-27 17:02:37 -0800
committerCopybara-Service <copybara-piper@google.com>2017-12-27 17:03:47 -0800
commit183cb71663320f16149d83eeebaff7795a4b55f2 (patch)
treebc8bfcce809257b3ddbb423a9808082292b9f6a3 /java/com/android/incallui/answer/impl/FixedAspectSurfaceView.java
parentfc81a030a7b4f6d4a497f71aed593d398795e7da (diff)
Remove field prefixes.
Test: Existing tests PiperOrigin-RevId: 180230450 Change-Id: I0b2589cfeeaef81e42a04efa48af24b4e4d0e95f
Diffstat (limited to 'java/com/android/incallui/answer/impl/FixedAspectSurfaceView.java')
-rw-r--r--java/com/android/incallui/answer/impl/FixedAspectSurfaceView.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/com/android/incallui/answer/impl/FixedAspectSurfaceView.java b/java/com/android/incallui/answer/impl/FixedAspectSurfaceView.java
index ad7d94d95..1f7e6fe91 100644
--- a/java/com/android/incallui/answer/impl/FixedAspectSurfaceView.java
+++ b/java/com/android/incallui/answer/impl/FixedAspectSurfaceView.java
@@ -34,7 +34,7 @@ import com.android.dialer.common.Assert;
public class FixedAspectSurfaceView extends SurfaceView {
/** Desired width/height ratio */
- private float mAspectRatio;
+ private float aspectRatio;
private final boolean scaleWidth;
private final boolean scaleHeight;
@@ -60,7 +60,7 @@ public class FixedAspectSurfaceView extends SurfaceView {
*/
public void setAspectRatio(float aspect) {
Assert.checkArgument(aspect >= 0, "Aspect ratio must be positive");
- mAspectRatio = aspect;
+ aspectRatio = aspect;
requestLayout();
}
@@ -71,9 +71,9 @@ public class FixedAspectSurfaceView extends SurfaceView {
// Do the scaling
if (scaleWidth) {
- width = (int) (height * mAspectRatio);
+ width = (int) (height * aspectRatio);
} else if (scaleHeight) {
- height = (int) (width / mAspectRatio);
+ height = (int) (width / aspectRatio);
}
// Override width/height if needed for EXACTLY and AT_MOST specs