Restore old (deprecated) signature of initializeAndroidGlobals.

This CL removed a couple parameters from the method, and changed the
type of the first parameter to an android.content.Context:
https://codereview.webrtc.org/2800353002/

But applications still using the old method may have already upcast the
context parameter to an Object, in which case this is a breaking change.

So, leaving the old signature exactly as it was before, for maximum
backwards compatibility.

BUG=webrtc:3416
TBR=magjed@webrtc.org

Review-Url: https://codereview.webrtc.org/2810973002
Cr-Commit-Position: refs/heads/master@{#17630}
This commit is contained in:
deadbeef
2017-04-10 18:07:55 -07:00
committed by Commit bot
parent 20c84ccd48
commit 8c459f9eee

View File

@ -57,9 +57,9 @@ public class PeerConnectionFactory {
// Older signature of initializeAndroidGlobals. The extra parameters are now meaningless.
@Deprecated
public static boolean initializeAndroidGlobals(android.content.Context context,
boolean initializeAudio, boolean initializeVideo, boolean videoHwAcceleration) {
initializeAndroidGlobals(context, videoHwAcceleration);
public static boolean initializeAndroidGlobals(Object context, boolean initializeAudio,
boolean initializeVideo, boolean videoHwAcceleration) {
initializeAndroidGlobals((android.content.Context) context, videoHwAcceleration);
return true;
}