Use a custom PlaceController to go to the previous page after login.
authorMurray Cumming <murrayc@murrayc.com>
Thu, 6 Dec 2012 21:19:08 +0000 (22:19 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 6 Dec 2012 21:19:08 +0000 (22:19 +0100)
commitee9b1044595448a5fd842897205d6947cf13c61f
treeda8c899d8bae3268c2c41a6a203f83a583f3bbd1
parent2c6b67f2e80533c1b33fa9270294018c92ad4a61
Use a custom PlaceController to go to the previous page after login.

        * src/main/java/org/glom/web/client/PlaceControllerExt.java:
A derived PlaceController that knows the previous, and default,
places, and can take us to the appropriate one.
        * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
        Instantiate the custom PlaceController instead of the regular one.
        * src/main/java/org/glom/web/client/OnlineGlom.java:
Use the defaultPlace from the PlaceControllerExt, to avoid
duplication.
        * src/main/java/org/glom/web/client/activity/DocumentLoginActivity.java:
        Add goToPrevious() and goToDefault(), using the custom PlaceController.
        Use these instead of the hard-coded goTo() calls.
ChangeLog
src/main/java/org/glom/web/client/ClientFactoryImpl.java
src/main/java/org/glom/web/client/OnlineGlom.java
src/main/java/org/glom/web/client/PlaceControllerExt.java [new file with mode: 0644]
src/main/java/org/glom/web/client/activity/DocumentLoginActivity.java