Fix saving adding the extension twice

filtering
Floens 10 years ago
parent 83a532907b
commit d3a53c428c
  1. 2
      Clover/app/src/main/java/org/floens/chan/core/model/PostImage.java
  2. 2
      Clover/app/src/main/java/org/floens/chan/ui/controller/ImageViewerController.java

@ -20,7 +20,7 @@ public class PostImage {
this.originalName = originalName; this.originalName = originalName;
this.thumbnailUrl = thumbnailUrl; this.thumbnailUrl = thumbnailUrl;
this.imageUrl = imageUrl; this.imageUrl = imageUrl;
this.filename = filename + "." + extension; this.filename = filename;
this.extension = extension; this.extension = extension;
this.imageWidth = imageWidth; this.imageWidth = imageWidth;
this.imageHeight = imageHeight; this.imageHeight = imageHeight;

@ -223,7 +223,7 @@ public class ImageViewerController extends Controller implements View.OnClickLis
} }
public void setTitle(PostImage postImage, int index, int count) { public void setTitle(PostImage postImage, int index, int count) {
navigationItem.title = postImage.filename; navigationItem.title = postImage.filename + "." + postImage.extension;
navigationItem.subtitle = (index + 1) + "/" + count; navigationItem.subtitle = (index + 1) + "/" + count;
navigationItem.updateTitle(); navigationItem.updateTitle();
} }

Loading…
Cancel
Save