Memory Usage by apps no longer shows empty icon

ProcessStatsPreference will now fallback to a
default icon instead of an empty icon. Logging
was added to be able to identify what causes
list to add entries with no text.

Test: Manual, requires installing -> uninstalling an app
Bug: 31812426
Change-Id: Ia1b147ba7a552ec4880776ebf8dba6745154117a
This commit is contained in:
Salvador Martinez
2016-10-11 16:37:50 -07:00
parent ccbdd0a707
commit 47d00cf158
2 changed files with 10 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ import android.content.pm.PackageManager;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;
import com.android.settings.R;
import com.android.settings.Utils;
@@ -127,6 +128,7 @@ public class ProcStatsPackageEntry implements Parcelable {
mUiLabel = mUiTargetApp.loadLabel(pm).toString();
}
} catch (PackageManager.NameNotFoundException e) {
Log.d(TAG, "could not find package: " + mPackage);
}
}