mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 01:32:17 -05:00
small bugfix. messages were not marked as read when conversation was open
This commit is contained in:
parent
b673af2ba0
commit
962263e6e6
@ -11,13 +11,10 @@ import de.gultsch.chat.utils.PhoneHelper;
|
||||
import de.gultsch.chat.utils.UIHelper;
|
||||
import android.app.Fragment;
|
||||
import android.content.SharedPreferences;
|
||||
import android.database.Cursor;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Typeface;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.provider.ContactsContract.Profile;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
@ -212,5 +209,10 @@ public class ConversationFragment extends Fragment {
|
||||
int size = this.messageList.size();
|
||||
if (size >= 1)
|
||||
messagesView.setSelection(size - 1);
|
||||
ConversationActivity activity = (ConversationActivity) getActivity();
|
||||
if (!activity.shouldPaneBeOpen()) {
|
||||
conversation.markRead();
|
||||
activity.updateConversationList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user