mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2026-08-22 05:43:05 +00:00
Prepare a new sync adapter. This permit to create slow sync and fast sync queries. At this time it's same
* Also added missing XML files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:key="global_settings"
|
||||
android:title="Global Preferences"
|
||||
android:summary="Global preferences">
|
||||
|
||||
<Preference
|
||||
android:key="general_prefs"
|
||||
android:summary="@string/summary_global_pref_to_general_prefs"
|
||||
android:title="@string/title_global_pref_to_general_prefs" >
|
||||
<intent android:targetPackage="fr.unix_experience.owncloud_sms"
|
||||
android:targetClass="fr.unix_experience.owncloud_sms.activities.GeneralSettingsActivity"
|
||||
android:action="ACTION_VIEW" />
|
||||
</Preference>
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -0,0 +1,6 @@
|
||||
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accountType="@string/account_type"
|
||||
android:label="@string/app_name"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:smallIcon="@drawable/ic_launcher"
|
||||
android:accountPreferences="@xml/global_preferences"/>
|
||||
@@ -0,0 +1,21 @@
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<PreferenceCategory
|
||||
android:title="@string/summary_global_pref_to_general_prefs">
|
||||
<ListPreference
|
||||
android:defaultValue="10"
|
||||
android:entries="@array/pref_sync_frequency_titles"
|
||||
android:entryValues="@array/pref_sync_frequency_values"
|
||||
android:key="sync_frequency"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:title="@string/pref_title_sync_frequency" />
|
||||
<ListPreference
|
||||
android:defaultValue="60"
|
||||
android:entries="@array/pref_slow_sync_frequency_titles"
|
||||
android:entryValues="@array/pref_slow_sync_frequency_values"
|
||||
android:key="slow_sync_frequency"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:title="@string/pref_title_slow_sync_frequency" />
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<sync-adapter
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:contentAuthority="@string/slowsync_account_authority"
|
||||
android:accountType="@string/account_type"
|
||||
android:userVisible="true"
|
||||
android:supportsUploading="true"
|
||||
android:allowParallelSyncs="false"
|
||||
android:isAlwaysSyncable="true" />
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<sync-adapter
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:contentAuthority="@string/account_authority"
|
||||
android:accountType="@string/account_type"
|
||||
android:userVisible="true"
|
||||
android:supportsUploading="true"
|
||||
android:allowParallelSyncs="false"
|
||||
android:isAlwaysSyncable="true" />
|
||||
Reference in New Issue
Block a user