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

Commit 1c6c8013 authored by junklu's avatar junklu
Browse files

SystemUI: Hide the mobile settings icon in guest mode

Mobile data should not be configed in guest mode.
Hide the secondary mobile settings icon in guest mode.

Bug:385246465
Change-Id: Ia18132cd028ff328daa863d8de067cf467e9a572
parent d068a0c0
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -565,8 +565,10 @@ public class InternetDialogDelegate implements
                }
                mSecondaryMobileNetworkLayout = mDialogView.findViewById(
                        R.id.secondary_mobile_network_layout);
                if (mCanConfigMobileData) {
                    mSecondaryMobileNetworkLayout.setOnClickListener(
                            this::onClickConnectedSecondarySub);
                }
                mSecondaryMobileNetworkLayout.setBackground(mBackgroundOn);

                TextView mSecondaryMobileTitleText = mDialogView.requireViewById(
@@ -599,7 +601,8 @@ public class InternetDialogDelegate implements
                        mDialogView.requireViewById(R.id.secondary_settings_icon);
                mSecondaryMobileSettingsIcon.setColorFilter(
                        dialog.getContext().getColor(R.color.connected_network_primary_color));

                mSecondaryMobileSettingsIcon.setVisibility(mCanConfigMobileData ?
                        View.VISIBLE : View.INVISIBLE);
                // set secondary visual for default data sub
                mMobileNetworkLayout.setBackground(mBackgroundOff);
                mMobileTitleText.setTextAppearance(R.style.TextAppearance_InternetDialog);