don't request fragment before updating

This commit is contained in:
iNPUTmice 2014-11-30 22:27:11 +01:00
parent 52a43db6d6
commit 57fd763066

View file

@ -771,12 +771,8 @@ public class ConversationActivity extends XmppActivity implements
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {
if (requestCode == REQUEST_DECRYPT_PGP) {
ConversationFragment selectedFragment = (ConversationFragment) getFragmentManager()
.findFragmentByTag("conversation");
if (selectedFragment != null) {
selectedFragment.hideSnackbar();
selectedFragment.updateMessages();
}
mConversationFragment.hideSnackbar();
mConversationFragment.updateMessages();
} else if (requestCode == REQUEST_ATTACH_IMAGE_DIALOG) {
mPendingImageUri = data.getData();
if (xmppConnectionServiceBound) {