summaryrefslogtreecommitdiffstats
path: root/GNexusParts/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'GNexusParts/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java')
-rw-r--r--GNexusParts/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java22
1 files changed, 0 insertions, 22 deletions
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)));
- }
}
}