Code example for ApplicationInfo

Methods: loadIcon

0
        } 
 
        public Drawable getIcon() {
            if (mIcon == null) {
                if (mApkFile.exists()) {
                    mIcon = mInfo.loadIcon(mLoader.mPm);
                    return mIcon;
                } else { 
                    mMounted = false;
                } 
            } else if (!mMounted) {
                // If the app wasn't mounted but is now mounted, reload 
                // its icon. 
                if (mApkFile.exists()) {
                    mMounted = true;
                    mIcon = mInfo.loadIcon(mLoader.mPm);
                    return mIcon;
                } 
            } else { 
                return mIcon;
            }