Commit 16b4fb12 authored by wanglei's avatar wanglei

...

parent 426fecc0
...@@ -89,16 +89,16 @@ object NotificationUiUtil { ...@@ -89,16 +89,16 @@ object NotificationUiUtil {
val mainHandler = Handler(Looper.getMainLooper()) val mainHandler = Handler(Looper.getMainLooper())
Thread { Thread {
val news: NewsBean? = getNewSp()?.random() val list: List<NewsBean> = getNewSp()
if (news == null) { if (list.isEmpty()) {
LogEx.logDebug(TAG, "NewsBean==null") LogEx.logDebug(TAG, "NewsBean list==null")
return@Thread return@Thread
} }
val news = list.random()
val bitmap = getBitmapFromURL(news.orgImgPath) val bitmap = getBitmapFromURL(news.orgImgPath)
if (bitmap == null) { if (bitmap == null) {
LogEx.logDebug(TAG, "bitmap==null") LogEx.logDebug(TAG, "bitmap==null")
return@Thread
} }
mainHandler.post { mainHandler.post {
......
...@@ -4,7 +4,6 @@ import android.content.BroadcastReceiver ...@@ -4,7 +4,6 @@ import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
import android.content.IntentFilter 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_INSTALL_APP
import com.base.browserwhite.bean.ConstObject.ID_UNINSTALL_APP import com.base.browserwhite.bean.ConstObject.ID_UNINSTALL_APP
import com.base.browserwhite.fcm.NotificationPushUtil.PUSH_WHERE_UN_INSTALL_BROADCAST 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