Perform manual sync from settings screen

This commit is contained in:
Moez Bhatti
2017-11-01 12:54:20 -07:00
parent 72e94f87e2
commit 8994c15220
15 changed files with 153 additions and 60 deletions
@@ -19,22 +19,15 @@
android:layout_height="0dp"
android:layout_weight="1">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipeRefresh"
<android.support.v7.widget.RecyclerView
android:id="@+id/conversationList"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/conversationList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"
android:paddingBottom="8dp"
android:paddingTop="8dp"
tools:listitem="@layout/conversation_list_item" />
</android.support.v4.widget.SwipeRefreshLayout>
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"
android:paddingBottom="8dp"
android:paddingTop="8dp"
tools:listitem="@layout/conversation_list_item" />
<View
android:layout_width="match_parent"
@@ -6,9 +6,16 @@
<include layout="@layout/toolbar" />
<View
<FrameLayout
android:id="@+id/fragmentFrame"
android:layout_width="match_parent"
android:layout_height="8dp"
android:background="@drawable/ab_shadow" />
android:layout_height="match_parent">
<View
android:layout_width="match_parent"
android:layout_height="8dp"
android:background="@drawable/ab_shadow" />
</FrameLayout>
</LinearLayout>
+3
View File
@@ -11,6 +11,9 @@
<string name="drawer_blocked">Blocked</string>
<string name="drawer_settings">Settings</string>
<string name="settings_sync_title">Sync messages</string>
<string name="settings_sync_summary">Re-sync your messages with the native Android SMS database</string>
<string name="notification_reply">Reply</string>
<string name="notification_read">Mark read</string>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Preference
android:key="sync"
android:summary="@string/settings_sync_summary"
android:title="@string/settings_sync_title" />
</PreferenceScreen>