摄影师连接wifi显示名称,直观所连到的网络名称

chengzhenyu 8 年之前
父节点
当前提交
a2f9100acb
共有 2 个文件被更改,包括 7 次插入6 次删除
  1. 6 6
      app/build.gradle
  2. 1 0
      common/src/main/java/com/android/common/utils/NetworkUtil.java

+ 6 - 6
app/build.gradle

@@ -60,7 +60,7 @@ android {
60 60
             zipAlignEnabled false
61 61
             minifyEnabled false
62 62
             shrinkResources false
63
-            buildConfigField "boolean", "isTestMode", "false"
63
+            buildConfigField "boolean", "isTestMode", "true"
64 64
             signingConfig signingConfigs.releaseConfig
65 65
         }
66 66
     }
@@ -98,8 +98,8 @@ buildscript {
98 98
         classpath 'com.android.plugin.hotpatch:hotpatch:1.0.0'
99 99
     }
100 100
 }
101
-apply plugin: 'plugin.hotpatch'
102
-
103
-hotpatch{
104
-    includePackageDir='ai\\pai\\lensman'
105
-}
101
+//apply plugin: 'plugin.hotpatch'
102
+//
103
+//hotpatch{
104
+//    includePackageDir='ai\\pai\\lensman'
105
+//}

+ 1 - 0
common/src/main/java/com/android/common/utils/NetworkUtil.java

@@ -79,6 +79,7 @@ public class NetworkUtil {
79 79
             if (wifiInfo.getSupplicantState() == SupplicantState.COMPLETED) {
80 80
                 ssid = wifiInfo.getSSID();
81 81
             }
82
+            ssid = ssid.replace("\"","");
82 83
         }catch (Exception e){
83 84
             e.printStackTrace();
84 85
         }