Mark message as read in the MessageListFragment when it is attached, rather than when it started.

Fixes the ToolBar title bug where when the app returns to the foreground, the title is set to the title from the MessageListFragment
This commit is contained in:
Peter Chu
2015-08-18 21:23:20 -04:00
parent ad1b732391
commit 95d5e508c4
@@ -1,5 +1,6 @@
package com.moez.QKSMS.ui.messagelist;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.LoaderManager;
import android.content.ClipData;
@@ -218,8 +219,8 @@ public class MessageListFragment extends QKContentFragment implements ActivityLa
}
@Override
public void onStart() {
super.onStart();
public void onAttach(Activity activity) {
super.onAttach(activity);
// Make sure to notify that this conversation has been opened. This will mark it as read, load new drafts, etc.
onOpenConversation();