Commit 74a9b4f1 authored by liuyang's avatar liuyang

APK图片抓取识别及轮播流地址抓取, 增加手动清理图片缓存

#BYLSERVER-1438
parent 9b72634a
......@@ -90,7 +90,7 @@ class MainActivity : AppCompatActivity(), IAppBaseCallback {
}
clearBtn.setOnClickListener {
AppUtil.clearCache()
clearCache()
}
}
......@@ -138,6 +138,16 @@ class MainActivity : AppCompatActivity(), IAppBaseCallback {
}
}
private fun clearCache() {
clearBtn.isEnabled = false
ThreadProxy.getInstance().execute {
AppUtil.clearCache()
runOnUiThread {
clearBtn.isEnabled = true
}
}
}
private fun initRefreshTimer() {
refreshTimer = Timer()
......
......@@ -103,6 +103,8 @@ class ImageUploadTask {
}
}
uploadTaskListener?.onComplete()
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment