Make hyperlinks update URL when screen is visible
Instead of updating the URL to the screen and then loading the RPCs, update the URL after the RPCs are complete and the screen is going to be made visible to the user. This allows us to behave similar to the way Gmail reacts, which is to avoid the URL update until the data you are viewing matches the URL. Change-Id: Iadde8240d506e3a51b9f064ecfa5fb91045616f5 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -43,7 +43,7 @@ public abstract class ScreenLoadCallback<T> extends GerritCallback<T> {
|
||||
@Override
|
||||
public void onFailure(final Throwable caught) {
|
||||
if (isNoSuchEntity(caught)) {
|
||||
Gerrit.display(new NotFoundScreen());
|
||||
Gerrit.display(screen.getToken(), new NotFoundScreen());
|
||||
} else {
|
||||
super.onFailure(caught);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user