mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 17:59:21 +00:00
Fix Android Context not being set in mediastreamer2
This commit is contained in:
parent
b23a2af684
commit
a0df884b89
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
package org.linphone.core.tools;
|
||||
|
||||
import org.linphone.mediastream.Log;
|
||||
import org.linphone.mediastream.MediastreamerAndroidContext;
|
||||
import org.linphone.mediastream.Version;
|
||||
|
||||
import android.net.wifi.WifiManager;
|
||||
|
|
@ -51,6 +52,8 @@ public class AndroidPlatformHelper {
|
|||
|
||||
public AndroidPlatformHelper(Object ctx_obj) {
|
||||
mContext = (Context) ctx_obj;
|
||||
MediastreamerAndroidContext.setContext(mContext);
|
||||
|
||||
WifiManager wifiMgr = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
|
||||
mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
|
||||
mConnectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue