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) { private fun importCallHistory(uri: Uri) {
try { try {
val jsonString = contentResolver.openInputStream(uri)!!.use { inputStream -> val jsonString = contentResolver.openInputStream(uri)!!.use { inputStream ->

View File

@ -394,20 +394,16 @@
</RelativeLayout> </RelativeLayout>
<RelativeLayout <include
android:id="@+id/settings_calls_import_holder" android:id="@+id/settings_migration_divider"
style="@style/SettingsHolderTextViewOneLinerStyle" layout="@layout/divider" />
<TextView
android:id="@+id/settings_migration_section_label"
style="@style/SettingsSectionLabelStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:text="@string/migrating" />
<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>
<RelativeLayout <RelativeLayout
android:id="@+id/settings_calls_export_holder" android:id="@+id/settings_calls_export_holder"
@ -424,6 +420,21 @@
</RelativeLayout> </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> </LinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>