Merge "IndexOutOfBoundsException observed in ProcessStats"

This commit is contained in:
Christopher Wiley
2016-10-10 22:31:33 +00:00
committed by Gerrit Code Review

View File

@@ -379,7 +379,7 @@ public final class ProcessState {
public void setState(int state, long now) {
ensureNotDead();
if (mCurState != state) {
if (!mDead && (mCurState != state)) {
//Slog.i(TAG, "Setting state in " + mName + "/" + mPackage + ": " + state);
commitStateTime(now);
mCurState = state;