parameters not nullable anylonger

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-09-10 13:16:52 +02:00 committed by Andy Scherzinger
parent 99ea1269b6
commit e2bc773c01
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -49,13 +49,13 @@ class EtmPreferencesFragment : EtmBaseFragment() {
etm_preferences_text.text = builder
}
override fun onCreateOptionsMenu(menu: Menu?, inflater: MenuInflater?) {
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
super.onCreateOptionsMenu(menu, inflater)
inflater?.inflate(R.menu.etm_preferences, menu)
inflater.inflate(R.menu.etm_preferences, menu)
}
override fun onOptionsItemSelected(item: MenuItem?): Boolean {
return when (item?.itemId) {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
return when (item.itemId) {
R.id.etm_preferences_share -> {
onClickedShare(); true
}