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

Commit 2e9f24c1 authored by tim peng's avatar tim peng Committed by Automerger Merge Worker
Browse files

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

Merge "In Media Switch output panel, Switch access shouldn't select the first device when selecting the device list" into rvc-dev am: 76438777 am: 0eec3522 am: 7c834b43

Change-Id: Ie41ec89197ad37f3f95a54ee78acfbc99dfb0ca3
parents f56d8562 7c834b43
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,