ChangeScreen2: Hide reply box when leaving the screen

If the reply box is open and the user clicks on a link to a
file with an inline comment, close the reply box. It should
not display over SideBySide2.

Change-Id: Idaed2f215181c75529f3cb1f3662cd7735a82dae
This commit is contained in:
Shawn Pearce
2013-12-05 11:16:31 -08:00
parent d688d36e89
commit f2997ab34c
2 changed files with 10 additions and 0 deletions

View File

@@ -212,6 +212,9 @@ public class ChangeScreen2 extends Screen {
@Override
protected void onUnload() {
if (replyAction != null) {
replyAction.hide();
}
if (updateCheck != null) {
updateCheck.cancel();
updateCheck = null;

View File

@@ -62,6 +62,13 @@ class ReplyAction {
: NativeMap.<JsArrayString> create();
}
void hide() {
if (popup != null) {
popup.hide();
}
return;
}
void onReply(MessageInfo msg) {
if (popup != null) {
popup.hide();