if (activity == null || activity.isDestroyed() || activity.isFinishing()) { DebugUtil.e(tag, msg); return; }