summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/OnScreenHint.java
diff options
context:
space:
mode:
authorRay Chen <>2009-04-10 03:41:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-10 03:41:00 -0700
commit23c51b794e95c201290e36737f379c4bb8eefeae (patch)
tree984bd6f0a415c29633007ff78e8c15da4b605458 /src/com/android/camera/OnScreenHint.java
parent993105a927b1b67ce04cd56a597d3d6742e7c205 (diff)
downloadLegacyCamera-23c51b794e95c201290e36737f379c4bb8eefeae.zip
LegacyCamera-23c51b794e95c201290e36737f379c4bb8eefeae.tar.gz
LegacyCamera-23c51b794e95c201290e36737f379c4bb8eefeae.tar.bz2
AI 145700: Style fix.
Automated import of CL 145700
Diffstat (limited to 'src/com/android/camera/OnScreenHint.java')
-rw-r--r--src/com/android/camera/OnScreenHint.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/com/android/camera/OnScreenHint.java b/src/com/android/camera/OnScreenHint.java
index 7cd7b2b..3d8d145 100644
--- a/src/com/android/camera/OnScreenHint.java
+++ b/src/com/android/camera/OnScreenHint.java
@@ -20,7 +20,6 @@ import android.content.Context;
import android.content.res.Resources;
import android.graphics.PixelFormat;
import android.os.Handler;
-import android.os.ServiceManager;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
@@ -88,7 +87,9 @@ public class OnScreenHint {
if (mNextView == null) {
throw new RuntimeException("setView must have been called");
}
- if (LOCAL_LOGV) Log.v(TAG, "SHOW: " + this);
+ if (LOCAL_LOGV) {
+ Log.v(TAG, "SHOW: " + this);
+ }
mHandler.post(mShow);
}
@@ -96,7 +97,9 @@ public class OnScreenHint {
* Close the view if it's showing.
*/
public void cancel() {
- if (LOCAL_LOGV) Log.v(TAG, "HIDE: " + this);
+ if (LOCAL_LOGV) {
+ Log.v(TAG, "HIDE: " + this);
+ }
mHandler.post(mHide);
}
@@ -276,13 +279,17 @@ public class OnScreenHint {
}
mWM.removeView(mView);
}
- if (LOCAL_LOGV) Log.v(TAG, "ADD! " + mView + " in " + this);
+ if (LOCAL_LOGV) {
+ Log.v(TAG, "ADD! " + mView + " in " + this);
+ }
mWM.addView(mView, mParams);
}
}
private synchronized void handleHide() {
- if (LOCAL_LOGV) Log.v(TAG, "HANDLE HIDE: " + this + " mView=" + mView);
+ if (LOCAL_LOGV) {
+ Log.v(TAG, "HANDLE HIDE: " + this + " mView=" + mView);
+ }
if (mView != null) {
// note: checking parent() just to make sure the view has
// been added... i have seen cases where we get here when