Skip to content

Commit d284b0d

Browse files
authored
Merge pull request #363 from Runnect/feature/fix-crash-and-ui-conflict
네이버 맵 관련 런타임 크래시 및 바텀 네비바 UI 겹침 이슈 대응
2 parents 421916e + a4a94e2 commit d284b0d

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ dependencies {
142142
// Normal
143143
implementation 'io.github.ParkSangGwon:tedpermission-normal:3.3.0'
144144
//Location 라이브러리(현재위치)
145-
implementation 'com.google.android.gms:play-services-location:17.1.0'
145+
implementation 'com.google.android.gms:play-services-location:21.3.0'
146146

147147
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
148148
implementation 'com.google.code.gson:gson:2.10.1'

app/src/main/java/com/runnect/runnect/presentation/coursemain/CourseMainFragment.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,12 @@ class CourseMainFragment :
109109
naverMap.maxZoom = 18.0
110110
naverMap.minZoom = 10.0
111111

112-
map.locationSource = locationSource
112+
naverMap.locationSource = locationSource
113113

114114
if (isLocationPermissionGranted()) {
115115
map.locationTrackingMode = LocationTrackingMode.Follow //위치추적 모드 Follow
116116
}
117117

118-
//네이버 맵 sdk에 위치 정보 제공
119-
locationSource = FusedLocationSource(
120-
this,
121-
LOCATION_PERMISSION_REQUEST_CODE
122-
)
123-
naverMap.locationSource = locationSource
124-
125118
naverMap.addOnLocationChangeListener { location ->
126119
currentLocation = LatLng(location.latitude, location.longitude)
127120
map.locationOverlay.run { //현재 위치 마커

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<FrameLayout
1515
android:id="@+id/fl_main"
1616
android:layout_width="match_parent"
17-
android:layout_height="match_parent"
17+
android:layout_height="0dp"
1818
app:layout_constraintBottom_toTopOf="@id/btm_navi_main"
1919
app:layout_constraintTop_toTopOf="parent" />
2020

@@ -37,7 +37,7 @@
3737
<com.google.android.material.bottomnavigation.BottomNavigationView
3838
android:id="@+id/btm_navi_main"
3939
android:layout_width="match_parent"
40-
android:layout_height="57dp"
40+
android:layout_height="wrap_content"
4141
android:background="@drawable/radius_menu"
4242
app:itemBackground="@color/transparent_00"
4343
app:itemIconTint="@color/main_menu_color_selector"

0 commit comments

Comments
 (0)