mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-27 18:27:43 +00:00
aa25f94291
1) Allow imports from the stock SMS database at any time. 2) Provide plaintext export support, in a format compatible with the "SMS Backup And Restore" app. 3) Fix the DB weirdness on encrypted restore that previously required killing the app.
98 lines
4.7 KiB
XML
98 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#ffeaeaea"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical">
|
|
|
|
<LinearLayout android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:layout_gravity="center_vertical"
|
|
android:padding="8dip"
|
|
android:background="#ffeaeaea">
|
|
|
|
|
|
<LinearLayout android:id="@+id/export_encrypted_backup"
|
|
android:clickable="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dip"
|
|
android:background="@drawable/clickable_card"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout android:orientation="horizontal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:paddingTop="8dip"
|
|
android:paddingBottom="8dip"
|
|
android:layout_marginLeft="16dip"
|
|
android:layout_marginRight="16dip">
|
|
|
|
<ImageView android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="10dip"
|
|
android:src="@drawable/encrypted_backup"/>
|
|
|
|
<LinearLayout android:orientation="vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Registration.Description"
|
|
android:text="@string/export_fragment__export_encrypted_backup"/>
|
|
|
|
<TextView android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:text="@string/export_fragment__export_an_encrypted_backup_to_the_sd_card"/>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout android:id="@+id/export_plaintext_backup"
|
|
android:clickable="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dip"
|
|
android:background="@drawable/clickable_card"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout android:orientation="horizontal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:paddingTop="8dip"
|
|
android:paddingBottom="8dip"
|
|
android:layout_marginLeft="16dip"
|
|
android:layout_marginRight="16dip">
|
|
|
|
<ImageView android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="10dip"
|
|
android:src="@drawable/plaintext_backup"/>
|
|
|
|
<LinearLayout android:orientation="vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Registration.Description"
|
|
android:text="@string/export_fragment__export_plaintext_backup"/>
|
|
|
|
<TextView android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:text="@string/export_fragment__export_a_plaintext_backup_compatible_with"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView> |