Permalink
Browse files

Revert bad change in SpeakerDetailsActivity.kt

  • Loading branch information...
rock3r committed Aug 26, 2018
1 parent f1e8a3a commit 6fbcef0e35a60766ba3de9f5117ca5ada3b0ab22
Showing with 2 additions and 4 deletions.
  1. +2 −4 app/src/main/java/net/squanchy/speaker/SpeakerDetailsActivity.kt
@@ -94,10 +94,8 @@ class SpeakerDetailsActivity : AppCompatActivity() {
val twitterItem = menu.findItem(R.id.action_speaker_twitter)
val websiteItem = menu.findItem(R.id.action_speaker_website)
speaker?.let {
twitterItem.isVisible = it.twitterUsername.isDefined()
websiteItem.isVisible = it.personalUrl.isDefined()
}
twitterItem.isVisible = speaker?.twitterUsername?.isDefined() ?: false
websiteItem.isVisible = speaker?.personalUrl?.isDefined() ?: false
return super.onPrepareOptionsMenu(menu)
}

0 comments on commit 6fbcef0

Please sign in to comment.