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

Commit e8cb0a93 authored by Huang Li's avatar Huang Li Committed by Gerrit - the friendly Code Review server
Browse files

Settings: don't check UsbSecurity since the feature is disable in CMCC

Change-Id: I371512a55d48f3d8d040b9a41ddf1caedf68b532
CRs-Fixed: 1098207
parent a621a64c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -138,10 +138,12 @@ public class UsbModeChooserActivity extends Activity {

    private void inflateOption(final int mode, boolean selected, LinearLayout container,
            final boolean disallowedByAdmin) {
        /** UsbSecurity is disable
        boolean isSimCardInserted = SystemProperties.getBoolean(
            "persist.sys.sim.activate", false);
        boolean isUsbSecurityEnable = SystemProperties.getBoolean(
            "persist.sys.usb.security", false);
        **/

        View v = mLayoutInflater.inflate(R.layout.restricted_radio_with_summary, container, false);

@@ -174,10 +176,11 @@ public class UsbModeChooserActivity extends Activity {
            }
        });
        ((Checkable) v).setChecked(selected);
        /** UsbSecurity is disable
        if( !isSimCardInserted && isUsbSecurityEnable )
        {
            v.setEnabled(selected);
        }
        }**/
        container.addView(v);
    }