소스 검색

逻辑错误

liujiangyao 8 년 전
부모
커밋
2b5710cd5f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/main/java/com/sheep/gamegroup/util/LocationUtils.java

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/util/LocationUtils.java

@@ -238,7 +238,7 @@ public class LocationUtils {
      */
     public String getLongitudeLatitude(Context context){
         logitudeLStr = getGPSLocations(context);
-        if(TextUtils.isEmpty(logitudeLStr) && logitudeLStr.length() > 3){
+        if(TextUtils.isEmpty(logitudeLStr) || logitudeLStr.length() < 3){
             logitudeLStr = getNetworkLocations();
         }
         return logitudeLStr;