show closed conversation view
@@ -503,14 +503,12 @@ public abstract class MobiComConversationFragment extends Fragment implements Vi
kmFeedbackView = list.findViewById(R.id.idKmFeedbackView);
//what to do when Restart Conversation button is clicked
- if (themeHelper.isCollectFeedback()) {
kmFeedbackView.setInteractionListener(new KmFeedbackView.KmFeedbackViewCallbacks() {
@Override
public void onRestartConversationPressed() {
setFeedbackDisplay(false);
}
});
- }
mainEditTextLinearLayout = (LinearLayout) list.findViewById(R.id.main_edit_text_linear_layout);
@@ -1967,14 +1965,12 @@ public abstract class MobiComConversationFragment extends Fragment implements Vi
// check if conversation is a resolved one, and display the respective feedback layouts
// also open the feedback input fragment if feedback isn't set
- if (themeHelper.isCollectFeedback()) {
if (channel != null && channel.getKmStatus() == Channel.CLOSED_CONVERSATIONS && !KmUtils.isAgent(getContext())) {
setFeedbackDisplay(true);
} else {
setFeedbackDisplay(false);
}
}
- }
public void updateLastSeenStatus() {
@@ -4355,14 +4351,15 @@ public abstract class MobiComConversationFragment extends Fragment implements Vi
* @param display true to display/ false to not
*/
public void setFeedbackDisplay(boolean display) {
- if (themeHelper.isCollectFeedback() && channel != null && !channel.isDeleted()) {
+ if (channel != null && !channel.isDeleted()) {
if (display) {
kmFeedbackView.setVisibility(VISIBLE);
individualMessageSendLayout.setVisibility(View.GONE);
mainDivider.setVisibility(View.GONE);
- frameLayoutProgressbar.setVisibility(VISIBLE);
+ if (themeHelper.isCollectFeedback()) {
+ frameLayoutProgressbar.setVisibility(VISIBLE);
KmService.getConversationFeedback(getActivity(), String.valueOf(channel.getKey()), new KmFeedbackCallback() {
@Override
public void onSuccess(Context context, KmApiResponse<KmFeedback> response) {
@@ -4385,6 +4382,7 @@ public abstract class MobiComConversationFragment extends Fragment implements Vi
Utils.printLog(getContext(), TAG, "Feedback get failed: " + e.toString());
}
});
+ }
} else {
kmFeedbackView.setVisibility(View.GONE);
individualMessageSendLayout.setVisibility(VISIBLE);
