+ if ("true".equals(request.getHttpRequest().getPartAsStringFailsafe("moveLeft", 4))) {
+ album.get().moveUp();
+ webInterface.getCore().touchConfiguration();
+ throw new RedirectException("imageBrowser.html?album=" + album.get().getParent().getId());
+ } else if ("true".equals(request.getHttpRequest().getPartAsStringFailsafe("moveRight", 4))) {
+ album.get().moveDown();
+ webInterface.getCore().touchConfiguration();
+ throw new RedirectException("imageBrowser.html?album=" + album.get().getParent().getId());
+ }
+ String albumImageId = request.getHttpRequest().getPartAsStringFailsafe("album-image", 36);
+ if (!webInterface.getCore().getImage(albumImageId).isPresent()) {
+ albumImageId = null;
+ }
+ album.get().modify().setAlbumImage(albumImageId).update();