作者 liyan

注释loadservice

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
... ...
... ... @@ -48,18 +48,18 @@ abstract class BaseLifeCycleActivity<VM : BaseViewModel<*>,VB : ViewBinding>(pri
open fun showLoading() {
loadService.showCallback(LoadingCallBack::class.java)
// loadService.showCallback(LoadingCallBack::class.java)
}
open fun showSuccess() {
loadService.showCallback(SuccessCallback::class.java)
// loadService.showCallback(SuccessCallback::class.java)
}
open fun showError(msg: String) {
if (!TextUtils.isEmpty(msg)) {
Toast.makeText(this, msg, Toast.LENGTH_SHORT).show()
}
loadService.showCallback(ErrorCallBack::class.java)
// loadService.showCallback(ErrorCallBack::class.java)
}
open fun showTip(msg: String) {
... ... @@ -72,11 +72,11 @@ abstract class BaseLifeCycleActivity<VM : BaseViewModel<*>,VB : ViewBinding>(pri
// }
// false
// }
loadService.showCallback(SuccessCallback::class.java)
// loadService.showCallback(SuccessCallback::class.java)
}
open fun showEmpty() {
loadService.showCallback(EmptyCallBack::class.java)
// loadService.showCallback(EmptyCallBack::class.java)
}
/**
... ...