Skip to content

Commit 271d82c

Browse files
authored
Merge pull request #43 from harissabil/fix-android-15-issues
Fix backup restore issue & UI layout fix for sample app on Android 15 (#39)
2 parents a5ccb5d + 9f47546 commit 271d82c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/src/main/res/layout/activity_add_edit_fruit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true"
78
android:orientation="vertical"
89
android:padding="16dp"
910
tools:context="de.raphaelebner.roomdatabasebackup.sample.ActivityAddEditFruit">

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
android:id="@+id/cl_main"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
8+
android:fitsSystemWindows="true"
89
android:paddingBottom="16dp"
910
tools:ignore="HardcodedText"
1011
tools:context=".MainActivity">

core/src/main/java/de/raphaelebner/roomdatabasebackup/core/RoomBackup.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ class RoomBackup(var context: Context) {
727727
openBackupfileCreator.launch(backupFilename)
728728
}
729729
PROCESS_RESTORE -> {
730-
openBackupfileChooser.launch(arrayOf("application/octet-stream"))
730+
openBackupfileChooser.launch(arrayOf("application/octet-stream", "application/vnd.sqlite3"))
731731
}
732732
}
733733
}

0 commit comments

Comments
 (0)