diff options
author | Chung-yih Wang <cywang@google.com> | 2011-08-05 14:41:40 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2011-08-05 18:56:23 +0800 |
commit | e46d09dc17ac1cad5062fdc4b29916dc63da06c3 (patch) | |
tree | e4646cdb9c953d75a35ac801e6c70255f0127aa2 /src/com/android/camera/Camera.java | |
parent | c926b2152b7d1b65f34b58af50d0c6cdeb070123 (diff) | |
download | LegacyCamera-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.java | 10 |
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) { |