Fix crash when looking for details on an iconless asset
This commit is contained in:
parent
6a1c2f032b
commit
caa64fda6f
BIN
.idea/caches/build_file_checksums.ser
generated
BIN
.idea/caches/build_file_checksums.ser
generated
Binary file not shown.
@ -135,6 +135,8 @@ public class CurrencyDetailsActivity extends AppCompatActivity {
|
|||||||
Objects.requireNonNull(getSupportActionBar()).setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME |
|
Objects.requireNonNull(getSupportActionBar()).setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME |
|
||||||
ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_USE_LOGO);
|
ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_USE_LOGO);
|
||||||
|
|
||||||
|
if(currency.getIcon() != null)
|
||||||
|
{
|
||||||
Bitmap result = Bitmap.createBitmap(150, 150, currency.getIcon().getConfig());
|
Bitmap result = Bitmap.createBitmap(150, 150, currency.getIcon().getConfig());
|
||||||
|
|
||||||
Paint paint = new Paint();
|
Paint paint = new Paint();
|
||||||
@ -152,6 +154,7 @@ public class CurrencyDetailsActivity extends AppCompatActivity {
|
|||||||
, (int) MoodlBox.convertDpToPx(25, getResources())
|
, (int) MoodlBox.convertDpToPx(25, getResources())
|
||||||
, false)));
|
, false)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*for(int i = 0; i < dataChartList.size(); i++)
|
/*for(int i = 0; i < dataChartList.size(); i++)
|
||||||
{*/
|
{*/
|
||||||
|
Loading…
Reference in New Issue
Block a user