From c5e37cbb96b8284203560c51dd5f41c705a21f58 Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Thu, 30 Jun 2011 17:27:21 +0800 Subject: Add expanded thumbnail in phone UI. bug:4725968 Change-Id: I2a59a3714b93bc96f2a1689d948c9e4e0edd14cb --- src/com/android/camera/ui/IndicatorWheel.java | 29 +++++---------------------- 1 file changed, 5 insertions(+), 24 deletions(-) (limited to 'src/com/android/camera/ui/IndicatorWheel.java') diff --git a/src/com/android/camera/ui/IndicatorWheel.java b/src/com/android/camera/ui/IndicatorWheel.java index 1a374da..c2d7d3c 100644 --- a/src/com/android/camera/ui/IndicatorWheel.java +++ b/src/com/android/camera/ui/IndicatorWheel.java @@ -16,7 +16,6 @@ package com.android.camera.ui; -import com.android.camera.ComboPreferences; import com.android.camera.IconListPreference; import com.android.camera.PreferenceGroup; import com.android.camera.R; @@ -26,24 +25,22 @@ import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.RectF; -import android.os.Handler; import android.os.SystemClock; import android.util.AttributeSet; -import android.util.Log; -import android.widget.ImageView; -import android.view.animation.Animation; -import android.view.animation.AnimationUtils; import android.view.LayoutInflater; import android.view.MotionEvent; -import android.view.ViewGroup; import android.view.View; +import android.view.ViewGroup; +import android.view.animation.Animation; +import android.view.animation.AnimationUtils; +import android.widget.ImageView; import java.util.ArrayList; /** * A view that contains shutter button and camera setting indicators. The * indicators are spreaded around the shutter button. The first child is always - * the shutter button. The last indicator is always the share button. + * the shutter button. */ public class IndicatorWheel extends ViewGroup implements BasicSettingPopup.Listener, OtherSettingsPopup.Listener { @@ -98,7 +95,6 @@ public class IndicatorWheel extends ViewGroup implements public void onSharedPreferenceChanged(); public void onRestorePreferencesClicked(); public void onOverriddenPreferencesClicked(); - public void onShareButtonClicked(); } public void setListener(Listener listener) { @@ -467,9 +463,6 @@ public class IndicatorWheel extends ViewGroup implements } mSettingPopups = new AbstractSettingPopup[len]; - // Add share button. It is always the last one. - addIndicator(context, R.drawable.ic_viewfinder_share); - requestLayout(); } @@ -494,12 +487,6 @@ public class IndicatorWheel extends ViewGroup implements } } - public void onShareButtonClicked() { - if (mListener != null) { - mListener.onShareButtonClicked(); - } - } - private void initializeSettingPopup(int index) { LayoutInflater inflater = (LayoutInflater) mContext.getSystemService( Context.LAYOUT_INFLATER_SERVICE); @@ -527,12 +514,6 @@ public class IndicatorWheel extends ViewGroup implements private void showSettingPopup(int index) { if (index == mSelectedIndex) return; - // The share button is the last indicator. - if (index == mIndicatorCount - 1) { - onShareButtonClicked(); - return; - } - if (mSettingPopups[index] == null) initializeSettingPopup(index); if (mPrevAnimatingView != null) mPrevAnimatingView.clearAnimation(); -- cgit v1.1