diff options
Diffstat (limited to 'GNexusParts/src/com/cyanogenmod')
-rw-r--r-- | GNexusParts/src/com/cyanogenmod/settings/device/DeviceSettings.java | 1 | ||||
-rw-r--r-- | GNexusParts/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java | 22 |
2 files changed, 0 insertions, 23 deletions
diff --git a/GNexusParts/src/com/cyanogenmod/settings/device/DeviceSettings.java b/GNexusParts/src/com/cyanogenmod/settings/device/DeviceSettings.java index d5d7838..e131654 100644 --- a/GNexusParts/src/com/cyanogenmod/settings/device/DeviceSettings.java +++ b/GNexusParts/src/com/cyanogenmod/settings/device/DeviceSettings.java @@ -45,7 +45,6 @@ public class DeviceSettings extends Activity { public static final String KEY_GAMMA_TUNING = "gamma_tuning"; public static final String KEY_CATEGORY_RADIO = "category_radio"; public static final String KEY_HSPA = "hspa"; - public static final String KEY_USB_FAST_CHARGE = "fast_charge_usb"; ViewPager mViewPager; TabsAdapter mTabsAdapter; diff --git a/GNexusParts/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java b/GNexusParts/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java index 17644e6..ca1b155 100644 --- a/GNexusParts/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java +++ b/GNexusParts/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java @@ -27,7 +27,6 @@ import android.preference.PreferenceFragment; import android.preference.PreferenceManager; import android.preference.PreferenceScreen; import android.util.Log; -import android.view.View; import com.cyanogenmod.settings.device.R; @@ -35,9 +34,6 @@ public class GeneralFragmentActivity extends PreferenceFragment { private static final String PREF_ENABLED = "1"; private static final String TAG = "GNexusParts_General"; - private static final String USB_FAST_CHARGE_FILE = "/sys/kernel/fast_charge/force_fast_charge"; - - private CheckBoxPreference mUSBFastCharge; @Override public void onCreate(Bundle savedInstanceState) { @@ -46,13 +42,6 @@ public class GeneralFragmentActivity extends PreferenceFragment { addPreferencesFromResource(R.xml.general_preferences); PreferenceScreen prefSet = getPreferenceScreen(); - mUSBFastCharge = (CheckBoxPreference) findPreference(DeviceSettings.KEY_USB_FAST_CHARGE); - - if (isSupported(USB_FAST_CHARGE_FILE)) { - mUSBFastCharge.setChecked(PREF_ENABLED.equals(Utils.readOneLine(USB_FAST_CHARGE_FILE))); - } else { - mUSBFastCharge.setEnabled(false); - } } @@ -64,12 +53,6 @@ public class GeneralFragmentActivity extends PreferenceFragment { Log.w(TAG, "key: " + key); - if (key.equals(DeviceSettings.KEY_USB_FAST_CHARGE)) { - final CheckBoxPreference chkPref = (CheckBoxPreference) preference; - boxValue = chkPref.isChecked() ? "1" : "0"; - Utils.writeValue(USB_FAST_CHARGE_FILE, boxValue); - } - return true; } @@ -79,10 +62,5 @@ public class GeneralFragmentActivity extends PreferenceFragment { public static void restore(Context context) { SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); - if (isSupported(USB_FAST_CHARGE_FILE)) { - String sDefaultValue = Utils.readOneLine(USB_FAST_CHARGE_FILE); - Utils.writeValue(USB_FAST_CHARGE_FILE, sharedPrefs.getBoolean(DeviceSettings.KEY_USB_FAST_CHARGE, - PREF_ENABLED.equals(sDefaultValue))); - } } } |