Fix archive wiki

This commit is contained in:
Victor Shcherb 2015-06-14 20:57:04 +02:00
parent 2957968fcc
commit ad7c8b35b5

View file

@ -379,7 +379,7 @@ public class DownloadActivity extends BaseDownloadActivity {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
for(String w : wiki) { for(String w : wiki) {
File fl = new File(w); File fl = getMyApplication().getAppPath(w);
File nf = new File(fl.getParentFile(), IndexConstants.BACKUP_INDEX_DIR + "/"+fl.getName()); File nf = new File(fl.getParentFile(), IndexConstants.BACKUP_INDEX_DIR + "/"+fl.getName());
boolean res = fl.renameTo(nf); boolean res = fl.renameTo(nf);
if(!res) { if(!res) {