feat(NotificationsFragment): switch tab when triple clicking
This commit is contained in:
parent
62d5c7a492
commit
ea823ef0cf
|
@ -202,6 +202,11 @@ public class NotificationsFragment extends MastodonToolbarFragment implements Sc
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void scrollToTop(){
|
public void scrollToTop(){
|
||||||
|
if (getFragmentForPage(pager.getCurrentItem()).isScrolledToTop()) {
|
||||||
|
int nextPage = (pager.getCurrentItem() + 1) % tabViews.length;
|
||||||
|
pager.setCurrentItem(nextPage, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
getFragmentForPage(pager.getCurrentItem()).scrollToTop();
|
getFragmentForPage(pager.getCurrentItem()).scrollToTop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue