diff options
author | stefan-niedermann <info@niedermann.it> | 2019-12-13 22:41:28 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2019-12-13 22:41:28 +0300 |
commit | ad65764004faa5f502f57a77dde7dfc923112239 (patch) | |
tree | c87cfb9c0d0096324f5b68b07fd7f36d4153debe /app/src/main/res | |
parent | 46d4a856ae842a51e103a6fc3c4798b5434825be (diff) |
Implement basic background sync job
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_about_credits_tab.xml | 26 | ||||
-rw-r--r-- | app/src/main/res/values/setup.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
3 files changed, 28 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_about_credits_tab.xml b/app/src/main/res/layout/fragment_about_credits_tab.xml index fa3ef489b..c505d559a 100644 --- a/app/src/main/res/layout/fragment_about_credits_tab.xml +++ b/app/src/main/res/layout/fragment_about_credits_tab.xml @@ -21,6 +21,32 @@ android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="26sp" /> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + style="?android:attr/editTextPreferenceStyle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="10dp" + android:paddingEnd="0dp" + android:paddingRight="0dp" + android:text="@string/last_background_sync" + tools:ignore="RtlSymmetry" /> + + <TextView + android:id="@+id/last_background_sync" + style="?android:attr/editTextPreferenceStyle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="10dp" + android:paddingStart="5dp" + android:paddingLeft="5dp" + tools:hint="20 seconds ago" + tools:ignore="RtlSymmetry" /> + </LinearLayout> + <TextView style="?android:attr/listSeparatorTextViewStyle" android:layout_width="match_parent" diff --git a/app/src/main/res/values/setup.xml b/app/src/main/res/values/setup.xml index 4da70f773..f25e3291b 100644 --- a/app/src/main/res/values/setup.xml +++ b/app/src/main/res/values/setup.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <resources> <string name="shared_preference_last_sync" translatable="false">it.niedermann.nextcloud.deck.last_sync</string> + <string name="shared_preference_last_background_sync" translatable="false">it.niedermann.nextcloud.deck.last_background_sync</string> <string name="shared_preference_last_account" translatable="false">it.niedermann.nextcloud.deck.last_account</string> <string name="pref_key_wifi_only" translatable="false">wifiOnly</string> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4e4fd8693..d571b42cd 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -148,4 +148,5 @@ <string name="attachment_delete_message">This will permanently delete this attachment.</string> <string name="delete_attachment">Delete %1$s</string> <string name="no_content">No content yet</string> + <string name="last_background_sync">Last background sync:</string> </resources> |