|
|
@ -45,12 +45,14 @@ class ProbeFormatActivity : BaseActivity() { |
|
|
|
MSG_FINISH -> { |
|
|
|
MSG_FINISH -> { |
|
|
|
progressProbe!!.visibility = View.GONE |
|
|
|
progressProbe!!.visibility = View.GONE |
|
|
|
layoutProbe!!.visibility = View.VISIBLE |
|
|
|
layoutProbe!!.visibility = View.VISIBLE |
|
|
|
val result = msg.obj as MediaBean |
|
|
|
val result = msg.obj?: msg.obj |
|
|
|
val resultFormat = JsonParseTool.stringFormat(result) |
|
|
|
if (result != null) { |
|
|
|
|
|
|
|
val resultFormat = JsonParseTool.stringFormat(result as MediaBean) |
|
|
|
if (!TextUtils.isEmpty(resultFormat) && txtProbeFormat != null) { |
|
|
|
if (!TextUtils.isEmpty(resultFormat) && txtProbeFormat != null) { |
|
|
|
txtProbeFormat!!.text = resultFormat |
|
|
|
txtProbeFormat!!.text = resultFormat |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
else -> { |
|
|
|
else -> { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|