Skip to content
Snippets Groups Projects
Commit 5ea05407 authored by buczekp's avatar buczekp
Browse files

[LMS-1833] use history value change handler in both view modes

SVN: 18233
parent 67e80117
No related branches found
No related tags found
No related merge requests found
...@@ -175,6 +175,7 @@ public class Client implements EntryPoint, ValueChangeHandler<String> ...@@ -175,6 +175,7 @@ public class Client implements EntryPoint, ValueChangeHandler<String>
initializeControllers(openUrlController); initializeControllers(openUrlController);
} }
final ViewLocator locator = createViewLocator(History.getToken()); final ViewLocator locator = createViewLocator(History.getToken());
History.addValueChangeHandler(this); // both modes
final IClientServiceAsync service = getServiceForRetrievingApplicationInfo(viewContext); final IClientServiceAsync service = getServiceForRetrievingApplicationInfo(viewContext);
service.getApplicationInfo(new AbstractAsyncCallback<ApplicationInfo>(viewContext) service.getApplicationInfo(new AbstractAsyncCallback<ApplicationInfo>(viewContext)
...@@ -208,10 +209,6 @@ public class Client implements EntryPoint, ValueChangeHandler<String> ...@@ -208,10 +209,6 @@ public class Client implements EntryPoint, ValueChangeHandler<String>
viewContext.log("viewMode = " + viewMode); viewContext.log("viewMode = " + viewMode);
final boolean simpleMode = viewMode == ViewMode.SIMPLE; final boolean simpleMode = viewMode == ViewMode.SIMPLE;
ClientStaticState.setSimpleMode(simpleMode); ClientStaticState.setSimpleMode(simpleMode);
if (simpleMode)
{
History.addValueChangeHandler(Client.this);
}
} }
private ViewMode tryGetUrlViewMode() private ViewMode tryGetUrlViewMode()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment