Commit 16b4fb12 authored by wanglei's avatar wanglei

...

parent 426fecc0
......@@ -89,16 +89,16 @@ object NotificationUiUtil {
val mainHandler = Handler(Looper.getMainLooper())
Thread {
val news: NewsBean? = getNewSp()?.random()
if (news == null) {
LogEx.logDebug(TAG, "NewsBean==null")
val list: List<NewsBean> = getNewSp()
if (list.isEmpty()) {
LogEx.logDebug(TAG, "NewsBean list==null")
return@Thread
}
val news = list.random()
val bitmap = getBitmapFromURL(news.orgImgPath)
if (bitmap == null) {
LogEx.logDebug(TAG, "bitmap==null")
return@Thread
}
mainHandler.post {
......
......@@ -4,7 +4,6 @@ import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import com.applovin.impl.br
import com.base.browserwhite.bean.ConstObject.ID_INSTALL_APP
import com.base.browserwhite.bean.ConstObject.ID_UNINSTALL_APP
import com.base.browserwhite.fcm.NotificationPushUtil.PUSH_WHERE_UN_INSTALL_BROADCAST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment