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

Commit e3b26e6c authored by Matthew Ng's avatar Matthew Ng
Browse files

Low ram devices now use 60% reduction for task snap shots

On low ram devices, it will now use a reduce scale of 0.6f.

Test: manual - launch apps, launch recents see the bitmap on task
Change-Id: I016b896e9e43d4d0a549a47aa69e7b5541aa5dbc
Fixes: 65163822
parent f3f7a101
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class TaskSnapshotPersister {
    private static final String TAG = TAG_WITH_CLASS_NAME ? "TaskSnapshotPersister" : TAG_WM;
    private static final String SNAPSHOTS_DIRNAME = "snapshots";
    private static final String REDUCED_POSTFIX = "_reduced";
    static final float REDUCED_SCALE = 0.5f;
    static final float REDUCED_SCALE = ActivityManager.isLowRamDeviceStatic() ? 0.6f : 0.5f;
    static final boolean DISABLE_FULL_SIZED_BITMAPS = ActivityManager.isLowRamDeviceStatic();
    private static final long DELAY_MS = 100;
    private static final int QUALITY = 95;