Fix enabling presence on wmi #170

Merged
s416204 merged 1 commits from fix-enable-presence-on-wmi into develop 2019-01-15 15:46:46 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 4c408b1035 - Show all commits

View File

@ -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

View File

@ -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("\"", "");
}
}
}