commit | cf2ee87fd43aaacd8e952fc9bc116fd27f2d8eb7 | [log] [tgz] |
---|---|---|
author | Hai Zhang <zhanghai@google.com> | Tue May 19 22:00:18 2020 -0700 |
committer | Hai Zhang <zhanghai@google.com> | Wed May 20 12:08:41 2020 -0700 |
tree | 059a5d85c1ca664cede60237723ffcc5717c090c | |
parent | 25adf3c4718092df863d3173c5066f705a04ce49 [diff] |
Maintain compatibility by deleting target directory before renaming into it. The target shouldn't be a directory, but if it is, it would be deleted (as long as it's empty). This became some kind of API and we need to remain compatible with it. Bug: 151959443 Test: Reboot and ensure ShortcutService can persist its state Change-Id: I11a80cd4252128b025912b7aab86b113935e549a Merged-In: I11a80cd4252128b025912b7aab86b113935e549a