Commit d1622333 authored by Simon Morlat's avatar Simon Morlat

Fix compilation on other than android and fix runtime issue with getSystemService(class)

parent c797e28c
......@@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef __ANDROID__
#include "private.h"
#include "platform-helpers.h"
......@@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifdef __ANDROID__
namespace LinphonePrivate{
......
......@@ -49,7 +49,7 @@ public class AndroidPlatformHelper{
public AndroidPlatformHelper(Object ctx_obj){
Context ctx = (Context) ctx_obj;
WifiManager wifiMgr = ctx.getSystemService(WifiManager.class);
WifiManager wifiMgr = (WifiManager)ctx.getSystemService(Context.WIFI_SERVICE);
mPowerManager = (PowerManager) ctx.getSystemService(Context.POWER_SERVICE);
mConnectivityManager = (ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment