]> git.zerfleddert.de Git - ms2-fixes/blobdiff - MS2Debounce/src/de/rmdir/ms2debounce/MS2Debounce.java
Check if it is safe to load the module on boot
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / MS2Debounce.java
index 3f7814edd339c3ccd264cc80c01d2e71db4f31d9..4f8e703cd6620b309af1e86607f410a10a4e726c 100644 (file)
@@ -3,6 +3,7 @@ package de.rmdir.ms2debounce;
 import android.app.Activity;
 import android.os.Bundle;
 import android.content.Intent;
+import android.widget.TextView;
 
 public class MS2Debounce extends Activity
 {
@@ -11,12 +12,15 @@ public class MS2Debounce extends Activity
        {
                super.onCreate(savedInstanceState);
 
-               DebounceModuleHelper module = new DebounceModuleHelper(getFilesDir());
+               DebounceModuleHelper module = new DebounceModuleHelper(this);
 
                if (!module.isLoaded()) {
                        module.loadModule();
                }
 
                setContentView(R.layout.main);
+
+               TextView text = (TextView)findViewById(R.id.text);
+               text.setText("You will soon be able to set the debounce_delay here.\nModule loaded: " + module.isLoaded() + "\ndebounce_delay: " + module.getDelay() + "ms\nsafe_to_load: " + module.is_safe_to_load());
        }
 }
Impressum, Datenschutz