Remove unused variable
-remove VIEW_TYPE_SLIDER_LARGE_ICON -remove MEDIA_OUTPUT_GROUP_SLICE_URI -remove MEDIA_OUTPUT_SLICE_URI Bug: 175850711 Test: build pass Change-Id: Iecf987cc91934a7598762523814f5f575302dde2
This commit is contained in:
@@ -16,9 +16,7 @@
|
||||
|
||||
package com.android.settings.panel;
|
||||
|
||||
import static com.android.settings.slices.CustomSliceRegistry.MEDIA_OUTPUT_GROUP_SLICE_URI;
|
||||
import static com.android.settings.slices.CustomSliceRegistry.MEDIA_OUTPUT_INDICATOR_SLICE_URI;
|
||||
import static com.android.settings.slices.CustomSliceRegistry.MEDIA_OUTPUT_SLICE_URI;
|
||||
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.Context;
|
||||
@@ -75,8 +73,6 @@ public class PanelSlicesAdapter
|
||||
View view;
|
||||
if (viewType == PanelContent.VIEW_TYPE_SLIDER) {
|
||||
view = inflater.inflate(R.layout.panel_slice_slider_row, viewGroup, false);
|
||||
} else if (viewType == PanelContent.VIEW_TYPE_SLIDER_LARGE_ICON) {
|
||||
view = inflater.inflate(R.layout.panel_slice_slider_row_large_icon, viewGroup, false);
|
||||
} else {
|
||||
view = inflater.inflate(R.layout.panel_slice_row, viewGroup, false);
|
||||
}
|
||||
@@ -142,15 +138,6 @@ public class PanelSlicesAdapter
|
||||
final Slice slice = sliceLiveData.getValue();
|
||||
if (slice == null || slice.getUri().equals(MEDIA_OUTPUT_INDICATOR_SLICE_URI)) {
|
||||
mDividerAllowedAbove = false;
|
||||
} else if (position == 0 && (slice.getUri().equals(MEDIA_OUTPUT_SLICE_URI)
|
||||
|| slice.getUri().equals(MEDIA_OUTPUT_GROUP_SLICE_URI))) {
|
||||
sliceView.setClickable(false);
|
||||
// Customize output switcher slice padding
|
||||
final int padding = mPanelFragment.getResources().getDimensionPixelSize(
|
||||
R.dimen.output_switcher_slice_padding_top);
|
||||
mSliceSliderLayout.setPadding(mSliceSliderLayout.getPaddingLeft(), padding,
|
||||
mSliceSliderLayout.getPaddingRight(),
|
||||
padding);
|
||||
}
|
||||
|
||||
// Log Panel interaction
|
||||
@@ -175,7 +162,7 @@ public class PanelSlicesAdapter
|
||||
|
||||
@Override
|
||||
public boolean isDividerAllowedBelow() {
|
||||
return mPanelFragment.getPanelViewType() != PanelContent.VIEW_TYPE_SLIDER_LARGE_ICON;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user