diff --git a/app/src/main/java/org/hydev/wearsync/ActivitySettings.kt b/app/src/main/java/org/hydev/wearsync/ActivitySettings.kt index e7b1e46..e9583f4 100644 --- a/app/src/main/java/org/hydev/wearsync/ActivitySettings.kt +++ b/app/src/main/java/org/hydev/wearsync/ActivitySettings.kt @@ -2,7 +2,13 @@ package org.hydev.wearsync import android.os.Bundle import androidx.appcompat.app.AppCompatActivity +import androidx.preference.Preference import androidx.preference.PreferenceFragmentCompat +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.SupervisorJob +import kotlinx.coroutines.launch + class ActivitySettings : AppCompatActivity() { @@ -26,6 +32,11 @@ class ActivitySettings : AppCompatActivity() override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { setPreferencesFromResource(R.xml.root_preferences, rootKey) + + findPreference("infTestButton")!!.setOnPreferenceClickListener { + println("Clicked") + true + } } } } \ No newline at end of file diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml deleted file mode 100644 index 6cf9ed4..0000000 --- a/app/src/main/res/values/arrays.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - Reply - Reply to all - - - - reply - reply_all - - \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d92a4fe..c12b414 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -4,18 +4,11 @@ Scan for Devices - Messages - Sync - - - Your signature - Default reply action - - - Sync email periodically - Download incoming attachments - Automatically download attachments for incoming emails - - Only download attachments when manually requested - ActivitySettings + InfluxDB Settings + URL + Organization + Bucket + Token + Test connection + Click here to test your connection to the influxdb server. \ No newline at end of file diff --git a/app/src/main/res/xml/root_preferences.xml b/app/src/main/res/xml/root_preferences.xml index 67158db..33bce52 100644 --- a/app/src/main/res/xml/root_preferences.xml +++ b/app/src/main/res/xml/root_preferences.xml @@ -1,34 +1,36 @@ - + - + - + - + - + - - - +