summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/filmstrip
diff options
context:
space:
mode:
authorSam Judd <judds@google.com>2014-03-21 13:25:48 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-21 13:25:48 -0700
commit553a0a5508d0a476c1cebc1297ca6385924376f2 (patch)
tree2dbf1a70001c37870e37270450c7607932d4c935 /src/com/android/camera/filmstrip
parent82411163a2467b2bc3dd42da183f98638365ad8a (diff)
parent48d6492ccc56cb7d62a30ecc1f8576dc44e25718 (diff)
downloadandroid_packages_apps_Camera2-553a0a5508d0a476c1cebc1297ca6385924376f2.tar.gz
android_packages_apps_Camera2-553a0a5508d0a476c1cebc1297ca6385924376f2.tar.bz2
android_packages_apps_Camera2-553a0a5508d0a476c1cebc1297ca6385924376f2.zip
am 48d6492c: Merge "Best effort fix to prevent stretched videos." into gb-ub-photos-denali
* commit '48d6492ccc56cb7d62a30ecc1f8576dc44e25718': Best effort fix to prevent stretched videos.
Diffstat (limited to 'src/com/android/camera/filmstrip')
-rw-r--r--src/com/android/camera/filmstrip/FilmstripController.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/camera/filmstrip/FilmstripController.java b/src/com/android/camera/filmstrip/FilmstripController.java
index 46ba12b05..e3a6484cd 100644
--- a/src/com/android/camera/filmstrip/FilmstripController.java
+++ b/src/com/android/camera/filmstrip/FilmstripController.java
@@ -250,5 +250,15 @@ public interface FilmstripController {
* @param newDataId The ID of the focused data of {@code -1} if none.
*/
public void onDataFocusChanged(int prevDataId, int newDataId);
+
+ /**
+ * The callback when we scroll.
+ *
+ * @param firstVisiblePosition The position of the first rendered item (may be slightly offscreen depending on
+ * the orientation of the device).
+ * @param visibleItemCount The total number of rendered items.
+ * @param totalItemCount The total number of items in the filmstrip.
+ */
+ public void onScroll(int firstVisiblePosition, int visibleItemCount, int totalItemCount);
}
}