- avoided a few compiler warnings about null values

This commit is contained in:
Juha Heinanen
2019-04-09 10:27:05 +03:00
parent 2c92b1b6ea
commit 69daf94c37
8 changed files with 17 additions and 19 deletions
@@ -26,7 +26,7 @@ class CallsActivity : AppCompatActivity() {
setContentView(R.layout.activity_calls)
val aor = intent.extras.getString("aor")
val aor = intent.getStringExtra("aor")!!
val ua = Account.findUa(aor)!!
val headerView = findViewById(R.id.account) as TextView
@@ -71,7 +71,7 @@ class CallsActivity : AppCompatActivity() {
}
listView.onItemLongClickListener = AdapterView.OnItemLongClickListener { _, _, pos, _ ->
val peerUri = uaHistory[pos].peerURI
var peerName = ContactsActivity.contactName(peerUri)
val peerName = ContactsActivity.contactName(peerUri)
val dialogClickListener = DialogInterface.OnClickListener { _, which ->
when (which) {
DialogInterface.BUTTON_NEUTRAL -> {