set list adapter to null when appropriate

set list adapter to null when (recipients or threadId == null) to
prevent old messages from being displayed when forwarding a
message to a recipient for which there is no existing
 conversation.

Fixes #2883
Closes #2884

// FREEBIE
fork-5.53.8
Rhodey Orbits 2015-04-03 14:54:47 -07:00 zatwierdzone przez Moxie Marlinspike
rodzic b77afa8903
commit efb4f388a5
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -103,6 +103,10 @@ public class ConversationFragment extends ListFragment
initializeResources();
initializeListAdapter();
if (threadId == -1) {
getLoaderManager().restartLoader(0, null, this);
}
}
private void initializeResources() {