diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-03-12 22:45:17 -0700 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2013-03-12 22:45:17 -0700 |
commit | 0a7dd573732a06879b35cdd07a8c0ee08b62a32e (patch) | |
tree | 620d78edaf9742b259130cc6612080822ac2b902 /src/com/android/camera/ui/CameraSwitcher.java | |
parent | b2edf4808b52024ca6f84bfa63e9d167407dc68d (diff) | |
download | android_packages_apps_Snap-0a7dd573732a06879b35cdd07a8c0ee08b62a32e.tar.gz android_packages_apps_Snap-0a7dd573732a06879b35cdd07a8c0ee08b62a32e.tar.bz2 android_packages_apps_Snap-0a7dd573732a06879b35cdd07a8c0ee08b62a32e.zip |
Usage statistics collection for camera module, filmstrip
Change-Id: Ib3e7dfb8948e99541f6d492c7d7bd4bfbad1e53d
Diffstat (limited to 'src/com/android/camera/ui/CameraSwitcher.java')
-rw-r--r-- | src/com/android/camera/ui/CameraSwitcher.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/CameraSwitcher.java b/src/com/android/camera/ui/CameraSwitcher.java index ce4f85003..75906acbe 100644 --- a/src/com/android/camera/ui/CameraSwitcher.java +++ b/src/com/android/camera/ui/CameraSwitcher.java @@ -38,6 +38,7 @@ import android.widget.LinearLayout; import com.android.camera.Util; import com.android.gallery3d.R; import com.android.gallery3d.common.ApiHelper; +import com.android.gallery3d.util.UsageStatistics; public class CameraSwitcher extends RotateImageView implements OnClickListener, OnTouchListener { @@ -106,6 +107,8 @@ public class CameraSwitcher extends RotateImageView private void onCameraSelected(int ix) { hidePopup(); if ((ix != mCurrentIndex) && (mListener != null)) { + UsageStatistics.setPendingTransitionCause( + UsageStatistics.TRANSITION_MENU_TAP); setCurrentIndex(ix); mListener.onCameraSelected(mModuleIds[ix]); } |