修改收起评论框数据丢失

This commit is contained in:
张玉久
2020-05-28 09:40:56 +08:00
parent 9a2baf1d8c
commit 81debc1cd8
2 changed files with 3 additions and 3 deletions

View File

@ -431,7 +431,7 @@ public class MessageDetailFragment extends NormalFragment implements OnCommentCa
});
break;
case R.id.shadowView:
setSoftInput(false);
Util_System_Keyboard.hideSoftKeyboard(getActivity());
break;
}
@ -513,7 +513,7 @@ public class MessageDetailFragment extends NormalFragment implements OnCommentCa
if(requireActivity() instanceof MessageDetailActivity){
View shadowView = ((MessageDetailActivity) requireActivity()).shadowView;
shadowView.setVisibility(isPopup ? View.VISIBLE : View.GONE);
shadowView.setOnClickListener(v -> {setSoftInput(false);});
shadowView.setOnClickListener(v -> Util_System_Keyboard.hideSoftKeyboard(getActivity()));
}
mCommentLine.setVisibility(isPopup ? View.GONE : View.VISIBLE);
mShadowView.setVisibility(isPopup ? View.VISIBLE : View.GONE);

View File

@ -311,7 +311,7 @@ open class NewCommentFragment : ListFragment<CommentEntity, NewCommentViewModel>
}
}
R.id.shadowView -> {
setSoftInput(false)
Util_System_Keyboard.hideSoftKeyboard(context, commentEt)
}
}
}