#PAR-384 : GoogleMap isMyLocationEnabled property Exception 처리 #230
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
마이페이지에서 기록 조회 시, 사용자로부터 ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION 권한이 허용되지 않았으면
java.lang.SecurityException: my location requires permission ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION 발생
->
러닝을 위한 모든 기능에 대해서는 권한 체크를 진행해 이러한 Exception이 발생하지 않지만, 마이페이지 같은 경우 권한이 없더라도 기록 조회 자체는 가능하도록 해야 한다.
따라서, 예외를 발생시키는 Property인 isMyLocationEnabled를 마이페이지에서 접근한 경우 false로 설정함으로써 방지한다.