|
@@ -97,26 +97,20 @@ class WatchContactsActivity : BaseActivity<WatchActivityPresenter, WatchContacts
|
|
|
presenter.loadData(1, Constants.deviceId)
|
|
|
}
|
|
|
|
|
|
- adapter.setOnItemClickListener { data, position ->
|
|
|
-// adapter.setThisPosition(position)
|
|
|
-// adapter.notifyDataSetChanged()
|
|
|
-
|
|
|
- //todo 临时写的测试语音通话功能
|
|
|
- var customerId = data.customerId
|
|
|
- if(data.customerId == null){
|
|
|
- customerId = 0
|
|
|
+ if (Constants.deviceType != 1) {
|
|
|
+ adapter.setOnItemClickListener { data, position ->
|
|
|
+ var customerId = data.customerId
|
|
|
+ if (data.customerId == null) {
|
|
|
+ customerId = 0
|
|
|
+ }
|
|
|
+ val watchContactsVO: WatchContactsVO = data
|
|
|
+ var intent = Intent(this, WatchCallRecordsActivity::class.java)
|
|
|
+ intent.putExtra("data", watchContactsVO)
|
|
|
+ intent.putExtra("action", "CUSTOMER_RECORDS")
|
|
|
+ intent.putExtra("customer_id", "" + customerId)
|
|
|
+ startActivity(intent)
|
|
|
}
|
|
|
- val watchContactsVO :WatchContactsVO = data
|
|
|
- var intent = Intent(this, WatchCallRecordsActivity::class.java)
|
|
|
- intent.putExtra("data", watchContactsVO)
|
|
|
- intent.putExtra("action", "CUSTOMER_RECORDS")
|
|
|
- intent.putExtra("customer_id", ""+customerId)
|
|
|
- startActivity(intent)
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
override fun render(data: ArrayList<WatchContactsVO>) {
|