From e4b5387d62dc9188013df91754dc02248aa7fb31 Mon Sep 17 00:00:00 2001 From: Luan Nguyen Date: Tue, 10 Feb 2015 13:10:39 -0800 Subject: [PATCH] docs: Fix issue with onCreate() method declaration in file backup section bug: 3180881 Change-Id: I9616ec0d559bfbce669c5afc5b1742f6f5271fa5 --- docs/html/guide/topics/data/backup.jd | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/html/guide/topics/data/backup.jd b/docs/html/guide/topics/data/backup.jd index f09ff9e4f68ca..5710a47bd963c 100644 --- a/docs/html/guide/topics/data/backup.jd +++ b/docs/html/guide/topics/data/backup.jd @@ -643,7 +643,8 @@ public class MyPrefsBackupAgent extends BackupAgentHelper { // Allocate a helper and add it to the backup agent @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); + @Override + public void onCreate() { + FileBackupHelper helper = new FileBackupHelper(this, + TOP_SCORES, PLAYER_STATS); addHelper(FILES_BACKUP_KEY, helper); } }