diff options
Diffstat (limited to 'src/com/android/gallery3d')
-rwxr-xr-x | src/com/android/gallery3d/app/MoviePlayer.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/MoviePlayer.java b/src/com/android/gallery3d/app/MoviePlayer.java index f35d172fc..65a485009 100755 --- a/src/com/android/gallery3d/app/MoviePlayer.java +++ b/src/com/android/gallery3d/app/MoviePlayer.java @@ -1262,6 +1262,7 @@ public class MoviePlayer implements private long mLastDisconnectTime; private boolean mIsShowDialog = false; private AlertDialog mServerTimeoutDialog; + private int RESUME_DIALOG_TIMEOUT = 3 * 60 * 1000; // 3 mins // check whether disconnect from server timeout or not. // if timeout, return false. otherwise, return true. @@ -1384,8 +1385,12 @@ public class MoviePlayer implements } public void setVideoInfo(Metadata data) { + mServerTimeout = RESUME_DIALOG_TIMEOUT; if (data.has(SERVER_TIMEOUT)) { mServerTimeout = data.getInt(SERVER_TIMEOUT); + if (mServerTimeout == 0) { + mServerTimeout = RESUME_DIALOG_TIMEOUT; + } if (LOG) { Log.v(TAG, "get server timeout from metadata. mServerTimeout=" + mServerTimeout); |