新增测试闪退入口:在首页长按排行榜图标触发空指针

This commit is contained in:
zlzw 2023-02-13 16:28:11 +08:00
parent 11cf971514
commit d36ece4c54

View File

@ -1,6 +1,7 @@
package com.yunbao.main.views;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
@ -37,6 +38,12 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
super.init();
img_trophy = (ImageView) findViewById(R.id.img_trophy);
img_trophy.setOnLongClickListener(v -> {
if(true){
throw new NullPointerException("test");
}
return false;
});
ImgLoader.display(mContext, "https://downs.yaoulive.com/gif_trophy.gif", img_trophy);