am b967f720: am 71cf2b6d: am e726495a: am fe5e7e92: Merge "docs: Fix issue with onCreate() method declaration in file backup section" into lmp-docs automerge: e0306bb
* commit 'b967f7201a42227a359412441cadc13b42a348ef': docs: Fix issue with onCreate() method declaration in file backup section
This commit is contained in:
@@ -643,7 +643,8 @@ public class MyPrefsBackupAgent extends BackupAgentHelper {
|
|||||||
// Allocate a helper and add it to the backup agent
|
// Allocate a helper and add it to the backup agent
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, PREFS);
|
SharedPreferencesBackupHelper helper =
|
||||||
|
new SharedPreferencesBackupHelper(this, PREFS);
|
||||||
addHelper(PREFS_BACKUP_KEY, helper);
|
addHelper(PREFS_BACKUP_KEY, helper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -688,8 +689,10 @@ public class MyFileBackupAgent extends BackupAgentHelper {
|
|||||||
static final String FILES_BACKUP_KEY = "myfiles";
|
static final String FILES_BACKUP_KEY = "myfiles";
|
||||||
|
|
||||||
// Allocate a helper and add it to the backup agent
|
// Allocate a helper and add it to the backup agent
|
||||||
void onCreate() {
|
@Override
|
||||||
FileBackupHelper helper = new FileBackupHelper(this, TOP_SCORES, PLAYER_STATS);
|
public void onCreate() {
|
||||||
|
FileBackupHelper helper = new FileBackupHelper(this,
|
||||||
|
TOP_SCORES, PLAYER_STATS);
|
||||||
addHelper(FILES_BACKUP_KEY, helper);
|
addHelper(FILES_BACKUP_KEY, helper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user