Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

put disk access into background thread? #649

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
add null check for attach
yulin2 committed Oct 20, 2014
commit 5ef6eb98850eb248855aed67bfb6c5416c36ef1d
4 changes: 3 additions & 1 deletion src/com/github/andlyticsproject/AppInfoActivity.java
Original file line number Diff line number Diff line change
@@ -82,7 +82,9 @@ public void onCreate(Bundle savedInstanceState) {
if (getLastCustomNonConfigurationInstance() != null) {
loadBitmap = (LoadBitmap) getLastCustomNonConfigurationInstance();
loadBitmap.attach(this);
setSupportActionBarIcon(loadBitmap.bitmap);
if (loadBitmap.bitmap != null) {
setSupportActionBarIcon(loadBitmap.bitmap);
}
} else {
loadBitmap = new LoadBitmap(this);
Utils.execute(loadBitmap, iconFilePath);