mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Fix possible page overflow
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user