aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-10-24 21:02:14 +0200
committerChristian Schneppe <christian@pix-art.de>2018-10-24 21:02:14 +0200
commit4b3006bf339d3b6d11e051f11518d21834ed7773 (patch)
tree46b9e66782dd4036ab92e6e9d89e5903e7cf945b /src/main/java/de/pixart/messenger/ui
parent6cd9322130acab631fd1ee80cc264c5fa35939c6 (diff)
add missing slash to make database import working again
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/WelcomeActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java b/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java
index e2bf9d8e9..cdb6a63a2 100644
--- a/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java
@@ -193,7 +193,7 @@ public class WelcomeActivity extends XmppActivity {
private boolean BackupAvailable() {
// Set the folder on the SDcard
- File filePath = new File(FileBackend.getBackupDirectory() + "database.db.crypt");
+ File filePath = new File(FileBackend.getBackupDirectory() + "/database.db.crypt");
Log.d(Config.LOGTAG, "DB Path: " + filePath.toString());
if (filePath.exists()) {
Log.d(Config.LOGTAG, "DB Path existing");
@@ -208,7 +208,7 @@ public class WelcomeActivity extends XmppActivity {
// Set the folder on the SDcard
File directory = new File(FileBackend.getBackupDirectory());
// Set the input file stream up:
- FileInputStream InputFile = new FileInputStream(directory.getPath() + "database.db.crypt");
+ FileInputStream InputFile = new FileInputStream(directory.getPath() + "/database.db.crypt");
// Temp output for DB checks
File TempFile = new File(directory.getPath() + "database.bak");
FileOutputStream OutputTemp = new FileOutputStream(TempFile);