Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6153b3aa authored by Ricki Hirner's avatar Ricki Hirner
Browse files

AccountAdapter not-null assertion

parent 325dd418
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ class AccountListFragment: ListFragment() {

        listView.choiceMode = AbsListView.CHOICE_MODE_SINGLE
        listView.onItemClickListener = AdapterView.OnItemClickListener { _, _, position, _ ->
            val account = listAdapter.getItem(position) as Account
            val account = listAdapter!!.getItem(position) as Account
            val intent = Intent(activity, AccountActivity::class.java)
            intent.putExtra(AccountActivity.EXTRA_ACCOUNT, account)
            startActivity(intent)