Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#96[30m]. Change hardcoded db path to dynamic..
  • Loading branch information
Evgenii Kanivets committed Aug 10, 2016
commit 130612870f50e126458e68c8ed271e83b39eb3f7
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
* @author Evgenii Kanivets
*/
public class BackupController {
private static final String PACKAGE_NAME = BuildConfig.APPLICATION_ID;

private FormatController formatController;
private String filesDir;

Expand Down Expand Up @@ -75,7 +73,7 @@ private long readAppDbFileLength() {

@NonNull
private String getAppDbFileName() {
return filesDir + PACKAGE_NAME + "/databases/database";
return filesDir + "/databases/database";
}

private class DropboxBackupAsyncTask extends AsyncTask<Void, String, String> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@ public ImportController providesImportController(RecordController recordControll
@NonNull
@Singleton
public BackupController providesBackupController(FormatController formatController) {
return new BackupController(formatController, "/data/data/");
return new BackupController(formatController, context.getApplicationInfo().dataDir);
}
}