Give correct names for update

This commit is contained in:
Victor Shcherb 2015-08-01 22:08:50 +02:00
parent 309c30ad34
commit b10526591e

View file

@ -322,6 +322,12 @@ public class DownloadActivityType {
String s = fileName.substring(0, l);
return s;
}
if (this == LIVE_UPDATES_FILE) {
if(fileName.indexOf('.') > 0){
return fileName.substring(0, fileName.indexOf('.'));
}
return fileName;
}
int ls = fileName.lastIndexOf('_');
if (ls >= 0) {
return fileName.substring(0, ls);