Use AppDataLocation on Android
ClosedPublic

Authored by nicolasfella on Oct 10 2019, 9:01 PM.

Details

Summary

GenericDataLocation isn't writable on Android without special permission. The creation of the user database thus fails leading to a crash at startup. Prevent this by using AppDataLocation, which is always accessible.

Test Plan

Start app on Android, doesn't crash

Diff Detail

Repository
R321 KStars
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nicolasfella created this revision.Oct 10 2019, 9:01 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptOct 10 2019, 9:01 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
nicolasfella requested review of this revision.Oct 10 2019, 9:01 PM
mutlaqja accepted this revision.Oct 10 2019, 9:29 PM
This revision is now accepted and ready to land.Oct 10 2019, 9:29 PM
This revision was automatically updated to reflect the committed changes.