Merge remote branch 'goog/honeycomb-mr2' into honeycomb-LTE

This commit is contained in:
The Android Automerger
2011-05-08 22:38:02 -07:00
2 changed files with 6 additions and 2 deletions

View File

@@ -184,7 +184,9 @@ class HTML5VideoViewProxy extends Handler
// we need to pause the old one and re-create a new media player
// inside the HTML5VideoView.
if (mHTML5VideoView != null) {
mHTML5VideoView.pauseAndDispatch(mCurrentProxy);
if (!backFromFullScreenMode) {
mHTML5VideoView.pauseAndDispatch(mCurrentProxy);
}
// release the media player to avoid finalize error
mHTML5VideoView.release();
}

View File

@@ -459,7 +459,9 @@ static jint android_net_wifi_getPowerModeCommand(JNIEnv* env, jobject clazz)
}
// reply comes back in the form "powermode = XX" where XX is the
// number we're interested in.
sscanf(reply, "%*s = %u", &power);
if (sscanf(reply, "%*s = %u", &power) != 1) {
return (jint)-1;
}
return (jint)power;
}