diff options
author | Byunghun Jeon <bjeon@codeaurora.org> | 2016-04-12 15:40:00 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-21 18:45:51 -0700 |
commit | c4ad87b4a6ddc6096958277938946c7ea8cad4a5 (patch) | |
tree | 072a145405eb9d076c4d9a1c9ad7ab15418ec942 /src | |
parent | d92108bb8d8548f0760fb103286751c62497459d (diff) | |
download | android_packages_apps_Snap-c4ad87b4a6ddc6096958277938946c7ea8cad4a5.tar.gz android_packages_apps_Snap-c4ad87b4a6ddc6096958277938946c7ea8cad4a5.tar.bz2 android_packages_apps_Snap-c4ad87b4a6ddc6096958277938946c7ea8cad4a5.zip |
SnapdragonCamera: Replace SurfaceView with AutoFitSurfaceView
Replace SurfaceView with AutoFitSurfaceView
Change-Id: Id4bf27e3b16f12ff4cfdce47224ff871b3981838
CRs-Fixed: 989750
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/ui/AutoFitSurfaceView.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/camera/ui/AutoFitSurfaceView.java b/src/com/android/camera/ui/AutoFitSurfaceView.java index f4903e19f..38be39cf9 100644 --- a/src/com/android/camera/ui/AutoFitSurfaceView.java +++ b/src/com/android/camera/ui/AutoFitSurfaceView.java @@ -14,29 +14,29 @@ * limitations under the License. */ -package com.example.android.camera2basic; +package com.android.camera.ui; import android.content.Context; import android.util.AttributeSet; -import android.view.TextureView; +import android.view.SurfaceView; /** - * A {@link TextureView} that can be adjusted to a specified aspect ratio. + * A {@link SurfaceView} that can be adjusted to a specified aspect ratio. */ -public class AutoFitTextureView extends TextureView { +public class AutoFitSurfaceView extends SurfaceView { private int mRatioWidth = 0; private int mRatioHeight = 0; - public AutoFitTextureView(Context context) { + public AutoFitSurfaceView(Context context) { this(context, null); } - public AutoFitTextureView(Context context, AttributeSet attrs) { + public AutoFitSurfaceView(Context context, AttributeSet attrs) { this(context, attrs, 0); } - public AutoFitTextureView(Context context, AttributeSet attrs, int defStyle) { + public AutoFitSurfaceView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } |