Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user