[Fix]解决Binder记录超6000报错问题

原因:Android9开始每个uid的Binder Proxy记录超过6000条就提示
"Too many Binders sent to SYSTEM"
This commit is contained in:
chenfufeng
2022-06-28 15:52:57 +08:00
committed by liujing
parent ea9a256ac3
commit 55831a85c7

View File

@@ -26,6 +26,7 @@ import androidx.lifecycle.LifecycleOwner;
import com.mogo.eagle.core.utilcode.kotlin.ExtensionsKt;
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger;
import com.mogo.eagle.core.utilcode.util.ToastUtils;
/**
@@ -64,7 +65,12 @@ public final class TipToast {
if (TextUtils.isEmpty(message)) {
return;
}
new ToastThread(new StringToastRunnable(sContext, message, duration, tipDrawable)).start();
if (duration == Toast.LENGTH_LONG) {
ToastUtils.showLong(message);
} else {
ToastUtils.showShort(message);
}
// new ToastThread(new StringToastRunnable(sContext, message, duration, tipDrawable)).start();
}
private static void tip(final int msgId, int duration, TipDrawable tipDrawable) {