[6.6.0]接管记录倒序显示
This commit is contained in:
@@ -162,7 +162,7 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
// takeOverListAdapter?.notifyRecordItemRemoved(removeRecord)
|
||||
iterator.remove()
|
||||
}
|
||||
recordList = CallerTakeOverManager.getAllRecord(context)
|
||||
recordList = CallerTakeOverManager.getAllRecord(context).asReversed()
|
||||
ThreadUtils.runOnUiThread {
|
||||
if(recordList.isNullOrEmpty()){
|
||||
tvRecordNoData.visibility = View.VISIBLE
|
||||
@@ -188,7 +188,7 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
*/
|
||||
private fun refreshList(){
|
||||
scope.launch(Dispatchers.IO){
|
||||
recordList = CallerTakeOverManager.getAllRecord(context)
|
||||
recordList = CallerTakeOverManager.getAllRecord(context).asReversed()
|
||||
ThreadUtils.runOnUiThread {
|
||||
if(recordList.isNullOrEmpty()){
|
||||
tvRecordNoData.visibility = View.VISIBLE
|
||||
@@ -196,7 +196,7 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
}else{
|
||||
tvRecordNoData.visibility = View.GONE
|
||||
recordGroup.visibility = View.VISIBLE
|
||||
//更新列表
|
||||
//更新列表,倒序显示
|
||||
takeOverListAdapter?.setData(recordList!!)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user