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

Commit f0937e77 authored by Mark Renouf's avatar Mark Renouf Committed by Gerrit Code Review
Browse files

Merge "Hide contaminant dialog "Enable USB" button if not supported"

parents f50d6de6 fa8c0178
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -75,7 +75,12 @@ public class UsbContaminantActivity extends Activity implements View.OnClickList
            mLearnMore.setVisibility(View.VISIBLE);
        }

        if (!mUsbPort.supportsEnableContaminantPresenceDetection()) {
            mEnableUsb.setVisibility(View.GONE);
        } else {
            mEnableUsb.setOnClickListener(this);
        }

        mGotIt.setOnClickListener(this);
        mLearnMore.setOnClickListener(this);
    }