Don't delete old apk if only data is backed up
Add missing call to commit preference changes