Skip to content

Commit

Permalink
[IDLE-498] 바텀 네비게이션 뷰가 간헐적으로 보이지 않던 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Nov 4, 2024
1 parent 7036d82 commit a9252e4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.idle.presentation

import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.idle.analytics.error.ErrorLoggingHelper
Expand Down Expand Up @@ -45,8 +44,8 @@ class MainViewModel @Inject constructor(
private val getMyCenterProfileUseCase: GetMyCenterProfileUseCase,
private val getMyWorkerProfileUseCase: GetMyWorkerProfileUseCase,
private val getCenterStatusUseCase: GetCenterStatusUseCase,
private val connectWebSocketUseCase: ConnectWebSocketUseCase,
private val disconnectWebSocketUseCase: DisconnectWebSocketUseCase,
// private val connectWebSocketUseCase: ConnectWebSocketUseCase,
// private val disconnectWebSocketUseCase: DisconnectWebSocketUseCase,
private val errorHandlerHelper: ErrorHandler,
private val eventHandlerHelper: EventHandlerHelper,
private val errorLoggingHelper: ErrorLoggingHelper,
Expand All @@ -69,15 +68,15 @@ class MainViewModel @Inject constructor(
}

internal fun connectWebSocket() = viewModelScope.launch {
Log.d("test", "웹소켓 연결")
connectWebSocketUseCase().onSuccess { }
.onFailure { }
// Log.d("test", "웹소켓 연결")
// connectWebSocketUseCase().onSuccess { }
// .onFailure { }
}

internal fun disconnectWebSocket() = viewModelScope.launch {
Log.d("test", "웹소켓 연결해제")
disconnectWebSocketUseCase().onSuccess { }
.onFailure { }
// Log.d("test", "웹소켓 연결해제")
// disconnectWebSocketUseCase().onSuccess { }
// .onFailure { }
}

internal fun setNavigationMenuType(navigationMenuType: NavigationMenuType) {
Expand Down
8 changes: 4 additions & 4 deletions presentation/src/main/res/menu/menu_center.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
android:id="@id/nav_center_home"
android:icon="@drawable/selector_menu_home"
android:title="" />
<item
android:id="@id/nav_center_chatting"
android:icon="@drawable/selector_menu_chat"
android:title="채팅" />
<!-- <item-->
<!-- android:id="@id/nav_center_chatting"-->
<!-- android:icon="@drawable/selector_menu_chat"-->
<!-- android:title="채팅" />-->
<item
android:id="@id/nav_center_setting"
android:icon="@drawable/selector_menu_setting"
Expand Down
8 changes: 4 additions & 4 deletions presentation/src/main/res/menu/menu_worker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
android:id="@id/nav_worker_job_posting"
android:icon="@drawable/selector_menu_job_posting"
android:title="공고" />
<item
android:id="@id/nav_worker_chatting"
android:icon="@drawable/selector_menu_chat"
android:title="채팅" />
<!-- <item-->
<!-- android:id="@id/nav_worker_chatting"-->
<!-- android:icon="@drawable/selector_menu_chat"-->
<!-- android:title="채팅" />-->
<item
android:id="@id/nav_worker_setting"
android:icon="@drawable/selector_menu_setting"
Expand Down

0 comments on commit a9252e4

Please sign in to comment.