summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/ui/SecondLevelIndicatorControlBar.java')
-rw-r--r--src/com/android/camera/ui/SecondLevelIndicatorControlBar.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java b/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java
index 5ce586e..b725002 100644
--- a/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java
+++ b/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java
@@ -43,7 +43,7 @@ public class SecondLevelIndicatorControlBar extends IndicatorControl implements
public void initialize(Context context, PreferenceGroup group,
String[] keys, String[] otherSettingKeys) {
if (mCloseIcon == null) {
- mCloseIcon = new ImageView(context);
+ mCloseIcon = new ColorFilterImageView(context);
mCloseIcon.setImageResource(R.drawable.btn_close_settings);
mCloseIcon.setOnClickListener(this);
addView(mCloseIcon);
@@ -112,4 +112,13 @@ public class SecondLevelIndicatorControlBar extends IndicatorControl implements
top + i * height / count + h);
}
}
+
+ @Override
+ public void setEnabled(boolean enabled) {
+ super.setEnabled(enabled);
+ if (mCurrentMode == MODE_VIDEO) {
+ mCloseIcon.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE);
+ }
+ mCloseIcon.setEnabled(enabled);
+ }
}