修改收起评论框数据丢失
This commit is contained in:
@ -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);
|
||||
|
||||
@ -311,7 +311,7 @@ open class NewCommentFragment : ListFragment<CommentEntity, NewCommentViewModel>
|
||||
}
|
||||
}
|
||||
R.id.shadowView -> {
|
||||
setSoftInput(false)
|
||||
Util_System_Keyboard.hideSoftKeyboard(context, commentEt)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user