第一次打开相机,会出现如下的引导页
而在某些场景下(如工厂CIT自动化),需要隐藏此引导页。
java
LINUX/android/vendor/codeaurora/packages/apps/SnapdragonCamera
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 57a6bb44f..7f2e1c92f 100755
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -3633,9 +3633,10 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
}
private void showFirstTimeHelp(int topMargin, int bottomMargin) {
+ Log.e(TAG,"showFirstTimeHelp");
mMenuHelp = (MenuHelp) mRootView.findViewById(R.id.menu_help);
mMenuHelp.setForCamera2(true);
- mMenuHelp.setVisibility(View.VISIBLE);
+ mMenuHelp.setVisibility(View.GONE);
mMenuHelp.setMargins(topMargin, bottomMargin);
mMenuHelp.setOnClickListener(new View.OnClickListener() {
@Override
单编SnapdragonCamera.apk
push 进去,收工!