Project

General

Profile

« Previous | Next » 

Revision b61c66ad

Added by Leszek Koltunski almost 2 years ago

Correct the leaderboard. Still, the 'MAX' level does noot work!

View differences:

src/main/java/org/distorted/dialogs/RubikDialogScoresPagerAdapter.java
43 43
  private void addSection(int tab, int level, int lastLevel, final RubikDialogScoresView view, final String[] country, final String[] name, final float[] time)
44 44
    {
45 45
    String title = level==lastLevel-1 ?
46
                   mAct.getString(R.string.level_full) :
46
                   mAct.getString(R.string.levelM) :
47 47
                   mAct.getString(R.string.lv_placeholder,level+1);
48 48

  
49 49
    final LinearLayout section = view.createSection(mAct, tab, title, level, country, name, time);
......
98 98
    {
99 99
    prepareView();
100 100

  
101
    int MAX = RubikScreenPlay.LEVELS_SHOWN;
101
    int MAX = RubikScreenPlay.LEVELS_SHOWN+1;
102 102
    int toDo=0;
103 103
    int[] toDoTab = new int[mNumTabs];
104 104
    int[] maxTab  = new int[mNumTabs];

Also available in: Unified diff