From 8c459f9eeeb5c9dd49edc184c313bdb90d14c133 Mon Sep 17 00:00:00 2001 From: deadbeef Date: Mon, 10 Apr 2017 18:07:55 -0700 Subject: [PATCH] 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} --- .../sdk/android/api/org/webrtc/PeerConnectionFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/sdk/android/api/org/webrtc/PeerConnectionFactory.java b/webrtc/sdk/android/api/org/webrtc/PeerConnectionFactory.java index ed3546f394..28b3ca72ab 100644 --- a/webrtc/sdk/android/api/org/webrtc/PeerConnectionFactory.java +++ b/webrtc/sdk/android/api/org/webrtc/PeerConnectionFactory.java @@ -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; }