Permalink
Browse files

always check the SD card, for some people may have had Android 2.1, a…

…nd then upgraded to 2.2
  • Loading branch information...
seanmonstar committed Feb 14, 2011
1 parent 54789f2 commit a612ff43d69958cf542fdf0893df4886d001a5ad
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/com/monstarlab/servicedroid/model/ServiceProvider.java
@@ -628,13 +628,13 @@ protected void dataChanged() {
}
protected void restore() {
- if (!sUseManager) {
- Context ctx = getContext();
- Intent i = new Intent(BackupService.ACTION_RESTORE, null, ctx, BackupService.class);
- ctx.startService(i);
- } else {
- //BackupAgent will do its thing
- }
+
+ Context ctx = getContext();
+ Intent i = new Intent(BackupService.ACTION_RESTORE, null, ctx, BackupService.class);
+ ctx.startService(i);
+
+ //BackupAgent will do its thing
+ //but also check SD card for people upgrading to Android 2.2+
}
}

0 comments on commit a612ff4

Please sign in to comment.