1、问题描述:
DialogFragment无法关闭
2、问题原因:
因更新编译版本到31 ,
image.png上述方法添加fragment后activity.supportFragmentManager.findFragmentByTag(tag) 获得的对象为空
3、问题解决方案:
image.png
1、注释remove方法 2、采用系统默认方法
1、问题描述:
DialogFragment无法关闭
2、问题原因:
因更新编译版本到31 ,
image.png上述方法添加fragment后activity.supportFragmentManager.findFragmentByTag(tag) 获得的对象为空
3、问题解决方案:
1、注释remove方法 2、采用系统默认方法
本文标题:DialogFragment无法关闭问题解决
本文链接:https://www.haomeiwen.com/subject/ntdzartx.html
网友评论