Add E-Ink mode

This commit is contained in:
NekoInverter committed 2020-11-17 17:50:13 +08:00
1 parent 962938ac1f
commit 2b8049a4fb
18 files changed
+2663 -9

No files matched your search

@@ -152,7 +152,7 @@ public class SearchBar extends MaterialCardView implements View.OnClickListener,
mListView.addItemDecoration(decoration);
mListView.setLayoutManager(layoutManager);
mListView.setOnItemClickListener((parent, view, position, id) -> {
if (position < mSuggestionList.size() - 1) {
if (position < mSuggestionList.size()) {
mSuggestionList.get(position).onClick();
return true;
} else {
@@ -160,7 +160,7 @@ public class SearchBar extends MaterialCardView implements View.OnClickListener,
}
});
mListView.setOnItemLongClickListener((parent, view, position, id) -> {
if (position < mSuggestionList.size() - 1) {
if (position < mSuggestionList.size()) {
return mSuggestionList.get(position).onLongClick();
} else {
return false;