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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user