mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-16 20:00:39 +01:00
Remove unnecessary variables
This commit is contained in:
parent
5d02007e8d
commit
aa1ed30e52
@ -27,12 +27,11 @@ import com.simplemobiletools.commons.extensions.areSystemAnimationsEnabled
|
|||||||
import com.simplemobiletools.commons.extensions.beVisibleIf
|
import com.simplemobiletools.commons.extensions.beVisibleIf
|
||||||
import com.simplemobiletools.commons.extensions.getProperTextColor
|
import com.simplemobiletools.commons.extensions.getProperTextColor
|
||||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||||
import kotlinx.android.synthetic.main.fragment_month_day.*
|
import kotlinx.android.synthetic.main.fragment_month_day.month_day_events_list
|
||||||
import kotlinx.android.synthetic.main.fragment_month_day.view.*
|
import kotlinx.android.synthetic.main.fragment_month_day.view.*
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
|
||||||
class MonthDayFragment : Fragment(), MonthlyCalendar, RefreshRecyclerViewListener {
|
class MonthDayFragment : Fragment(), MonthlyCalendar, RefreshRecyclerViewListener {
|
||||||
private var mSundayFirst = false
|
|
||||||
private var mShowWeekNumbers = false
|
private var mShowWeekNumbers = false
|
||||||
private var mDayCode = ""
|
private var mDayCode = ""
|
||||||
private var mSelectedDayCode = ""
|
private var mSelectedDayCode = ""
|
||||||
@ -91,7 +90,6 @@ class MonthDayFragment : Fragment(), MonthlyCalendar, RefreshRecyclerViewListene
|
|||||||
|
|
||||||
private fun storeStateVariables() {
|
private fun storeStateVariables() {
|
||||||
mConfig.apply {
|
mConfig.apply {
|
||||||
mSundayFirst = isSundayFirst
|
|
||||||
mShowWeekNumbers = showWeekNumbers
|
mShowWeekNumbers = showWeekNumbers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,13 +24,15 @@ import com.simplemobiletools.commons.extensions.applyColorFilter
|
|||||||
import com.simplemobiletools.commons.extensions.beGone
|
import com.simplemobiletools.commons.extensions.beGone
|
||||||
import com.simplemobiletools.commons.extensions.beVisible
|
import com.simplemobiletools.commons.extensions.beVisible
|
||||||
import com.simplemobiletools.commons.extensions.getProperTextColor
|
import com.simplemobiletools.commons.extensions.getProperTextColor
|
||||||
import kotlinx.android.synthetic.main.fragment_month.view.*
|
import kotlinx.android.synthetic.main.fragment_month.view.month_calendar_holder
|
||||||
import kotlinx.android.synthetic.main.top_navigation.view.*
|
import kotlinx.android.synthetic.main.fragment_month.view.month_view_wrapper
|
||||||
|
import kotlinx.android.synthetic.main.top_navigation.view.top_left_arrow
|
||||||
|
import kotlinx.android.synthetic.main.top_navigation.view.top_right_arrow
|
||||||
|
import kotlinx.android.synthetic.main.top_navigation.view.top_value
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
|
||||||
class MonthFragment : Fragment(), MonthlyCalendar {
|
class MonthFragment : Fragment(), MonthlyCalendar {
|
||||||
private var mTextColor = 0
|
private var mTextColor = 0
|
||||||
private var mSundayFirst = false
|
|
||||||
private var mShowWeekNumbers = false
|
private var mShowWeekNumbers = false
|
||||||
private var mDayCode = ""
|
private var mDayCode = ""
|
||||||
private var mPackageName = ""
|
private var mPackageName = ""
|
||||||
@ -80,7 +82,6 @@ class MonthFragment : Fragment(), MonthlyCalendar {
|
|||||||
|
|
||||||
private fun storeStateVariables() {
|
private fun storeStateVariables() {
|
||||||
mConfig.apply {
|
mConfig.apply {
|
||||||
mSundayFirst = isSundayFirst
|
|
||||||
mShowWeekNumbers = showWeekNumbers
|
mShowWeekNumbers = showWeekNumbers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user