This commit is contained in:
David 2016-06-07 11:32:31 -03:00
parent 686f395158
commit 59523d6a08
1 changed files with 4 additions and 3 deletions

View File

@ -141,7 +141,8 @@ public class VideoItemListFragment extends ListFragment {
} catch(ExtractionException e) { } catch(ExtractionException e) {
ErrorActivity.reportError(h, getActivity(), e, null, null, ErrorActivity.reportError(h, getActivity(), e, null, null,
ErrorActivity.ErrorInfo.make(ErrorActivity.SEARCHED, ErrorActivity.ErrorInfo.make(ErrorActivity.SEARCHED,
/* todo: this shoudl not be assigned static */ "Youtube", query, R.string.parsing_error)); /* todo: this shoudl not be assigned static */
"Youtube", query, R.string.parsing_error));
//postNewErrorToast(h, R.string.parsing_error); //postNewErrorToast(h, R.string.parsing_error);
e.printStackTrace(); e.printStackTrace();
@ -288,8 +289,8 @@ public class VideoItemListFragment extends ListFragment {
int visibleItemCount, int totalItemCount) { int visibleItemCount, int totalItemCount) {
if (mode != PRESENT_VIDEOS_MODE if (mode != PRESENT_VIDEOS_MODE
&& list.getChildAt(0) != null && list.getChildAt(0) != null
&& list.getLastVisiblePosition() == list.getAdapter().getCount() - 1 && list.getLastVisiblePosition() == list.getAdapter().getCount() - 2
&& list.getChildAt(list.getChildCount() - 1).getBottom() <= list.getHeight()) { && list.getChildAt(list.getChildCount() - 1).getBottom() >= list.getHeight()) {
long time = System.currentTimeMillis(); long time = System.currentTimeMillis();
if ((time - lastScrollDate) > 200 if ((time - lastScrollDate) > 200
&& !loadingNextPage) { && !loadingNextPage) {