summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-02-12 22:23:43 +0100
committerlado <herrlado@gmail.com>2013-02-12 22:23:43 +0100
commit0be8cde42df11a47556adce0637564cc0cdac5ac (patch)
tree188d303e313e93b455048c1976e3e46a3813ae62 /vdrmanager
parent081040834e38e52a47cdf72281a2f3dcf30a1754 (diff)
downloadvdr-manager-0be8cde42df11a47556adce0637564cc0cdac5ac.tar.gz
vdr-manager-0be8cde42df11a47556adce0637564cc0cdac5ac.tar.bz2
DBAccess
Diffstat (limited to 'vdrmanager')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/backup/ExternalFileBackup.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/backup/ExternalFileBackup.java b/vdrmanager/src/de/bjusystems/vdrmanager/backup/ExternalFileBackup.java
index 22bb1dd..790375e 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/backup/ExternalFileBackup.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/backup/ExternalFileBackup.java
@@ -36,7 +36,8 @@ import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.util.Log;
-import de.bjusystems.vdrmanager.data.db.OrmDatabaseHelper;
+import de.bjusystems.vdrmanager.data.db.DBAccess;
+
/**
* Handler for writing or reading single-file backups.
@@ -201,10 +202,10 @@ class ExternalFileBackup {
preferencesHelper.exportPreferences(preferences, outWriter);
- File f = new File(OrmDatabaseHelper.getDataBaseFile());
+ File f = new File(DBAccess.getDataBaseFile());
if(f.exists()){
- compressedStream.putNextEntry(new ZipEntry(OrmDatabaseHelper.DATABASE_NAME));
- IOUtils.copy(new FileInputStream(OrmDatabaseHelper.getDataBaseFile()), outWriter);
+ compressedStream.putNextEntry(new ZipEntry(DBAccess.DATABASE_NAME));
+ IOUtils.copy(new FileInputStream(DBAccess.getDataBaseFile()), outWriter);
}
@@ -255,10 +256,10 @@ class ExternalFileBackup {
- zipEntry = zipFile.getEntry(OrmDatabaseHelper.DATABASE_NAME);
+ zipEntry = zipFile.getEntry(DBAccess.DATABASE_NAME);
if (zipEntry != null) {
- IOUtils.copy(zipFile.getInputStream(zipEntry), new FileOutputStream(OrmDatabaseHelper.getDataBaseFile()));
- deleteJournal(OrmDatabaseHelper.getDataBaseFile());
+ IOUtils.copy(zipFile.getInputStream(zipEntry), new FileOutputStream(DBAccess.getDataBaseFile()));
+ deleteJournal(DBAccess.getDataBaseFile());
}
} finally {