|
|
|
|
@ -48,7 +48,7 @@ public abstract class AppDatabase extends RoomDatabase { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static String getDate() { |
|
|
|
|
return Setting.isBackupAuto() ? ResUtil.getString(R.string.setting_backup_auto) : getBackupKey().exists() ? Util.format(new SimpleDateFormat("yyyyMMdd", Locale.getDefault()), getBackupKey().lastModified()) : ""; |
|
|
|
|
return Setting.isBackupAuto() ? ResUtil.getString(R.string.setting_backup_auto) : getBackupKey().exists() ? Util.format(new SimpleDateFormat("MMddHHmmss", Locale.getDefault()), new File(Path.tv(), NAME).lastModified()) : ""; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static File getBackupKey() { |
|
|
|
|
|