Loading apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/AppSearchImpl.java +4 −5 Original line number Diff line number Diff line Loading @@ -412,11 +412,6 @@ public final class AppSearchImpl implements Closeable { String prefix = createPrefix(packageName, databaseName); GetSchemaResponse.Builder responseBuilder = new GetSchemaResponse.Builder(); if (!fullSchema.getTypesList().isEmpty()) { // TODO(b/183050495) find a place to store the version for the database, rather // than read from a schema. responseBuilder.setVersion(fullSchema.getTypes(0).getVersion()); } for (int i = 0; i < fullSchema.getTypesCount(); i++) { String typePrefix = getPrefix(fullSchema.getTypes(i).getSchemaType()); if (!prefix.equals(typePrefix)) { Loading Loading @@ -444,6 +439,10 @@ public final class AppSearchImpl implements Closeable { AppSearchSchema schema = SchemaToProtoConverter.toAppSearchSchema(typeConfigBuilder); // TODO(b/183050495) find a place to store the version for the database, rather // than read from a schema. responseBuilder.setVersion(fullSchema.getTypes(i).getVersion()); responseBuilder.addSchema(schema); } return responseBuilder.build(); Loading apex/appsearch/synced_jetpack_changeid.txt +1 −1 Original line number Diff line number Diff line Ie11a0555775a0ab2a39f6ce6d0d8a7b735c416ce Ibbd3a92ad091f6911de652e2ba7e44f555a70a72 Loading
apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/AppSearchImpl.java +4 −5 Original line number Diff line number Diff line Loading @@ -412,11 +412,6 @@ public final class AppSearchImpl implements Closeable { String prefix = createPrefix(packageName, databaseName); GetSchemaResponse.Builder responseBuilder = new GetSchemaResponse.Builder(); if (!fullSchema.getTypesList().isEmpty()) { // TODO(b/183050495) find a place to store the version for the database, rather // than read from a schema. responseBuilder.setVersion(fullSchema.getTypes(0).getVersion()); } for (int i = 0; i < fullSchema.getTypesCount(); i++) { String typePrefix = getPrefix(fullSchema.getTypes(i).getSchemaType()); if (!prefix.equals(typePrefix)) { Loading Loading @@ -444,6 +439,10 @@ public final class AppSearchImpl implements Closeable { AppSearchSchema schema = SchemaToProtoConverter.toAppSearchSchema(typeConfigBuilder); // TODO(b/183050495) find a place to store the version for the database, rather // than read from a schema. responseBuilder.setVersion(fullSchema.getTypes(i).getVersion()); responseBuilder.addSchema(schema); } return responseBuilder.build(); Loading
apex/appsearch/synced_jetpack_changeid.txt +1 −1 Original line number Diff line number Diff line Ie11a0555775a0ab2a39f6ce6d0d8a7b735c416ce Ibbd3a92ad091f6911de652e2ba7e44f555a70a72