From 4c408b10357d0f460564a025b4d531abb611ccae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mieszko=20Wrzeszczy=C5=84ski?= Date: Tue, 15 Jan 2019 15:45:05 +0100 Subject: [PATCH] Fix starting presence with WMI wifi --- app/build.gradle | 2 +- app/src/main/java/com/uam/wmi/findmytutor/utils/WifiUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index bb3f482..d182878 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,7 +10,7 @@ android { applicationId "com.uam.wmi.findmytutor" minSdkVersion 22 targetSdkVersion 27 - versionCode 70 + versionCode 71 versionName "1.0.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/com/uam/wmi/findmytutor/utils/WifiUtils.java b/app/src/main/java/com/uam/wmi/findmytutor/utils/WifiUtils.java index ae02ba6..1689184 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/utils/WifiUtils.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/utils/WifiUtils.java @@ -17,7 +17,7 @@ public class WifiUtils { if (wifiInfo != null) { NetworkInfo.DetailedState state = WifiInfo.getDetailedStateOf(wifiInfo.getSupplicantState()); if (state == NetworkInfo.DetailedState.CONNECTED || state == NetworkInfo.DetailedState.OBTAINING_IPADDR) { - return wifiInfo.getSSID(); + return wifiInfo.getSSID().replace("\"", ""); } } }