|
|
@@ -57,6 +57,7 @@ class MainActivity : BaseActivity() {
|
|
|
private var language: Array<String?> ?=null
|
|
|
private var mAllModularRotateImgBean:List<AllModularRotateImgBean> ?=null
|
|
|
private val password : String = "123456"
|
|
|
+ private var rtName :String = "RES_GAME"
|
|
|
private var pos = 0
|
|
|
private val mHandler = Handler()
|
|
|
|
|
|
@@ -78,6 +79,7 @@ class MainActivity : BaseActivity() {
|
|
|
//点击图标位置
|
|
|
val intent = intent
|
|
|
val bundle = intent.extras
|
|
|
+ rtName = bundle!!.getString("rtName").toString()
|
|
|
pos = bundle!!.getInt("pos")
|
|
|
|
|
|
mUpCircleMenuLayout = findViewById(R.id.id_mymenulayout) as UpCircleMenuLayout
|
|
|
@@ -145,7 +147,7 @@ class MainActivity : BaseActivity() {
|
|
|
LogUtils.logD("findPositionAdvertLiveData"+res.data)
|
|
|
when (res?.code) {
|
|
|
BaseBean.SUCCESS -> {
|
|
|
- if (res.data!!.size != 0)
|
|
|
+ if (res.data != null)
|
|
|
{
|
|
|
val isFirstShowAds = SharedPrefUtils.getBoolean(this,"isFirstShowAds",true)
|
|
|
if (isFirstShowAds)
|
|
|
@@ -351,7 +353,7 @@ class MainActivity : BaseActivity() {
|
|
|
Glide.with(this)
|
|
|
.load(Config.ApiBaseUrl + "/synchronization/previewImg?imgUrl=" + it.data.get(9).garden)
|
|
|
.into(iv_mymenu_center)
|
|
|
- when (it.data.get(pos).mid) {
|
|
|
+ when (rtName) {
|
|
|
"RES_MOVIE" -> {
|
|
|
openPage(MovieFragment::class.java)
|
|
|
}
|