Project

General

Profile

« Previous | Next » 

Revision 417d51b6

Added by Leszek Koltunski 4 months ago

minor

View differences:

src/main/java/org/distorted/main/MainActivity.java
321 321
    private void restorePreferences(SharedPreferences preferences, boolean justStarted)
322 322
      {
323 323
      mOldVersion = preferences.getString("appVersion","");
324
      mSortMode = preferences.getInt("sortMode", MainSettingsPopup.SORT_CATEGORY);
324
      mSortMode = preferences.getInt("sortMode", MainSettingsPopup.SORT_DEFAULT);
325 325

  
326 326
      RubikObjectList.restorePreferences(this,preferences,justStarted);
327 327
      RubikScores scores = RubikScores.getInstance();
src/main/java/org/distorted/main/MainScrollGrid.java
84 84
      @Override
85 85
      public void run()
86 86
        {
87
        if( mSortMode<0 ) mSortMode = MainSettingsPopup.SORT_CATEGORY;
87
        if( mSortMode<0 ) mSortMode = MainSettingsPopup.SORT_DEFAULT;
88 88
        createGrid(act,scrW,mSortMode);
89 89
        }
90 90
      });
src/main/java/org/distorted/main/MainSettingsPopup.java
35 35
  public static final int SORT_AUTHOR     = 3;
36 36
  public static final int SORT_YEAR       = 4;
37 37

  
38
  public static final int SORT_DEFAULT    = SORT_CLASSIC;
39

  
38 40
  private static final String[] mSortNames = { "Classic" , "Category" , "Difficulty", "Author" , "Year" };
39 41
  private static final float MENU_TITLE_SIZE= 0.070f;
40 42
  private static final float MENU_TEXT_SIZE = 0.060f;

Also available in: Unified diff