mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix compilation on other than android and fix runtime issue with getSystemService(class)
This commit is contained in:
parent
c797e28c42
commit
d16223338c
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue