mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
ignore exceptions thrown at opening day view from monthly view
This commit is contained in:
@@ -578,8 +578,11 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
val bundle = Bundle()
|
val bundle = Bundle()
|
||||||
bundle.putString(DAY_CODE, Formatter.getDayCodeFromDateTime(dateTime))
|
bundle.putString(DAY_CODE, Formatter.getDayCodeFromDateTime(dateTime))
|
||||||
fragment.arguments = bundle
|
fragment.arguments = bundle
|
||||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
try {
|
||||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
||||||
|
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getThisWeekDateTime(): String {
|
private fun getThisWeekDateTime(): String {
|
||||||
|
Reference in New Issue
Block a user