summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChao Zhang <chaoz@codeaurora.org>2016-02-03 19:04:35 +0800
committerChao Zhang <chaoz@codeaurora.org>2016-02-03 19:05:55 +0800
commitbd506d8d483db3ba297f6ea6f82798d75d021e1a (patch)
tree46e0f45fcd378970e5da352114b5f101e97e3a77 /src
parentb13a6ae2441c37688960d3d9115de76e5c2fe5ac (diff)
downloadandroid_packages_apps_Gallery2-bd506d8d483db3ba297f6ea6f82798d75d021e1a.tar.gz
android_packages_apps_Gallery2-bd506d8d483db3ba297f6ea6f82798d75d021e1a.tar.bz2
android_packages_apps_Gallery2-bd506d8d483db3ba297f6ea6f82798d75d021e1a.zip
Gallery2: fix server timeout prompt not shown if mStreamingType is HTTP.
isFullBuffer() will return true if mStreamingType is STREAMING_HTTP. add STREAMING_HTTP judgement in isFullBuffer(). Change-Id: I520f567f35ed05b735c3a0a5db5cd16e3af75569 CRs-Fixed: 969149
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/android/gallery3d/app/MoviePlayer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/MoviePlayer.java b/src/com/android/gallery3d/app/MoviePlayer.java
index d24058598..c5aa61095 100755
--- a/src/com/android/gallery3d/app/MoviePlayer.java
+++ b/src/com/android/gallery3d/app/MoviePlayer.java
@@ -982,7 +982,8 @@ public class MoviePlayer implements
}
public boolean isFullBuffer() {
- if (mStreamingType == STREAMING_RTSP || mStreamingType == STREAMING_SDP) {
+ if (mStreamingType == STREAMING_RTSP || mStreamingType == STREAMING_SDP
+ || mStreamingType == STREAMING_HTTP) {
return false;
}
return true;