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

Commit 6e797a5d authored by Tim Barron's avatar Tim Barron Committed by Android (Google) Code Review
Browse files

Merge "Call persistToDisk after indexing VisibilityDoc" into sc-dev

parents 14449b87 b10fd7d0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@ import android.util.Log;

import com.android.server.appsearch.external.localstorage.util.PrefixUtil;

import com.google.android.icing.proto.PersistType;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -373,6 +375,8 @@ public class VisibilityStore {

        mAppSearchImpl.putDocument(
                PACKAGE_NAME, DATABASE_NAME, visibilityDocument.build(), /*logger=*/ null);
        // Now that the visibility document has been written. Persist the newly written data.
        mAppSearchImpl.persistToDisk(PersistType.Code.LITE);

        // Update derived data structures.
        mNotPlatformSurfaceableMap.put(prefix, schemasNotPlatformSurfaceable);