Project

General

Profile

« Previous | Next » 

Revision 176308f8

Added by Leszek Koltunski about 4 years ago

Progress with Pretty Patterns.

View differences:

src/main/java/org/distorted/dialog/RubikDialogPatternPagerAdapter.java
70 70
  @NonNull
71 71
  public Object instantiateItem(@NonNull ViewGroup collection, final int position)
72 72
    {
73
    mViews[position] = new RubikDialogPatternView(mAct);
74
    collection.addView(mViews[position]);
75

  
76 73
    String[] categories = createCategories(position);
77
    final LinearLayout section = mViews[position].createSection(mAct, categories);
78

  
79
    mAct.runOnUiThread(new Runnable()
80
        {
81
        @Override
82
        public void run()
83
          {
84
          mViews[position].addSection(section);
85
          }
86
        });
74
    mViews[position] = new RubikDialogPatternView(mAct, categories);
75
    collection.addView(mViews[position]);
87 76

  
88 77
    return mViews[position];
89 78
    }

Also available in: Unified diff