Set use low res snapshots for low ram devices missing in theme snapshot

Creating new tasksnapshot from app theme was missing to set the reduced
flag to true.

Test: settings to smart lock and pass pattern/password
Bug: 65534047
Change-Id: I78e9fed223ffc4c7a9cb8d31836b18f1fc4e7d34
This commit is contained in:
Matthew Ng
2017-09-18 16:29:46 -07:00
parent 5b4b6bda2d
commit 30a7f7c28e

View File

@@ -299,7 +299,7 @@ class TaskSnapshotController {
return new TaskSnapshot(hwBitmap.createGraphicBufferHandle(),
topChild.getConfiguration().orientation, mainWindow.mStableInsets,
false /* reduced */, 1.0f /* scale */);
ActivityManager.isLowRamDeviceStatic() /* reduced */, 1.0f /* scale */);
}
/**