[Fix]解决Binder记录超6000报错问题
原因:Android9开始每个uid的Binder Proxy记录超过6000条就提示 "Too many Binders sent to SYSTEM"
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user