Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
윤석준 committed Apr 19, 2021
2 parents a877a3a + ec7c501 commit 1355fc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions features/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
multiDexEnabled true
minSdkVersion 23
targetSdkVersion 30
versionCode 32
versionName "v1.1.5"
versionCode 33
versionName "v1.1.6"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.dms.sms.feature.schedule.ui

import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
Expand All @@ -29,6 +27,7 @@ class SchoolScheduleFragment : BackPressedBaseFragment<FragmentSchoolScheduleBin
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
viewLifecycleOwner.lifecycle.addObserver(viewModel)
viewModel.onCreate()
initView()
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.dms.sms.feature.schedule.viewmodel

import android.util.Log
import androidx.lifecycle.*
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.dms.domain.base.Error
import com.dms.domain.base.Result
import com.dms.domain.schedule.entity.Schedules
Expand Down Expand Up @@ -38,7 +39,6 @@ class SchoolScheduleViewModel(private val getScheduleUseCase: GetScheduleUseCase

val onClickTimeTableSwitch = SingleLiveEvent<Unit>()

@OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
fun onCreate() {
_currentYear.value = getCurrentDate().year
_currentMonth.value = getCurrentDate().month
Expand Down

0 comments on commit 1355fc2

Please sign in to comment.