Fix possible page overflow
This commit is contained in:
parent
0d1d899d7c
commit
811de8d4e7
1 changed files with 3 additions and 1 deletions
|
@ -104,8 +104,10 @@ public class XashTutorialActivity extends Activity implements View.OnClickListen
|
|||
|
||||
private void controlPosition()
|
||||
{
|
||||
notifyIndicator();
|
||||
if( currentItem > numPages - 1 )
|
||||
currentItem = numPages - 1;
|
||||
|
||||
notifyIndicator();
|
||||
if (currentItem == numPages - 1) {
|
||||
next.setText(finishText);
|
||||
prev.setText(prevText);
|
||||
|
|
Loading…
Add table
Reference in a new issue