Project

General

Profile

« Previous | Next » 

Revision 8e3898c8

Added by Leszek Koltunski about 4 years ago

Each object size now has its own number of levels (not always 18!)

View differences:

src/main/java/org/distorted/dialogs/RubikDialogScoresView.java
78 78
    Resources res = act.getResources();
79 79
    String packageName = act.getPackageName();
80 80

  
81
    int object = RubikObjectList.unpackObject(tab);
82
    int size   = RubikObjectList.unpackSize(tab);
81
    int object   = RubikObjectList.unpackObject(tab);
82
    int sizeIndex= RubikObjectList.unpackSizeIndex(tab);
83 83
    RubikScores scores = RubikScores.getInstance();
84 84

  
85 85
    boolean inserted = false;
86
    long myRecordInMillis = scores.getRecord(object, size, level);
86
    long myRecordInMillis = scores.getRecord(object, sizeIndex, level);
87 87
    float myRecordInSeconds = (myRecordInMillis/100)/10.0f;
88
    boolean mySubmitted = scores.isSubmitted(object, size, level);
88
    boolean mySubmitted = scores.isSubmitted(object, sizeIndex, level);
89 89
    String myName = scores.getName();
90 90
    if( myName.length()==0 ) myName = act.getString(R.string.you);
91 91
    int myCountryID = res.getIdentifier( scores.getCountry(), "drawable", packageName);

Also available in: Unified diff