Loading core/java/android/app/backup/SharedPreferencesBackupHelper.java +3 −3 Original line number Diff line number Diff line Loading @@ -51,8 +51,8 @@ import java.io.File; * // identify the SharedPreferenceBackupHelper's data. * static final String MY_PREFS_BACKUP_KEY = "myprefs"; * * // Simply allocate a helper and install it * void onCreate() { * // Allocate a helper and install it. * public void onCreate() { * SharedPreferencesBackupHelper helper = * new SharedPreferencesBackupHelper(this, PREFS_DISPLAY, PREFS_SCORES); * addHelper(MY_PREFS_BACKUP_KEY, helper); Loading Loading
core/java/android/app/backup/SharedPreferencesBackupHelper.java +3 −3 Original line number Diff line number Diff line Loading @@ -51,8 +51,8 @@ import java.io.File; * // identify the SharedPreferenceBackupHelper's data. * static final String MY_PREFS_BACKUP_KEY = "myprefs"; * * // Simply allocate a helper and install it * void onCreate() { * // Allocate a helper and install it. * public void onCreate() { * SharedPreferencesBackupHelper helper = * new SharedPreferencesBackupHelper(this, PREFS_DISPLAY, PREFS_SCORES); * addHelper(MY_PREFS_BACKUP_KEY, helper); Loading