Merge "Focus handling null pointer exception during monkey tests." into ub-launcher3-burnaby

This commit is contained in:
Hyunyoung Song authored and Android (Google) Code Review committed 2015-04-16 21:52:13 +00:00
commit df41097194
2 files changed
+12 -3

No files matched your search

+3 -2
View File
@@ -476,13 +476,14 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
/**
* Returns the index of the currently displayed page.
*
* @return The index of the currently displayed page.
*/
int getCurrentPage() {
return mCurrentPage;
}
/**
* Returns the index of page to be shown immediately afterwards.
*/
int getNextPage() {
return (mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage;
}