[6.10.0][Feat]状态栏新增高精地图数据缓存进度
This commit is contained in:
@@ -11,11 +11,14 @@ object CallerMapDevaListenerManager : CallerBase<IMoGoMapDevaProvider>() {
|
||||
ConcurrentHashMap()
|
||||
|
||||
private var filePath: String? = null
|
||||
private var type: Int = -2
|
||||
private var progress: Int = 0
|
||||
|
||||
override fun doSomeAfterAddListener(tag: String, listener: IMoGoMapDevaProvider) {
|
||||
filePath?.let {
|
||||
listener.uploadFile(it)
|
||||
}
|
||||
listener.downloadStatus(type, progress)
|
||||
}
|
||||
|
||||
fun invokeUploadLogFile(filePath: String) {
|
||||
@@ -26,4 +29,11 @@ object CallerMapDevaListenerManager : CallerBase<IMoGoMapDevaProvider>() {
|
||||
}
|
||||
}
|
||||
|
||||
fun invokeDownloadStatus(type: Int, progress: Int) {
|
||||
this.type = type
|
||||
this.progress = progress
|
||||
M_LISTENERS.forEach {
|
||||
it.value.downloadStatus(type, progress)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user