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

Commit 1e2a91ba authored by Benedict Wong's avatar Benedict Wong
Browse files

Address cleanup comments from aosp/1234607

This change addresses minor cleanup comments from aosp/1234607, renaming
a method.

Bug: 148991741
Test: Compiles
Change-Id: I2f31f8045040e6065a89e842b034aea605a99bd4
parent 7ef5614e
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);