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

Commit 008480e0 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Address cleanup comments from aosp/1234607" am: 9dec7506

Change-Id: I3aaa084901d593f3330469a499f548b6e40b42db
parents 0c0a52cc 9dec7506
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -342,14 +342,14 @@ class ConfigDialog extends AlertDialog implements TextWatcher,
        mView.findViewById(R.id.vpn_proxy_fields).setVisibility(visible);
    }

    private boolean hasAdvancedOptionsEnabled() {
    private boolean isAdvancedOptionsEnabled() {
        return mSearchDomains.getText().length() > 0 || mDnsServers.getText().length() > 0 ||
                    mRoutes.getText().length() > 0 || mProxyHost.getText().length() > 0
                    || mProxyPort.getText().length() > 0;
    }

    private void configureAdvancedOptionsVisibility() {
        if (mShowOptions.isChecked() || hasAdvancedOptionsEnabled()) {
        if (mShowOptions.isChecked() || isAdvancedOptionsEnabled()) {
            mView.findViewById(R.id.options).setVisibility(View.VISIBLE);
            mShowOptions.setVisibility(View.GONE);