新增测试闪退入口:在首页长按排行榜图标触发空指针
This commit is contained in:
parent
11cf971514
commit
d36ece4c54
@ -1,6 +1,7 @@
|
|||||||
package com.yunbao.main.views;
|
package com.yunbao.main.views;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
@ -37,6 +38,12 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
|
|||||||
super.init();
|
super.init();
|
||||||
|
|
||||||
img_trophy = (ImageView) findViewById(R.id.img_trophy);
|
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);
|
ImgLoader.display(mContext, "https://downs.yaoulive.com/gif_trophy.gif", img_trophy);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user