|
|
@@ -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();
|
|
|
|
|
|
// 모든 권한, 동의 획득
|