作者 liyan

注释loadservice

  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project version="4">
  3 + <component name="VcsDirectoryMappings">
  4 + <mapping directory="$PROJECT_DIR$" vcs="Git" />
  5 + </component>
  6 +</project>
@@ -48,18 +48,18 @@ abstract class BaseLifeCycleActivity<VM : BaseViewModel<*>,VB : ViewBinding>(pri @@ -48,18 +48,18 @@ abstract class BaseLifeCycleActivity<VM : BaseViewModel<*>,VB : ViewBinding>(pri
48 48
49 49
50 open fun showLoading() { 50 open fun showLoading() {
51 - loadService.showCallback(LoadingCallBack::class.java) 51 +// loadService.showCallback(LoadingCallBack::class.java)
52 } 52 }
53 53
54 open fun showSuccess() { 54 open fun showSuccess() {
55 - loadService.showCallback(SuccessCallback::class.java) 55 +// loadService.showCallback(SuccessCallback::class.java)
56 } 56 }
57 57
58 open fun showError(msg: String) { 58 open fun showError(msg: String) {
59 if (!TextUtils.isEmpty(msg)) { 59 if (!TextUtils.isEmpty(msg)) {
60 Toast.makeText(this, msg, Toast.LENGTH_SHORT).show() 60 Toast.makeText(this, msg, Toast.LENGTH_SHORT).show()
61 } 61 }
62 - loadService.showCallback(ErrorCallBack::class.java) 62 +// loadService.showCallback(ErrorCallBack::class.java)
63 } 63 }
64 64
65 open fun showTip(msg: String) { 65 open fun showTip(msg: String) {
@@ -72,11 +72,11 @@ abstract class BaseLifeCycleActivity<VM : BaseViewModel<*>,VB : ViewBinding>(pri @@ -72,11 +72,11 @@ abstract class BaseLifeCycleActivity<VM : BaseViewModel<*>,VB : ViewBinding>(pri
72 // } 72 // }
73 // false 73 // false
74 // } 74 // }
75 - loadService.showCallback(SuccessCallback::class.java) 75 +// loadService.showCallback(SuccessCallback::class.java)
76 } 76 }
77 77
78 open fun showEmpty() { 78 open fun showEmpty() {
79 - loadService.showCallback(EmptyCallBack::class.java) 79 +// loadService.showCallback(EmptyCallBack::class.java)
80 } 80 }
81 81
82 /** 82 /**