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); super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) { if (resultCode == RESULT_OK) {
if (requestCode == REQUEST_DECRYPT_PGP) { if (requestCode == REQUEST_DECRYPT_PGP) {
ConversationFragment selectedFragment = (ConversationFragment) getFragmentManager() mConversationFragment.hideSnackbar();
.findFragmentByTag("conversation"); mConversationFragment.updateMessages();
if (selectedFragment != null) {
selectedFragment.hideSnackbar();
selectedFragment.updateMessages();
}
} else if (requestCode == REQUEST_ATTACH_IMAGE_DIALOG) { } else if (requestCode == REQUEST_ATTACH_IMAGE_DIALOG) {
mPendingImageUri = data.getData(); mPendingImageUri = data.getData();
if (xmppConnectionServiceBound) { if (xmppConnectionServiceBound) {