|
@@ -31,6 +31,7 @@ import com.enation.javashop.net.engine.plugin.rxbus.RxBus
|
|
|
import com.enation.javashop.utils.base.tool.CommonTool
|
|
|
import com.enation.javashop.utils.base.tool.ScreenTool
|
|
|
import com.enation.javashop.utils.logger.LoggerFactory
|
|
|
+import com.hjq.toast.Toaster
|
|
|
import com.wdkl.ncs.android.lib.R
|
|
|
import io.reactivex.disposables.Disposable
|
|
|
import okhttp3.ResponseBody
|
|
@@ -85,7 +86,14 @@ fun showMessage(message: String) {
|
|
|
if (message == ""){
|
|
|
return
|
|
|
}
|
|
|
- val messageCallback = {
|
|
|
+
|
|
|
+ try {
|
|
|
+ Toaster.showShort(message)
|
|
|
+ } catch (ex: Exception) {
|
|
|
+ //
|
|
|
+ }
|
|
|
+
|
|
|
+ /*val messageCallback = {
|
|
|
Toast.makeText(BaseApplication.appContext, message, Toast.LENGTH_SHORT).show()
|
|
|
}
|
|
|
try {
|
|
@@ -93,7 +101,7 @@ fun showMessage(message: String) {
|
|
|
} catch (runtime: RuntimeException) {
|
|
|
Looper.prepare()
|
|
|
messageCallback.invoke()
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
fun showMessage(resId: Int) {
|