Fix more build errors

This commit is contained in:
Suphon Thanakornpakapong
2022-05-08 22:53:06 +07:00
parent 562611b75d
commit 952551cb4c
14 changed files with 104 additions and 35 deletions

View File

@@ -80,6 +80,8 @@ import java.util.Map;
import java.util.Objects;
import java.util.stream.IntStream;
import app.lawnchair.LawnchairApp;
/**
* Model delegate which loads prediction items
*/
@@ -178,7 +180,7 @@ public class QuickstepModelDelegate extends ModelDelegate {
// Only register for launcher snapshot logging if this is the primary ModelDelegate
// instance, as there will be additional instances that may be destroyed at any time.
if (mIsPrimaryInstance) {
if (mIsPrimaryInstance && LawnchairApp.isRecentsEnabled()) {
registerSnapshotLoggingCallback();
}
}