rafi0101 / Android-Room-Database-Backup

Simple tool to backup and restore your room database in Android
MIT License
239 stars 19 forks source link

Not working in jetpack compose #28

Closed hmshohrab closed 1 year ago

hmshohrab commented 1 year ago

Describe the bug Custiom dialog is not working

rafi0101 commented 1 year ago

do you have any more information for me? That's why I actually created a bug report template where you get asked for some details!

Marc-WAP commented 1 year ago

I've ran into the same problem as @hmshohrab and found a fix. I'll create a PR within a minute.

The problem we're facing is that this module is not compatible with an Android app using Jetpack Compose instead of Fragments.

This is due to the extension of FragmentActivity, which results in the following error:

Cannot access 'androidx.fragment.app.FragmentActivity' which is a supertype of 'de.raphaelebner.roomdatabasebackup.core.RoomBackup'. Check your module classpath for missing or conflicting dependencies

Removing this extension resolves this problem, and it seems like it also doesn't break the sample projects.