Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45bff377 authored by yuanhuihui's avatar yuanhuihui Committed by Joey Rizzoli
Browse files

remove duplicated incorrectly code in ProcessRecord



condition origBase != null have repeated twice in line 488 and 489.
that makes pkgList can't make inactive when origBase == null.
so need delete code in line 488.

Change-Id: I8ed87667672e2885d003504639b87aa4d125c8ad
Signed-off-by: default avataryuanhuihui <yuanhuihui@xiaomi.com>
parent bdb91832
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -518,7 +518,6 @@ final class ProcessRecord {
        android.util.SeempLog.record_str(387, seempStr);
        thread = null;
        final ProcessState origBase = baseProcessTracker;
        if (origBase != null) {
        if (origBase != null) {
            origBase.setState(ProcessStats.STATE_NOTHING,
                    tracker.getMemFactorLocked(), SystemClock.uptimeMillis(), pkgList);
@@ -533,7 +532,6 @@ final class ProcessRecord {
            holder.state = null;
        }
    }
    }

    /**
     * This method returns true if any of the activities within the process record are interesting