Project

General

Profile

« Previous | Next » 

Revision 83e021c5

Added by Leszek Koltunski about 2 years ago

Bandaged 3x3 UI: progress

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorScreen.java
148 148
  void iconCreationDone(Activity act, Bitmap bmp)
149 149
    {
150 150
    int numChildren = mObjectView.getChildCount();
151
    LinearLayout pane = (LinearLayout)mObjectView.getChildAt(numChildren-1);
152
    ImageView view = pane.findViewById(R.id.bandagedCreatorObjectIcon);
153 151

  
154
    if( view!=null )
152
    if( numChildren>0 )
155 153
      {
156
      act.runOnUiThread(new Runnable()
154
      LinearLayout pane = (LinearLayout)mObjectView.getChildAt(numChildren-1);
155
      ImageView view = pane.findViewById(R.id.bandagedCreatorObjectIcon);
156

  
157
      if( view!=null )
157 158
        {
158
        @Override
159
        public void run()
159
        act.runOnUiThread(new Runnable()
160
          {
161
          @Override
162
          public void run()
160 163
          {
161 164
          view.setImageBitmap(bmp);
162 165
          }
163
        });
164
      }
165
    else
166
      {
167
      android.util.Log.e("D", "ImageView not found!");
166
          });
167
        }
168
      else
169
        {
170
        android.util.Log.e("D", "ImageView not found!");
171
        }
168 172
      }
169 173
    }
170 174
}

Also available in: Unified diff