pull/171/head
FongMi 2 years ago
parent ece3279ce0
commit 045984831d
  1. 4
      app/build.gradle
  2. 2
      app/src/main/java/com/fongmi/android/tv/db/AppDatabase.java

@ -21,12 +21,12 @@ android {
leanback {
dimension "mode"
versionCode 207
versionName "20231111"
versionName "20231111#2"
}
mobile {
dimension "mode"
versionCode 207
versionName "20231111"
versionName "20231111#2"
}
java {
dimension "api"

@ -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() {

Loading…
Cancel
Save