This commit is contained in:
PaulStets 2017-09-22 19:02:41 +03:00
parent eb88381831
commit a7496f1a17
2 changed files with 2 additions and 7 deletions

View file

@ -248,7 +248,6 @@ public class LiveUpdatesSettingsDialogFragment extends DialogFragment {
@Override
public void onClick(DialogInterface dialog, int which) {
changesManager.deleteUpdates(fileNameWithoutExtension);
changesManager.removeRegionUpdateReferences(fileNameWithoutExtension);
preferenceLastCheck(localIndexInfo, getMyApplication().getSettings()).resetToDefault();
}
})

View file

@ -333,12 +333,6 @@ public class IncrementalChangesManager {
return iul;
}
public void removeRegionUpdateReferences(String fileName) {
RegionUpdateFiles ruf = regions.get(fileName.toLowerCase());
ruf.monthUpdates.clear();
ruf.dayUpdates.clear();
}
public long getUpdatesSize(String fileName){
RegionUpdateFiles ruf = regions.get(fileName.toLowerCase());
if(ruf == null) {
@ -375,6 +369,8 @@ public class IncrementalChangesManager {
resourceManager.closeFile(regionUpdate.file.getName());
}
}
ruf.dayUpdates.clear();
ruf.monthUpdates.clear();
}
public long getTimestamp(String fileName) {