am efa5ffc8: am 90ce58ec: Use ApplicationInfo only when not in edit mode [DO NOT MERGE]

* commit 'efa5ffc883bb4078494110b17f8dee4b940720c4':
  Use ApplicationInfo only when not in edit mode [DO NOT MERGE]
This commit is contained in:
Deepanshu Gupta
2014-05-13 01:55:09 +00:00
committed by Android Git Automerger

View File

@@ -207,7 +207,7 @@ public class ActionBarView extends AbsActionBarView {
Log.e(TAG, "Activity component name not found!", e); Log.e(TAG, "Activity component name not found!", e);
} }
} }
if (mIcon == null) { if (mIcon == null && !isInEditMode()) {
mIcon = appInfo.loadIcon(pm); mIcon = appInfo.loadIcon(pm);
} }
} }