Преглед на файлове

[메인][New] 위치 관련 권한/설정 요청 순서 변경, 비회원도 설정 허용 확인

hyodong.min преди 6 години
родител
ревизия
c9aca6d8b6
променени са 1 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 7 7
      app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/main/MainPresenter.java

+ 7 - 7
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/main/MainPresenter.java

@@ -361,7 +361,7 @@ public class MainPresenter extends Presenter<MainModel, IMainView> {
     // 기기 위치 정보 사용 -> 안드로이드 설정 -> 높은 정확도(gps, network 모두 사용) 설정 후 돌아옴
 
     // 사용 동의 체크
-    if (model.isLocationServiceEnabled() == false && model.isActiveMember()) {
+    if (model.isLocationServiceEnabled()) {
       // 위치 동의 팝업
       showLocationDialog(R.string.main_location_agree_no, R.string.main_location_agree_yes, R.string.main_location_agree, () -> {
         model.setLocationServiceEnabled(true);
@@ -369,18 +369,18 @@ public class MainPresenter extends Presenter<MainModel, IMainView> {
       return;
     }
 
-    // 위치 권한
-    if (model.hasLocationPermissions() == false) {
-      requestPermissions();
-      return;
-    }
-
     // 네트워크 위치 서비스 이용
     if (model.canAccessDeviceLocating() == false) {
       openLocationSettingDialog();
       return;
     }
 
+    // 위치 권한
+    if (model.hasLocationPermissions() == false) {
+      requestPermissions();
+      return;
+    }
+
     renderWeatherButton();
 
     // 모든 권한, 동의 획득