[2.14.0]BadCase三期-录包管理
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.mogo.eagle.core.function.hmi.ui
|
||||
|
||||
import android.animation.Animator
|
||||
import android.app.Activity
|
||||
import android.content.*
|
||||
import android.graphics.*
|
||||
import android.graphics.drawable.*
|
||||
@@ -401,13 +402,12 @@ class MoGoHmiFragment : MvpFragment<MoGoHmiContract.View?, HmiPresenter?>(),
|
||||
super.onBagManagerResult(bagManager)
|
||||
//判断磁盘是否已满,展示预警弹窗
|
||||
UiThreadHandler.post{
|
||||
bagManager.spaceInfoRespCount
|
||||
if(bagManager.spaceInfoRespCount>0){
|
||||
for(spaceInfo in bagManager.spaceInfoRespList){
|
||||
for(bagSpaceInfo in spaceInfo.bagDirsSpaceInfoList){
|
||||
if(bagSpaceInfo.free == 0L){
|
||||
//磁盘空间已满
|
||||
val spaceWarningDialog = SpaceWarningDialog(requireContext())
|
||||
val spaceWarningDialog = SpaceWarningDialog(context as Activity)
|
||||
spaceWarningDialog.show()
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -185,7 +185,8 @@
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="150dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:background="@drawable/debug_icon_sop" />
|
||||
android:background="@drawable/debug_icon_bag_manager"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user