summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/PhotoPage.java
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-03-13 09:45:18 -0700
committerBobby Georgescu <georgescu@google.com>2013-03-13 10:02:30 -0700
commit9b4c3e9fa3f921e40f4abc549983fd35fb0a0a85 (patch)
treef4c5d1a0a78d43bd6e04f4660b74020453e1317e /src/com/android/gallery3d/app/PhotoPage.java
parentf37648b877bf6029d7afead31e965b473114c89c (diff)
downloadandroid_packages_apps_Gallery2-9b4c3e9fa3f921e40f4abc549983fd35fb0a0a85.tar.gz
android_packages_apps_Gallery2-9b4c3e9fa3f921e40f4abc549983fd35fb0a0a85.tar.bz2
android_packages_apps_Gallery2-9b4c3e9fa3f921e40f4abc549983fd35fb0a0a85.zip
Add coarse grained events for camera mode, filmstrip stats
Change-Id: I9c48f1646e9dff44efd27180065a6435110c5d16
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 84030896a..fe6840ecb 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -514,6 +514,10 @@ public abstract class PhotoPage extends ActivityState implements
if (oldIndex == 0 && mCurrentIndex > 0
&& !mPhotoView.getFilmMode()) {
mPhotoView.setFilmMode(true);
+ if (mAppBridge != null) {
+ UsageStatistics.onEvent("CameraToFilmstrip",
+ UsageStatistics.TRANSITION_SWIPE, null);
+ }
} else if (oldIndex == 2 && mCurrentIndex == 1) {
mCameraSwitchCutoff = SystemClock.uptimeMillis() +
CAMERA_SWITCH_CUTOFF_THRESHOLD_MS;