Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoongcho committed Nov 3, 2023
1 parent 438b23f commit 2d6a7c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_IDLE
import com.roomorama.caldroid.CaldroidFragment
import com.roomorama.caldroid.CaldroidFragmentEx
import com.roomorama.caldroid.CaldroidListener
import io.realm.Sort
import kotlinx.coroutines.*
import me.blog.korn123.commons.utils.DateUtils
import me.blog.korn123.commons.utils.FlavorUtils
Expand All @@ -37,6 +38,7 @@ import me.blog.korn123.easydiary.extensions.makeToast
import me.blog.korn123.easydiary.extensions.updateAlertDialogWithIcon
import me.blog.korn123.easydiary.extensions.updateDashboardInnerCard
import me.blog.korn123.easydiary.helper.AAF_TEST
import me.blog.korn123.easydiary.helper.CALENDAR_SORTING_ASC
import me.blog.korn123.easydiary.helper.DIARY_SEQUENCE
import me.blog.korn123.easydiary.helper.EasyDiaryDbHelper
import me.blog.korn123.easydiary.helper.TransitionHelper
Expand Down Expand Up @@ -81,7 +83,7 @@ class DailySymbolFragment : Fragment() {
caldroidListener = object : CaldroidListener() {
override fun onSelectDate(date: Date, view: View) {
val formatter = SimpleDateFormat(DateUtils.DATE_PATTERN_DASH, Locale.getDefault())
val selectedItems = EasyDiaryDbHelper.findDiaryByDateString(formatter.format(date))
val selectedItems = EasyDiaryDbHelper.findDiaryByDateString(formatter.format(date), if (config.calendarSorting == CALENDAR_SORTING_ASC) Sort.ASCENDING else Sort.DESCENDING)

clearSelectedDates()
setSelectedDate(date)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ class StockLineChartFragment : androidx.fragment.app.Fragment() {
color = requireContext().config.primaryColor
highLightColor = requireContext().config.textColor
setCircleColor(requireContext().config.primaryColor)
setCircleColorHole(requireContext().config.textColor)
// setCircleColorHole(requireContext().config.textColor)
setDrawCircles(mCheckedDrawCircle)
}
}
Expand Down

0 comments on commit 2d6a7c4

Please sign in to comment.