Started working on the "Where is my device?" feature
[pub/Android/ownCloud.git] / res / xml / preferences.xml
index 2fe8d3b..e17e284 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
-
-    <CheckBoxPreference
+       <PreferenceCategory android:title="@string/prefs_category_general">
+           <CheckBoxPreference
         android:key="create_thumbnails"
         android:title="@string/prefs_create_img_thumbnails" 
         />
         android:title="@string/prefs_select_oc_account"
         android:summary="@string/prefs_summary_select_oc_account" 
         />
+       </PreferenceCategory>
+       
+       <PreferenceCategory android:title="@string/prefs_category_trackmydevice">
+           <CheckBoxPreference 
+               android:key="enable_devicetracking"
+               android:title="@string/prefs_trackmydevice"
+               android:summaryOff="@string/prefs_trackmydevice_summary_off"
+               android:summaryOn="@string/prefs_trackmydevice_summary_on"
+               android:defaultValue="true"/>
+           
+           <ListPreference 
+               android:key="devicetracking_update_intervall"
+               android:title="@string/prefs_trackmydevice_interval"
+               android:summary="@string/prefs_trackmydevice_interval_summary"
+               android:entries="@array/prefs_trackmydevice_intervall_keys"
+               android:entryValues="@array/prefs_trackmydevice_intervall_values"
+               android:defaultValue="30"
+               android:dependency="enable_devicetracking"/>
+       </PreferenceCategory>
+    
 
 </PreferenceScreen>
\ No newline at end of file