diff options
| author | Wu-cheng Li <wuchengli@google.com> | 2011-05-12 15:59:43 +0800 |
|---|---|---|
| committer | Wu-cheng Li <wuchengli@google.com> | 2011-05-12 17:13:40 +0800 |
| commit | d4594cafc86f8400012146abd48534aa9d68d92d (patch) | |
| tree | d3f1e1be6a15b74fa2cca87778f87581d616863c /src/com/android/camera/PreviewFrameLayout.java | |
| parent | 5725e5c34d78f6d187efeba52273266bc7868598 (diff) | |
| download | LegacyCamera-d4594cafc86f8400012146abd48534aa9d68d92d.zip LegacyCamera-d4594cafc86f8400012146abd48534aa9d68d92d.tar.gz LegacyCamera-d4594cafc86f8400012146abd48534aa9d68d92d.tar.bz2 | |
Remove unused code and resource.
Change-Id: Ia6d98847716ef187eefd05758c5c61b530967b27
Diffstat (limited to 'src/com/android/camera/PreviewFrameLayout.java')
| -rw-r--r-- | src/com/android/camera/PreviewFrameLayout.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/com/android/camera/PreviewFrameLayout.java b/src/com/android/camera/PreviewFrameLayout.java index 982e088..4583d5d 100644 --- a/src/com/android/camera/PreviewFrameLayout.java +++ b/src/com/android/camera/PreviewFrameLayout.java @@ -39,7 +39,6 @@ public class PreviewFrameLayout extends RelativeLayout { private double mAspectRatio = 4.0 / 3.0; private View mFrame; private View mBorderView; - private RadioGroup mCameraPicker; private OnSizeChangedListener mSizeListener; private final DisplayMetrics mMetrics = new DisplayMetrics(); @@ -61,7 +60,6 @@ public class PreviewFrameLayout extends RelativeLayout { throw new IllegalStateException( "must provide child with id as \"frame\""); } - mCameraPicker = (RadioGroup) findViewById(R.id.camera_picker); View preview = (View) findViewById(R.id.camera_preview); ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) @@ -111,16 +109,5 @@ public class PreviewFrameLayout extends RelativeLayout { if (mSizeListener != null) { mSizeListener.onSizeChanged(); } - if (mCameraPicker != null) { - mCameraPicker.measure( - MeasureSpec.makeMeasureSpec(r - l, MeasureSpec.AT_MOST), - MeasureSpec.makeMeasureSpec(b - t, MeasureSpec.AT_MOST)); - int width = mCameraPicker.getMeasuredWidth(); - int height = mCameraPicker.getMeasuredHeight(); - int ct = t + ((ViewGroup.MarginLayoutParams) - mCameraPicker.getLayoutParams()).topMargin; - int cl = (r - l - width) / 2; - mCameraPicker.layout(cl, ct, cl + width, ct + height); - } } } |
