Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b967f720 authored by Luan Nguyen's avatar Luan Nguyen Committed by Android Git Automerger
Browse files

am 71cf2b6d: am e726495a: am fe5e7e92: Merge "docs: Fix issue with onCreate()...

am 71cf2b6d: am e726495a: am fe5e7e92: Merge "docs: Fix issue with onCreate() method declaration in file backup section" into lmp-docs automerge: e0306bbe

* commit '71cf2b6d':
  docs: Fix issue with onCreate() method declaration in file backup section
parents e88f3522 71cf2b6d
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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);
    }
}