Loading src/com/android/settings/deviceinfo/UsbModeChooserActivity.java 100644 → 100755 +4 −1 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); } Loading Loading
src/com/android/settings/deviceinfo/UsbModeChooserActivity.java 100644 → 100755 +4 −1 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); } Loading