ignore exceptions thrown at opening day view from monthly view
This commit is contained in:
parent
9472b3c852
commit
974ffe5408
|
@ -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
|
||||||
|
try {
|
||||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
||||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getThisWeekDateTime(): String {
|
private fun getThisWeekDateTime(): String {
|
||||||
|
|
Loading…
Reference in New Issue