Revision 37b1e723
Added by Leszek Koltunski almost 4 years ago
| src/main/java/org/distorted/external/RubikUpdates.java | ||
|---|---|---|
| 284 | 284 |
|
| 285 | 285 |
public void setCompletedIcon(int ordinal, Bitmap icon) |
| 286 | 286 |
{
|
| 287 |
UpdateInfo info = mCompleted.get(ordinal); |
|
| 288 |
info.mIcon = icon; |
|
| 287 |
try |
|
| 288 |
{
|
|
| 289 |
UpdateInfo info = mCompleted.get(ordinal); |
|
| 290 |
info.mIcon = icon; |
|
| 291 |
} |
|
| 292 |
catch(IndexOutOfBoundsException ie) |
|
| 293 |
{
|
|
| 294 |
// ignore; the mCompleted must have been removed already |
|
| 295 |
// past a successful update; see updateDone() |
|
| 296 |
} |
|
| 289 | 297 |
} |
| 290 | 298 |
|
| 291 | 299 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Fix a crasher.