Merge "Fix disable flag in QSBH" into sc-v2-dev

This commit is contained in:
Fabian Kozynski
2022-01-14 15:18:01 +00:00
committed by Android (Google) Code Review

View File

@@ -241,10 +241,9 @@ public class QuickStatusBarHeader extends FrameLayout {
boolean shouldUseSplitShade = boolean shouldUseSplitShade =
resources.getBoolean(R.bool.config_use_split_notification_shade); resources.getBoolean(R.bool.config_use_split_notification_shade);
mStatusIconsView.setVisibility( boolean gone = shouldUseSplitShade || mUseCombinedQSHeader || mQsDisabled;
shouldUseSplitShade || mUseCombinedQSHeader ? View.GONE : View.VISIBLE); mStatusIconsView.setVisibility(gone ? View.GONE : View.VISIBLE);
mDatePrivacyView.setVisibility( mDatePrivacyView.setVisibility(gone ? View.GONE : View.VISIBLE);
shouldUseSplitShade || mUseCombinedQSHeader ? View.GONE : View.VISIBLE);
mConfigShowBatteryEstimate = resources.getBoolean(R.bool.config_showBatteryEstimateQSBH); mConfigShowBatteryEstimate = resources.getBoolean(R.bool.config_showBatteryEstimateQSBH);