Skip to content

Commit

Permalink
Allow the imported user profile to be overwritten
Browse files Browse the repository at this point in the history
Indeed, we used to face a FileAlreadyExistsException when
importing a user profile again.
  • Loading branch information
jonathanklee authored and mar-v-in committed Oct 2, 2023
1 parent 0b1e517 commit 367096e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ object ProfileManager {
val profileName = getProfileName { FileXmlResourceParser(file) } ?: return false
try {
Log.d(TAG, "Importing user profile '$profileName'")
file.copyTo(getUserProfileFile(context))
file.copyTo(getUserProfileFile(context), overwrite = true)
if (activeProfile == PROFILE_USER) applyProfile(context, PROFILE_USER)
return true
} catch (e: Exception) {
Expand Down

0 comments on commit 367096e

Please sign in to comment.