OSDN Git Service

Only copy preferences files on upgrade if they previously exist
authorAlan Newberger <alann@google.com>
Mon, 23 Feb 2015 22:57:36 +0000 (14:57 -0800)
committerAlan Newberger <alann@google.com>
Mon, 23 Feb 2015 22:57:36 +0000 (14:57 -0800)
commit8d0178ea8ea318e52dd8bd3ed5f3c8e697383304
treed80ee33c8b07c54d93600e2d984c14f6357c295a
parent48f55e7456b422eff516da320c0fb7cbd4dbfb55
Only copy preferences files on upgrade if they previously exist

If no data exists in an old module format, there's no need to
upgrade it. This is only a partial fix to the below bug, but
will allow for fresh installs to work. Full fix requires all
modules (or rather, their scope) to be created programmatically.

Bug: 19482146
Change-Id: I50918eefc4ae9dcb472d2fc79cb1c5de710c5806
src/com/android/camera/settings/AppUpgrader.java