mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Remove Guava library as dependency from project
This commit is contained in:
parent
69218f0ef2
commit
68383676ce
@ -78,9 +78,6 @@ dependencies {
|
||||
// Tab indicator
|
||||
implementation "com.pacioianu.david:ink-page-indicator:$inkPageIndicatorVersion"
|
||||
|
||||
// Guava
|
||||
implementation group: 'com.google.guava', name: 'guava', version: '21.0'
|
||||
|
||||
// Dagger
|
||||
compileOnly "javax.annotation:javax.annotation-api:$javaxAnnotationVersion"
|
||||
androidTestCompileOnly "javax.annotation:javax.annotation-api:$javaxAnnotationVersion"
|
||||
|
@ -32,8 +32,6 @@ import android.widget.Filter;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
import org.kiwix.kiwixmobile.KiwixApplication;
|
||||
import org.kiwix.kiwixmobile.R;
|
||||
import org.kiwix.kiwixmobile.data.DataSource;
|
||||
@ -66,7 +64,7 @@ public class LibraryAdapter extends BaseAdapter {
|
||||
private static final int LIST_ITEM_TYPE_BOOK = 0;
|
||||
private static final int LIST_ITEM_TYPE_DIVIDER = 1;
|
||||
|
||||
private ImmutableList<Book> allBooks;
|
||||
private List<Book> allBooks;
|
||||
private List<ListItem> listItems = new ArrayList<>();
|
||||
private final Context context;
|
||||
public HashMap<String, Integer> languageCounts = new HashMap<>();
|
||||
@ -90,7 +88,7 @@ public class LibraryAdapter extends BaseAdapter {
|
||||
}
|
||||
|
||||
public void setAllBooks(List<Book> books) {
|
||||
allBooks = ImmutableList.copyOf(books);
|
||||
allBooks = Collections.unmodifiableList(books);
|
||||
updateLanguageCounts();
|
||||
updateLanguages();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user