Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
董宏宇
2020-07-07 16:33:20 +08:00
5 changed files with 6 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package com.zhidao.mogo.module.event.panel.presenter
import android.util.Log
import com.mogo.commons.mvp.Presenter
import com.mogo.utils.ThreadPoolService
import com.zhidao.mogo.module.event.panel.bean.TripRecord
import com.zhidao.mogo.module.event.panel.dao.TripRecordDatabase
import com.zhidao.mogo.module.event.panel.fragment.TripRecordFragment
@@ -16,19 +17,19 @@ class TripRecordPresenter(view: TripRecordFragment) : Presenter<TripRecordFragme
}
fun insertTripRecord(vararg records: TripRecord) {
thread {
ThreadPoolService.execute {
TripRecordDatabase.getInstance(context).getTripRecordDao().insert(*records)
}
}
fun updateTripRecords(vararg records: TripRecord) {
thread {
ThreadPoolService.execute {
TripRecordDatabase.getInstance(context).getTripRecordDao().update(*records)
}
}
fun deleteTripRecords(vararg records: TripRecord) {
thread {
ThreadPoolService.execute {
TripRecordDatabase.getInstance(context).getTripRecordDao().delete(*records)
}
}

View File

@@ -3,7 +3,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/clPanelContainer"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:visibility="gone">
<TextView
android:id="@+id/tvTitle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB