Make Settings Slider Slices one row
To unify all Settings slices into one row, we change Settings Slider from user a header and a input range to only using an Input Range. Change-Id: I61715a45b29b6a52a47711811e5c6b2c83d50901 Fixes: 80430118 Test: robotests
This commit is contained in:
@@ -43,6 +43,7 @@ import androidx.slice.SliceMetadata;
|
||||
import androidx.slice.builders.ListBuilder;
|
||||
import androidx.slice.core.SliceAction;
|
||||
import androidx.slice.core.SliceQuery;
|
||||
import androidx.slice.widget.EventInfo;
|
||||
|
||||
import android.support.v4.graphics.drawable.IconCompat;
|
||||
|
||||
@@ -159,6 +160,9 @@ public class SliceTester {
|
||||
final long sliceTTL = metadata.getExpiry();
|
||||
assertThat(sliceTTL).isEqualTo(ListBuilder.INFINITY);
|
||||
|
||||
final int headerType = metadata.getHeaderType();
|
||||
assertThat(headerType).isEqualTo(EventInfo.ROW_TYPE_SLIDER);
|
||||
|
||||
// Check primary intent
|
||||
final PendingIntent primaryPendingIntent = primaryAction.getAction();
|
||||
assertThat(primaryPendingIntent).isEqualTo(
|
||||
|
Reference in New Issue
Block a user