mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-24 22:55:59 +00:00
fix crash when opening notifications
This commit is contained in:
parent
d64e07ae51
commit
33d350880c
1 changed files with 5 additions and 4 deletions
|
|
@ -30,10 +30,11 @@ class NotificationOpenHandler {
|
|||
}
|
||||
|
||||
private fun openPrivateMessageScreen(userID: String?) {
|
||||
if (userID?.isNotEmpty() == true) {
|
||||
return
|
||||
if (userID != null) {
|
||||
MainNavigationController.navigate(R.id.inboxMessageListFragment, bundleOf("userID" to userID))
|
||||
} else {
|
||||
MainNavigationController.navigate(R.id.inboxFragment)
|
||||
}
|
||||
MainNavigationController.navigate(R.id.inboxMessageListFragment, bundleOf("userID" to userID))
|
||||
}
|
||||
|
||||
private fun openPartyScreen() {
|
||||
|
|
@ -41,7 +42,7 @@ class NotificationOpenHandler {
|
|||
}
|
||||
|
||||
private fun openQuestDetailSCreen(partyId: String?, questKey: String?) {
|
||||
if (partyId?.isNotEmpty() == true || questKey?.isNotEmpty() == true) {
|
||||
if (partyId == null || questKey == null ||partyId.isNotEmpty() || questKey.isNotEmpty()) {
|
||||
return
|
||||
}
|
||||
MainNavigationController.navigate(R.id.questDetailFragment, bundleOf("partyID" to partyId, "questKey" to questKey))
|
||||
|
|
|
|||
Loading…
Reference in a new issue