Index SliceType and Official Platform flag
Extend slices_index.db to include SliceType and platform flag. This will be used when we generate a list of all available slices for different authorities & separated intent/action paths. Bug: 62807132 Test: robotests Change-Id: I1cce49d077c02ab79153db9bfdfc894dbab5e16a
This commit is contained in:
@@ -78,6 +78,16 @@ public class SlicesDatabaseHelper extends SQLiteOpenHelper {
|
||||
* {@link com.android.settings.core.BasePreferenceController}.
|
||||
*/
|
||||
String CONTROLLER = "controller";
|
||||
|
||||
/**
|
||||
* Boolean flag, {@code true} when the Slice is officially platform-supported.
|
||||
*/
|
||||
String PLATFORM_SLICE = "platform_slice";
|
||||
|
||||
/**
|
||||
* {@link SliceData.SliceType} representing the inline type of the result.
|
||||
*/
|
||||
String SLICE_TYPE = "slice_type";
|
||||
}
|
||||
|
||||
private static final String CREATE_SLICES_TABLE =
|
||||
@@ -96,6 +106,10 @@ public class SlicesDatabaseHelper extends SQLiteOpenHelper {
|
||||
IndexColumns.FRAGMENT +
|
||||
", " +
|
||||
IndexColumns.CONTROLLER +
|
||||
", " +
|
||||
IndexColumns.PLATFORM_SLICE +
|
||||
", " +
|
||||
IndexColumns.SLICE_TYPE+
|
||||
");";
|
||||
|
||||
private final Context mContext;
|
||||
|
Reference in New Issue
Block a user