ignore exceptions thrown at opening day view from monthly view

This commit is contained in:
tibbi 2018-10-16 18:30:32 +02:00
parent 9472b3c852
commit 974ffe5408
1 changed files with 5 additions and 2 deletions

View File

@ -578,8 +578,11 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
val bundle = Bundle()
bundle.putString(DAY_CODE, Formatter.getDayCodeFromDateTime(dateTime))
fragment.arguments = bundle
try {
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
supportActionBar?.setDisplayHomeAsUpEnabled(true)
} catch (e: Exception) {
}
}
private fun getThisWeekDateTime(): String {