Skip to content

Commit

Permalink
1、完善demo
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Nov 20, 2024
1 parent 40f9d3d commit 316ab8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/src/main/java/com/flyjingfish/androidaop/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import java.io.IOException
import java.lang.Thread.sleep

class MainActivity: BaseActivity2(), PermissionRejectListener{
Expand All @@ -60,7 +61,11 @@ class MainActivity: BaseActivity2(), PermissionRejectListener{
binding.btnSingleClick.setOnClickListener(object :MyOnClickListener(){
override fun onClick(v: View?) {
super.onClick(v)
onSingleClick()
try {
onSingleClick()
} catch (e: IOException) {
e.printStackTrace()
}
val bean = OrderFillTransactionBean(emptyList<OrderFillTransaction>(),"")
bean.toString()
bean.hashCode()
Expand Down Expand Up @@ -177,6 +182,7 @@ class MainActivity: BaseActivity2(), PermissionRejectListener{
fun onSingleClick(){
// var number = 1;
// number = o!!.number
throw IOException("sss")
Log.e("MainActivity","onSingleClick")
setLogcat("@SingleClick 5000毫秒内只能点击一次")
}
Expand Down

0 comments on commit 316ab8d

Please sign in to comment.