Prevent insert quick response crash.

Monkeys can click really fast, before the data is finished loading.

Bug: 5067086
Change-Id: I7f9248b0fb694a83ecb793570b2a17f91a49ad85
This commit is contained in:
Ben Komalo 2011-10-21 08:23:26 -07:00
parent 41495761db
commit d69fab905d

View File

@ -1481,6 +1481,10 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
}
private void showQuickResponseDialog() {
if (mAccount == null) {
// Load not finished, bail.
return;
}
InsertQuickResponseDialog.newInstance(null, mAccount)
.show(getFragmentManager(), null);
}