Merge remote branch 'goog/honeycomb-mr2' into honeycomb-LTE
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user