forked from upstream-mirrors/quik
Opening conversation after app is garbage collected works now
This commit is contained in:
@@ -173,6 +173,7 @@ public class MessageListFragment extends QKContentFragment implements ActivityLa
|
|||||||
|
|
||||||
private long mLastMessageId;
|
private long mLastMessageId;
|
||||||
private BackgroundQueryHandler mBackgroundQueryHandler;
|
private BackgroundQueryHandler mBackgroundQueryHandler;
|
||||||
|
private LoadConversationTask mLoadConversationTask;
|
||||||
|
|
||||||
public static final String ARG_THREAD_ID = "threadId";
|
public static final String ARG_THREAD_ID = "threadId";
|
||||||
public static final String ARG_ROW_ID = "rowId";
|
public static final String ARG_ROW_ID = "rowId";
|
||||||
@@ -325,8 +326,7 @@ public class MessageListFragment extends QKContentFragment implements ActivityLa
|
|||||||
* Note: This will have no effect if the context has not been initialized yet.
|
* Note: This will have no effect if the context has not been initialized yet.
|
||||||
*/
|
*/
|
||||||
private void onOpenConversation() {
|
private void onOpenConversation() {
|
||||||
Log.d(TAG, "onOpenConversation with threadId: " + mThreadId);
|
new LoadConversationTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, null);
|
||||||
new LoadConversationTask().execute((Void[]) null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTitle() {
|
public void setTitle() {
|
||||||
@@ -1374,6 +1374,10 @@ public class MessageListFragment extends QKContentFragment implements ActivityLa
|
|||||||
|
|
||||||
private class LoadConversationTask extends AsyncTask<Void, Void, Void> {
|
private class LoadConversationTask extends AsyncTask<Void, Void, Void> {
|
||||||
|
|
||||||
|
public LoadConversationTask() {
|
||||||
|
Log.d(TAG, "LoadConversationTask");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Void doInBackground(Void... params) {
|
protected Void doInBackground(Void... params) {
|
||||||
Log.d(TAG, "Loading conversation");
|
Log.d(TAG, "Loading conversation");
|
||||||
|
|||||||
Reference in New Issue
Block a user