Project

General

Profile

« Previous | Next » 

Revision d5fb0e7e

Added by Leszek Koltunski over 4 years ago

Improve the 'Scores' dialog: run less on the UI thread which makes this more responsive.

View differences:

src/main/java/org/distorted/dialog/RubikDialogScoresView.java
82 82

  
83 83
///////////////////////////////////////////////////////////////////////////////////////////////////
84 84

  
85
  void addSection(FragmentActivity act, int scramble, final int[] country, final String[] name, final String[] time)
85
  void addSection(LinearLayout section)
86
    {
87
    mLayout.addView(section);
88
    }
89

  
90
///////////////////////////////////////////////////////////////////////////////////////////////////
91

  
92
  LinearLayout createSection(FragmentActivity act, int scramble, final int[] country, final String[] name, final String[] time)
86 93
    {
87 94
    LinearLayout level = (LinearLayout)inflate(act, R.layout.dialog_scores_scramble_title, null);
88 95
    TextView text = level.findViewById(R.id.scoresScrambleTitle);
......
106 113
        }
107 114
      }
108 115

  
109
    mLayout.addView(level);
116
    return level;
110 117
    }
111 118
  }

Also available in: Unified diff