From d7bb4a6a2a7e2b5b1d0a3eac3e42f3c2c8346c10 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 30 Sep 2015 22:51:36 +0200 Subject: [PATCH] Create adapter in presenter --- ...eArrayAdapter.java => LibraryAdapter.java} | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) rename app/src/main/java/eu/kanade/mangafeed/ui/adapter/{CatalogueArrayAdapter.java => LibraryAdapter.java} (64%) diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/adapter/CatalogueArrayAdapter.java b/app/src/main/java/eu/kanade/mangafeed/ui/adapter/LibraryAdapter.java similarity index 64% rename from app/src/main/java/eu/kanade/mangafeed/ui/adapter/CatalogueArrayAdapter.java rename to app/src/main/java/eu/kanade/mangafeed/ui/adapter/LibraryAdapter.java index de2e1493e3..6cfad0b4c5 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/adapter/CatalogueArrayAdapter.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/adapter/LibraryAdapter.java @@ -1,18 +1,3 @@ -/* - * Copyright (C) 2014 Ribot Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package eu.kanade.mangafeed.ui.adapter; import android.content.Context; @@ -24,15 +9,14 @@ import java.util.List; import eu.kanade.mangafeed.data.models.Manga; import rx.Observable; import uk.co.ribot.easyadapter.EasyAdapter; -import uk.co.ribot.easyadapter.ItemViewHolder; -public class CatalogueArrayAdapter extends EasyAdapter implements Filterable { +public class LibraryAdapter extends EasyAdapter implements Filterable { List mangas; Filter filter; - public CatalogueArrayAdapter(Context context, Class itemViewHolderClass, List listItems) { - super(context, itemViewHolderClass, listItems); + public LibraryAdapter(Context context, List listItems) { + super(context, MangaLibraryHolder.class, listItems); mangas = (List)getItems(); filter = new CatalogueFilter(); }