OSDN Git Service

am e726495a: am fe5e7e92: Merge "docs: Fix issue with onCreate() method declaration...
authorLuan Nguyen <luann@google.com>
Fri, 13 Feb 2015 00:15:09 +0000 (00:15 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Fri, 13 Feb 2015 00:15:09 +0000 (00:15 +0000)
automerge: e0306bb

* commit 'e0306bbece4fd32d1e2f837dc515506180e04e8e':
  docs: Fix issue with onCreate() method declaration in file backup section

docs/html/guide/topics/data/backup.jd

index f09ff9e..5710a47 100644 (file)
@@ -643,7 +643,8 @@ public class MyPrefsBackupAgent extends BackupAgentHelper {
     // Allocate a helper and add it to the backup agent
     &#64;Override
     public void onCreate() {
-        SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, PREFS);
+        SharedPreferencesBackupHelper helper =
+                new SharedPreferencesBackupHelper(this, PREFS);
         addHelper(PREFS_BACKUP_KEY, helper);
     }
 }
@@ -688,8 +689,10 @@ public class MyFileBackupAgent extends BackupAgentHelper {
     static final String FILES_BACKUP_KEY = "myfiles";
 
     // Allocate a helper and add it to the backup agent
-    void onCreate() {
-        FileBackupHelper helper = new FileBackupHelper(this, TOP_SCORES, PLAYER_STATS);
+    &#64;Override
+    public void onCreate() {
+        FileBackupHelper helper = new FileBackupHelper(this,
+                TOP_SCORES, PLAYER_STATS);
         addHelper(FILES_BACKUP_KEY, helper);
     }
 }