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:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user