Add a new column for slices_index table.
To distinguish public and non-public slices, add public_slice column to the database so we can return corresponding results based on this value. Bug: 141088937 Test: robotests Change-Id: I05d003875a8be27e5cb735b4814eb86d6dc40174
This commit is contained in:
@@ -212,6 +212,7 @@ class SliceDataConverter {
|
||||
final int sliceType = controller.getSliceType();
|
||||
final String unavailableSliceSubtitle = bundle.getString(
|
||||
METADATA_UNAVAILABLE_SLICE_SUBTITLE);
|
||||
final boolean isPublicSlice = controller.isPublicSlice();
|
||||
|
||||
final SliceData xmlSlice = new SliceData.Builder()
|
||||
.setKey(key)
|
||||
@@ -224,6 +225,7 @@ class SliceDataConverter {
|
||||
.setFragmentName(fragmentName)
|
||||
.setSliceType(sliceType)
|
||||
.setUnavailableSliceSubtitle(unavailableSliceSubtitle)
|
||||
.setIsPublicSlice(isPublicSlice)
|
||||
.build();
|
||||
|
||||
xmlSliceData.add(xmlSlice);
|
||||
|
Reference in New Issue
Block a user