@@ -128,8 +128,6 @@ public class QSPanel extends LinearLayout implements Tunable, Callback, Brightne
128
128
129
129
@ Nullable
130
130
protected View mFooter ;
131
- @ Nullable
132
- protected View mDivider ;
133
131
134
132
@ Nullable
135
133
private ViewGroup mHeaderContainer ;
@@ -540,7 +538,6 @@ protected void onConfigurationChanged(Configuration newConfig) {
540
538
protected void onFinishInflate () {
541
539
super .onFinishInflate ();
542
540
mFooter = findViewById (R .id .qs_footer );
543
- mDivider = findViewById (R .id .divider );
544
541
switchTileLayout (true /* force */ );
545
542
}
546
543
@@ -551,13 +548,6 @@ boolean switchTileLayout() {
551
548
private boolean switchTileLayout (boolean force ) {
552
549
/** Whether or not the QuickQSPanel currently contains a media player. */
553
550
boolean horizontal = shouldUseHorizontalLayout ();
554
- if (mDivider != null ) {
555
- if (!horizontal && mUsingMediaPlayer && mMediaHost .getVisible ()) {
556
- mDivider .setVisibility (View .VISIBLE );
557
- } else {
558
- mDivider .setVisibility (View .GONE );
559
- }
560
- }
561
551
if (horizontal != mUsingHorizontalLayout || force ) {
562
552
mUsingHorizontalLayout = horizontal ;
563
553
View visibleView = horizontal ? mHorizontalLinearLayout : (View ) mRegularTileLayout ;
@@ -595,7 +585,6 @@ private boolean switchTileLayout(boolean force) {
595
585
}
596
586
updateTileLayoutMargins ();
597
587
updateFooterMargin ();
598
- updateDividerMargin ();
599
588
updateMediaDisappearParameters ();
600
589
updateMediaHostContentMargins ();
601
590
updateHorizontalLinearLayoutMargins ();
@@ -1047,11 +1036,6 @@ public QSSecurityFooter getSecurityFooter() {
1047
1036
return mSecurityFooter ;
1048
1037
}
1049
1038
1050
- @ Nullable
1051
- public View getDivider () {
1052
- return mDivider ;
1053
- }
1054
-
1055
1039
public void showDeviceMonitoringDialog () {
1056
1040
if (mSecurityFooter != null ) {
1057
1041
mSecurityFooter .showDeviceMonitoringDialog ();
@@ -1067,7 +1051,6 @@ public void setContentMargins(int startMargin, int endMargin) {
1067
1051
mContentMarginEnd - mVisualTilePadding );
1068
1052
updateMediaHostContentMargins ();
1069
1053
updateFooterMargin ();
1070
- updateDividerMargin ();
1071
1054
}
1072
1055
1073
1056
private void updateFooterMargin () {
@@ -1109,11 +1092,6 @@ private void updateTileLayoutMargins() {
1109
1092
updateMargins ((View ) mTileLayout , mVisualMarginStart , marginEnd );
1110
1093
}
1111
1094
1112
- private void updateDividerMargin () {
1113
- if (mDivider == null ) return ;
1114
- updateMargins (mDivider , mContentMarginStart , mContentMarginEnd );
1115
- }
1116
-
1117
1095
/**
1118
1096
* Update the margins of the media hosts
1119
1097
*/
0 commit comments