From 725f70a54ce6eda4b473ebaa13c70ce320527372 Mon Sep 17 00:00:00 2001 From: inorichi Date: Tue, 24 Nov 2015 20:40:28 +0100 Subject: [PATCH] Minor fixes --- .../eu/kanade/mangafeed/ui/catalogue/CatalogueFragment.java | 2 +- .../kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java | 6 +----- .../kanade/mangafeed/ui/manga/info/MangaInfoFragment.java | 1 - app/src/main/res/layout/fragment_manga_chapters.xml | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/catalogue/CatalogueFragment.java b/app/src/main/java/eu/kanade/mangafeed/ui/catalogue/CatalogueFragment.java index 856d654193..46fdbc915a 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/catalogue/CatalogueFragment.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/catalogue/CatalogueFragment.java @@ -176,7 +176,7 @@ public class CatalogueFragment extends BaseRxFragment { if(v == null) return null; - return (ImageView) v.findViewById(R.id.catalogue_thumbnail); + return (ImageView) v.findViewById(R.id.thumbnail); } public void updateImage(Manga manga) { diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java b/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java index aab73a0a1d..1a2859730c 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java @@ -7,10 +7,6 @@ import android.view.View; import android.widget.ImageView; import android.widget.TextView; -import java.text.DateFormat; -import java.text.DecimalFormat; -import java.text.DecimalFormatSymbols; -import java.text.NumberFormat; import java.text.SimpleDateFormat; import java.util.Date; @@ -67,7 +63,7 @@ public class ChaptersHolder extends RecyclerView.ViewHolder implements else if (chapter.downloaded == Chapter.NOT_DOWNLOADED) download_icon.setImageResource(R.drawable.ic_file_download_black_36dp); - date.setText(sdf.format(new Date(chapter.date_fetch))); + date.setText(sdf.format(new Date(chapter.date_upload))); toggleActivation(); } diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/manga/info/MangaInfoFragment.java b/app/src/main/java/eu/kanade/mangafeed/ui/manga/info/MangaInfoFragment.java index 063bcd9038..e73f35c0a8 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/manga/info/MangaInfoFragment.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/manga/info/MangaInfoFragment.java @@ -1,7 +1,6 @@ package eu.kanade.mangafeed.ui.manga.info; import android.os.Bundle; -import android.support.v7.widget.Toolbar; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; diff --git a/app/src/main/res/layout/fragment_manga_chapters.xml b/app/src/main/res/layout/fragment_manga_chapters.xml index 56e6162c80..0f0b7cad01 100644 --- a/app/src/main/res/layout/fragment_manga_chapters.xml +++ b/app/src/main/res/layout/fragment_manga_chapters.xml @@ -10,7 +10,7 @@ android:id="@+id/swipe_refresh" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_above="@id/appbar_bottom" + android:layout_above="@+id/appbar_bottom" android:orientation="vertical">