X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/75fbc6ef01e26a9a385034769980a75cf5cdd083..882feaf4ee0f0bb6bc15a551021c37e215e943de:/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java diff --git a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java index 174f89b..f790c58 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java @@ -22,13 +22,17 @@ public class DebounceModuleHelper ctx = context; } - public void loadModule() { - _loadModule(); + public void setAllValues() { setDelay(getSavedDelay()); setSettle(getSavedSettle()); setPoll(getSavedPoll()); } + public void loadModule() { + _loadModule(); + setAllValues(); + } + protected void runAsRoot(String command) throws java.io.IOException,java.lang.InterruptedException { Process rootcmd = Runtime.getRuntime().exec(new String[]{"su","-c","sh"}); DataOutputStream sh = new DataOutputStream(rootcmd.getOutputStream()); @@ -174,7 +178,7 @@ public class DebounceModuleHelper public synchronized int getSavedSettle() { SharedPreferences settings = ctx.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); - return settings.getInt("settle_time", 100); + return settings.getInt("settle_time", 150); } public synchronized void setSavedSettle(int settle) {