Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 493e1a62 authored by Tim Peng's avatar Tim Peng
Browse files

In Media Switch output panel, Switch access shouldn't select the first device...

In Media Switch output panel, Switch access shouldn't select the first device when selecting the device list

-The group view should not be clickable
-Disable view clickable flag

Bug: 151126466
Test: make -j50 RunSettingsRoboTests
Change-Id: Ia617f436a615168d422d208959db5513b38e6564
parent 60920beb
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -140,11 +140,10 @@ public class PanelSlicesAdapter
            final Slice slice = sliceLiveData.getValue();
            if (slice == null || slice.getUri().equals(MEDIA_OUTPUT_INDICATOR_SLICE_URI)) {
                mDividerAllowedAbove = false;
            }

            // Customize output switcher slice top padding
            if (position == 0 && (slice.getUri().equals(MEDIA_OUTPUT_SLICE_URI)
            } 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 top padding
                final int paddingTop = mPanelFragment.getResources().getDimensionPixelSize(
                        R.dimen.output_switcher_slice_padding_top);
                mSliceSliderLayout.setPadding(mSliceSliderLayout.getPaddingLeft(), paddingTop,