...
|
...
|
@@ -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)
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|