Commit 2dc5f8aa by 刘鹏

修复跳过逻辑

parent 355dbab9
...@@ -10,7 +10,7 @@ ext { ...@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.03", "m-fm" : "0.0.30.03",
"m-user" : "0.0.61.37", "m-user" : "0.0.61.37",
"m-home" : "0.0.22.65", "m-home" : "0.0.22.65",
"m-im" : "0.0.19.27", "m-im" : "0.0.19.28",
"m-dynamic" : "0.0.7.22", "m-dynamic" : "0.0.7.22",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
......
...@@ -101,6 +101,8 @@ class CmsExamQuestionPaperActivity : BaseActivity() { ...@@ -101,6 +101,8 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
} }
override fun initDataAndEvent() { override fun initDataAndEvent() {
mType70RequestList.clear()
mType71RequestList.clear()
if (isJumpToIm()) { if (isJumpToIm()) {
//如果今天答过题,跳转到聊天界面 //如果今天答过题,跳转到聊天界面
skipToIm() skipToIm()
...@@ -114,6 +116,12 @@ class CmsExamQuestionPaperActivity : BaseActivity() { ...@@ -114,6 +116,12 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
preExamQuestionPaper() preExamQuestionPaper()
} }
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
mType70RequestList.clear()
mType71RequestList.clear()
}
private fun initRecycle() { private fun initRecycle() {
val linearLayoutManager = LinearLayoutManager(mContext, RecyclerView.VERTICAL, false) val linearLayoutManager = LinearLayoutManager(mContext, RecyclerView.VERTICAL, false)
recycle.layoutManager = linearLayoutManager recycle.layoutManager = linearLayoutManager
...@@ -200,6 +208,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() { ...@@ -200,6 +208,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
/**添加view事件*/ /**添加view事件*/
private fun addVIewListener() { private fun addVIewListener() {
left_back_btn.setOnClickListener { finish() }
tv_skip.setOnClickListener { tv_skip.setOnClickListener {
if (Utils.isFastClick()) { if (Utils.isFastClick()) {
//防止连击 //防止连击
...@@ -662,7 +671,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() { ...@@ -662,7 +671,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
val skipTime = SharedPreferencesEditor.getString("skip_time_") val skipTime = SharedPreferencesEditor.getString("skip_time_")
if (skipTime == null || skipTime.isEmpty()) { if (skipTime == null || skipTime.isEmpty()) {
return true return false
} }
val timeDifference = (time - skipTime.toLong()) / 1000 val timeDifference = (time - skipTime.toLong()) / 1000
val second = 1000 val second = 1000
......
...@@ -11,7 +11,16 @@ ...@@ -11,7 +11,16 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="44dp" android:layout_height="44dp"
android:background="@color/white"> android:background="@color/white">
<ImageView
android:id="@+id/left_back_btn"
android:layout_width="36dp"
android:layout_height="44dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:scaleType="centerCrop"
android:src="@drawable/im_nim_actionbar_dark_back_icon" />
<ImageView <ImageView
android:id="@+id/iv_close" android:id="@+id/iv_close"
android:layout_width="26dp" android:layout_width="26dp"
......
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