From 882feaf4ee0f0bb6bc15a551021c37e215e943de Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Tue, 5 Jul 2011 23:41:28 +0200 Subject: [PATCH] change default settle time, fix landscape view --- MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java | 2 +- MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" + -- 2.39.5