From: Michael Gernoth Date: Tue, 5 Jul 2011 21:41:28 +0000 (+0200) Subject: change default settle time, fix landscape view X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/commitdiff_plain/882feaf4ee0f0bb6bc15a551021c37e215e943de?hp=722ab95d7648521aeccbc13f9853c304ac2c112e change default settle time, fix landscape view --- diff --git a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java index 6a46fbb..f790c58 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java @@ -178,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) { diff --git a/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java b/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java index 87b5369..08ce61d 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java @@ -109,7 +109,7 @@ public class MS2Debounce extends Activity poll_time = module.getPoll(); TextView text = (TextView)findViewById(R.id.text); - text.setText("Current status:\n\nModule loaded: " + loaded + "\n" + + text.setText("Module loaded: " + loaded + "\n" + "debounce_delay: " + debounce_delay + "ms\n" + "settle_time: " + settle_time + "us\n" + "poll_time: " + poll_time + "ms\n" +