Created migration section in settings and import/export rearranged

This commit is contained in:
merkost 2023-07-02 22:31:37 +10:00
parent 3892c5f5d5
commit 6fc028db33
2 changed files with 24 additions and 14 deletions

View File

@ -302,7 +302,6 @@ class SettingsActivity : SimpleActivity() {
}
}
private fun importCallHistory(uri: Uri) {
try {
val jsonString = contentResolver.openInputStream(uri)!!.use { inputStream ->

View File

@ -394,20 +394,16 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_calls_import_holder"
style="@style/SettingsHolderTextViewOneLinerStyle"
<include
android:id="@+id/settings_migration_divider"
layout="@layout/divider" />
<TextView
android:id="@+id/settings_migration_section_label"
style="@style/SettingsSectionLabelStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_calls_import"
style="@style/SettingsTextLabelStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/import_call_history" />
</RelativeLayout>
android:layout_height="wrap_content"
android:text="@string/migrating" />
<RelativeLayout
android:id="@+id/settings_calls_export_holder"
@ -424,6 +420,21 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_calls_import_holder"
style="@style/SettingsHolderTextViewOneLinerStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_calls_import"
style="@style/SettingsTextLabelStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/import_call_history" />
</RelativeLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>