Scroll down when showing next page progress in change list When scrolling down to the end of the change list it automatically loads the next page. While the next page is loaded a progress is shown. However to see this progress the user had the scroll down once again. Change-Id: I9b92071d72270177c72a80bb11e89e28fb6ce120 Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/app/src/main/java/com/google/reviewit/ReviewChangesFragment.java b/app/src/main/java/com/google/reviewit/ReviewChangesFragment.java index 7b6240a..b32ed4f 100644 --- a/app/src/main/java/com/google/reviewit/ReviewChangesFragment.java +++ b/app/src/main/java/com/google/reviewit/ReviewChangesFragment.java
@@ -110,7 +110,13 @@ if ((lastChild.getBottom() - (scrollView.getHeight() + scrollView.getScrollY())) == 0) { setVisible(nextPageProgress); - loadAndDisplay(); + scrollView.post(new Runnable() { + @Override + public void run() { + scrollView.fullScroll(View.FOCUS_DOWN); + loadAndDisplay(); + } + }); } } }