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:
parent
41495761db
commit
d69fab905d
@ -1481,6 +1481,10 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void showQuickResponseDialog() {
|
private void showQuickResponseDialog() {
|
||||||
|
if (mAccount == null) {
|
||||||
|
// Load not finished, bail.
|
||||||
|
return;
|
||||||
|
}
|
||||||
InsertQuickResponseDialog.newInstance(null, mAccount)
|
InsertQuickResponseDialog.newInstance(null, mAccount)
|
||||||
.show(getFragmentManager(), null);
|
.show(getFragmentManager(), null);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user