|
@@ -59,7 +59,7 @@ abstract class BaseActivity<VM : CommonBaseViewModel, VB : ViewBinding> : Common
|
59
|
59
|
}
|
60
|
60
|
|
61
|
61
|
open fun useNetMessage(s: String) {
|
62
|
|
-
|
|
62
|
+ Toast(s)
|
63
|
63
|
}
|
64
|
64
|
|
65
|
65
|
|
|
@@ -67,14 +67,12 @@ abstract class BaseActivity<VM : CommonBaseViewModel, VB : ViewBinding> : Common
|
67
|
67
|
try {
|
68
|
68
|
Toaster.show(s)
|
69
|
69
|
Toaster.setGravity(Gravity.CENTER)
|
70
|
|
- }catch (e:java.lang.Exception){
|
|
70
|
+ } catch (e: java.lang.Exception) {
|
71
|
71
|
android.widget.Toast.makeText(this, s, android.widget.Toast.LENGTH_SHORT).show()
|
72
|
72
|
}
|
73
|
73
|
}
|
74
|
74
|
|
75
|
75
|
|
76
|
|
-
|
77
|
|
-
|
78
|
76
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
79
|
77
|
open fun onUiEvent(uiEvent: UIEvent) {
|
80
|
78
|
}
|