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

Commit 8758ec14 authored by Zoey Chen's avatar Zoey Chen Committed by Android (Google) Code Review
Browse files

Merge "[ProviderModel] Should no set the subtitle as gone when airplane mode is ON" into sc-v2-dev

parents 8cb200a2 c350b049
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -303,15 +303,11 @@ public class InternetDialog extends SystemUIDialog implements
        if (DEBUG) {
            Log.d(TAG, "updateDialog");
        }
        if (mInternetDialogController.isAirplaneModeEnabled()) {
            mInternetDialogSubTitle.setVisibility(View.GONE);
            mAirplaneModeLayout.setVisibility(View.VISIBLE);
        } else {
        mInternetDialogTitle.setText(getDialogTitleText());
            mInternetDialogSubTitle.setVisibility(View.VISIBLE);
        mInternetDialogSubTitle.setText(getSubtitleText());
            mAirplaneModeLayout.setVisibility(View.GONE);
        }
        mAirplaneModeLayout.setVisibility(
                mInternetDialogController.isAirplaneModeEnabled() ? View.VISIBLE : View.GONE);

        updateEthernet();
        if (shouldUpdateMobileNetwork) {
            setMobileDataLayout(mInternetDialogController.activeNetworkIsCellular(),
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ public class InternetDialogTest extends SysuiTestCase {

        mInternetDialog.updateDialog(true);

        assertThat(mSubTitle.getVisibility()).isEqualTo(View.GONE);
        assertThat(mSubTitle.getVisibility()).isEqualTo(View.VISIBLE);
    }

    @Test