This was the class diagram in the planning phase. I have noticed that there are a few things that I've missed and that should be adjusted.
- The
LoginActivityis missing
The login activity should be connected with the main activity. The activity should be startable in the create fragment or the settings fragment. Depends from where the user is coming. - The
GenerateImageActivityshould beGenerateActivity
I renamed it, because I think it's easier. - The
CreatePageFragmentalso usesDatabaseService
When you go to the Create page, it has to detect if the user entered an api key already. For this the database service has to be called to check this. If the user hasn't entered a key, it starts the LoginActivity. hasApiKey()method on theDatabaseService
I realized that it would be easier, if there was another method to check if the api key was set. Then I don't have to always dodatabaseService.getApiKey().isNotEmpty().ImageModelis a data class
The ImageTypeEnums is also not existent, because when the ImageModel is safed, it stores the urls in different jsons. For examplewallpapers.jsonandwidgets.jsonPreferencesService,DatabaseService
The PreferencesService holds the methods to store and read the APIKey, theDatabaseService(ImageServicein the diagram) stores all the image urls in json files.

