@@ -12,8 +12,6 @@ import com.chwl.app.UIHelper
import com.chwl.app.base.BaseViewBindingActivity
import com.chwl.app.common.widget.dialog.DialogManager.OkCancelDialogListener
import com.chwl.app.databinding.ActivitySettingBinding
import com.chwl.app.decoration.view.MyDecorationActivity
import com.chwl.app.notify.GlobalNotifyManager
import com.chwl.app.notify.RoomNotifyManager
import com.chwl.app.ui.im.avtivity.BlackListManageActivity
import com.chwl.app.ui.language.LanguageActivity
@@ -35,13 +33,11 @@ import com.chwl.library.common.util.SPUtils
import com.chwl.library.utils.ResUtil
import com.chwl.library.utils.file.JXFileUtils
import com.example.lib_utils.log.ILog
import com.google.gson.Gson
import com.netease.nim.uikit.StatusBarUtil
import org.greenrobot.eventbus.EventBus
import org.greenrobot.eventbus.Subscribe
import org.greenrobot.eventbus.ThreadMode
import java.io.File
import kotlin.random.Random
/**
@@ -222,35 +218,5 @@ class SettingActivity : BaseViewBindingActivity<ActivitySettingBinding>(), View.
// startActivity(Intent(this, LanguageActivity::class.java))
// MyDecorationActivity.start(this,0)
debugTemplate ( )
}
var i = 0
private fun debugTemplate ( ) {
GlobalNotifyManager . queue . addLast ( " G# " + i )
notify ?. queue ?. addLast ( " R# " + i )
i ++
val jsonImage =
" { \" template \" :{ \" zh-TW \" : \" 你好,我是{谁},在{这里}等你 \" }, \" textColor \" : \" #EEEEEE \" , \" fontSize \" :12, \" skipType \" :1, \" skipContent \" : \" 54 \" , \" contents \" :[{ \" key \" : \" 谁 \" , \" type \" : \" TEXT \" , \" text \" :{ \" zh-TW \" : \" Name189 \" }, \" textColor \" : \" #FFFF00 \" , \" skipType \" :1, \" skipContent \" : \" 54 \" },{ \" key \" : \" 这里 \" , \" type \" : \" TEXT \" , \" text \" :{ \" zh-TW \" : \" 广州路口 \" }, \" textColor \" : \" #00FF00 \" }], \" resourceType \" : \" IMAGE \" , \" resourceContent \" : \" https://image.hiyoo.fun/bg_zoo_notice.png \" } "
val jsonImage2 =
" { \" template \" :{ \" zh-TW \" : \" 你好,我是{谁},在{这里}等你 \" }, \" textColor \" : \" #EEEEEE \" , \" fontSize \" :12, \" skipType \" :1, \" skipContent \" : \" 54 \" , \" contents \" :[{ \" key \" : \" 谁 \" , \" type \" : \" TEXT \" , \" text \" :{ \" zh-TW \" : \" Name189 \" }, \" textColor \" : \" #FFFF00 \" , \" skipType \" :1, \" skipContent \" : \" 54 \" },{ \" key \" : \" 这里 \" , \" type \" : \" TEXT \" , \" text \" :{ \" zh-TW \" : \" 广州路口 \" }, \" textColor \" : \" #00FF00 \" }], \" resourceType \" : \" IMAGE \" , \" resourceContent \" : \" https://img2.baidu.com/it/u=861101866,1488660334&fm=253&fmt=auto&app=138&f=JPEG?w=650&h=244 \" } "
val jsonSvga =
" { \" template \" :{ \" zh-TW \" : \" S你好, 我是{谁},在{这里}等你 \" }, \" textColor \" : \" #EEEEEE \" , \" fontSize \" :24, \" skipType \" :1, \" skipContent \" : \" 54 \" , \" contents \" :[{ \" key \" : \" 谁 \" , \" type \" : \" TEXT \" , \" text \" :{ \" zh-TW \" : \" Name189 \" }, \" textColor \" : \" #FFFF00 \" , \" skipType \" :1, \" skipContent \" : \" 54 \" },{ \" key \" : \" 这里 \" , \" type \" : \" TEXT \" , \" text \" :{ \" zh-TW \" : \" 广州路口 \" }, \" textColor \" : \" #00FF00 \" }], \" resourceType \" : \" SVGA \" , \" resourceContent \" : \" https://image.hiyoo.fun/fengkuangdongwuyuanjinchangpiaoping.svga \" } "
val json : String
var i : Int = Random . Default . nextInt ( )
i = 1
json = if ( i % 3 == 0 ) {
jsonImage
} else if ( i % 3 == 1 ) {
jsonImage2
} else {
jsonSvga
}
val data = Gson ( ) . fromJson (
json ,
RoomTemplateNotifyMsgBean :: class . java
)
notify ?. queue ?. addLast ( data )
}
}