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

Commit 712d4f2b authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Revert "am: Allow more hidden apps on devices with lots of RAM"

 * No longer required.

This reverts commit e943b719.

Change-Id: I5e20b08277d1695a8a3c57c72f1b5ca6aec70f8c
parent b072393e
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -119,15 +119,7 @@ final class ProcessList {
    // we have no limit on the number of service, visible, foreground, or other such
    // processes and the number of those processes does not count against the cached
    // process limit.
    static final int MAX_CACHED_APPS;

    static {
        // Allow more hidden apps on huge memory devices (1.5GB or higher)
        // or fetch from the system property
        MemInfoReader mi = new MemInfoReader();
        MAX_CACHED_APPS = SystemProperties.getInt("sys.mem.max_hidden_apps",
                mi.getTotalSize() > 1572864 ? 40 : 24);
    }
    static final int MAX_CACHED_APPS = 24;

    // We allow empty processes to stick around for at most 30 minutes.
    static final long MAX_EMPTY_TIME = 30*60*1000;