Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
a0df884b
Commit
a0df884b
authored
Nov 29, 2017
by
Sylvain Berfini
🐮
Browse files
Fix Android Context not being set in mediastreamer2
parent
b23a2af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
wrappers/java/classes/tools/AndroidPlatformHelper.java
wrappers/java/classes/tools/AndroidPlatformHelper.java
+3
-0
No files found.
wrappers/java/classes/tools/AndroidPlatformHelper.java
View file @
a0df884b
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment