summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/Camera.java
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2011-08-05 14:41:40 +0800
committerChung-yih Wang <cywang@google.com>2011-08-05 18:56:23 +0800
commite46d09dc17ac1cad5062fdc4b29916dc63da06c3 (patch)
treee4646cdb9c953d75a35ac801e6c70255f0127aa2 /src/com/android/camera/Camera.java
parentc926b2152b7d1b65f34b58af50d0c6cdeb070123 (diff)
downloadLegacyCamera-e46d09dc17ac1cad5062fdc4b29916dc63da06c3.zip
LegacyCamera-e46d09dc17ac1cad5062fdc4b29916dc63da06c3.tar.gz
LegacyCamera-e46d09dc17ac1cad5062fdc4b29916dc63da06c3.tar.bz2
Use View.GONE instead of View.INVISIBLE.
Refactor this to improve the performance. Change-Id: I6a20021bf07546b0cfa6b4c4b5fe0d67556940a5
Diffstat (limited to 'src/com/android/camera/Camera.java')
-rw-r--r--src/com/android/camera/Camera.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index 2090d30..b6fde8e 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -619,17 +619,17 @@ public class Camera extends ActivityBase implements View.OnClickListener,
private void showGpsOnScreenIndicator(boolean hasSignal) {
if (hasSignal) {
- if (mGpsNoSignalView != null) mGpsNoSignalView.setVisibility(View.INVISIBLE);
+ if (mGpsNoSignalView != null) mGpsNoSignalView.setVisibility(View.GONE);
if (mGpsHasSignalView != null) mGpsHasSignalView.setVisibility(View.VISIBLE);
} else {
if (mGpsNoSignalView != null) mGpsNoSignalView.setVisibility(View.VISIBLE);
- if (mGpsHasSignalView != null) mGpsHasSignalView.setVisibility(View.INVISIBLE);
+ if (mGpsHasSignalView != null) mGpsHasSignalView.setVisibility(View.GONE);
}
}
private void hideGpsOnScreenIndicator() {
- if (mGpsNoSignalView != null) mGpsNoSignalView.setVisibility(View.INVISIBLE);
- if (mGpsHasSignalView != null) mGpsHasSignalView.setVisibility(View.INVISIBLE);
+ if (mGpsNoSignalView != null) mGpsNoSignalView.setVisibility(View.GONE);
+ if (mGpsHasSignalView != null) mGpsHasSignalView.setVisibility(View.GONE);
}
private class LocationListener
@@ -2163,7 +2163,7 @@ public class Camera extends ActivityBase implements View.OnClickListener,
if (Util.isTabletUI()) {
mShutterButton.setEnabled(false);
} else {
- mShutterButton.setVisibility(View.INVISIBLE);
+ mShutterButton.setVisibility(View.GONE);
}
int[] pickIds = {R.id.btn_retake, R.id.btn_done};
for (int id : pickIds) {