diff --git a/app/src/main/java/me/blog/korn123/easydiary/fragments/DailySymbolFragment.kt b/app/src/main/java/me/blog/korn123/easydiary/fragments/DailySymbolFragment.kt index 9afcf5a08..771b1b6c0 100644 --- a/app/src/main/java/me/blog/korn123/easydiary/fragments/DailySymbolFragment.kt +++ b/app/src/main/java/me/blog/korn123/easydiary/fragments/DailySymbolFragment.kt @@ -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 @@ -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 @@ -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) diff --git a/app/src/main/java/me/blog/korn123/easydiary/fragments/StockLineChartFragment.kt b/app/src/main/java/me/blog/korn123/easydiary/fragments/StockLineChartFragment.kt index 25479cca4..2cb6a0de0 100644 --- a/app/src/main/java/me/blog/korn123/easydiary/fragments/StockLineChartFragment.kt +++ b/app/src/main/java/me/blog/korn123/easydiary/fragments/StockLineChartFragment.kt @@ -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) } }