Skip to content

Commit

Permalink
[FIX/#9] bias 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
b1urrrr committed Dec 16, 2022
1 parent e8aeefc commit 6083b0a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import org.sopt.sample.data.dto.request.RequestRegisterMusicDto
import org.sopt.sample.util.UiState
import org.sopt.sample.data.repository.MusicRepository
import org.sopt.sample.util.ContentUriRequestBody
import org.sopt.sample.util.UiState
import retrofit2.HttpException
import timber.log.Timber
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ class MusicFragment : BindingFragment<FragmentMusicBinding>(R.layout.fragment_mu
private fun observeStateMessage() {
viewModel.stateMessage.observe(viewLifecycleOwner) {
when (it) {
UiState.Success -> viewModel.musicList.value?.let { it ->
is UiState.Success -> viewModel.musicList.value?.let { it ->
musicAdapter.submitList(it)
}
is UiState.Failure -> requireContext().showSnackbar(
binding.root,
getString(R.string.msg_music_null)
)
UiState.Error -> requireContext().showSnackbar(
is UiState.Error -> requireContext().showSnackbar(
binding.root,
getString(R.string.msg_server_error)
)
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@
android:clipToPadding="false"
android:paddingHorizontal="20dp"
android:paddingBottom="30dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
tools:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
tools:listitem="@layout/item_home_follower"
tools:spanCount="2" />
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/fragment_music.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
android:clipToPadding="false"
android:paddingBottom="10dp"
android:paddingHorizontal="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
Expand Down

0 comments on commit 6083b0a

Please sign in to comment.