Fix to call display() after calling preDisplay in MyWatchedProjectsScreen

When converting the MyWatchedProjectsScreen from old RPC to REST [1], the
call for display() was placed before watchesTab.display(). It's better to
exchange them so that it can be consistent with the rest code.

[1] https://gerrit-review.googlesource.com/#/c/77324/

Change-Id: Id5610ae3126aff01100c1ed5d60d035cdc056a2f
This commit is contained in:
Changcheng Xiao
2017-02-07 14:54:22 +01:00
parent a00f42a52f
commit fcc44a0508

View File

@@ -225,8 +225,8 @@ public class MyWatchedProjectsScreen extends SettingsScreen {
new GerritCallback<JsArray<ProjectWatchInfo>>() {
@Override
public void onSuccess(JsArray<ProjectWatchInfo> watchedProjects) {
display();
watchesTab.display(watchedProjects);
display();
}
});
}