Fixed issue #4427
This commit is contained in:
parent
eb88381831
commit
a7496f1a17
2 changed files with 2 additions and 7 deletions
|
@ -248,7 +248,6 @@ public class LiveUpdatesSettingsDialogFragment extends DialogFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
changesManager.deleteUpdates(fileNameWithoutExtension);
|
changesManager.deleteUpdates(fileNameWithoutExtension);
|
||||||
changesManager.removeRegionUpdateReferences(fileNameWithoutExtension);
|
|
||||||
preferenceLastCheck(localIndexInfo, getMyApplication().getSettings()).resetToDefault();
|
preferenceLastCheck(localIndexInfo, getMyApplication().getSettings()).resetToDefault();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -333,12 +333,6 @@ public class IncrementalChangesManager {
|
||||||
return iul;
|
return iul;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeRegionUpdateReferences(String fileName) {
|
|
||||||
RegionUpdateFiles ruf = regions.get(fileName.toLowerCase());
|
|
||||||
ruf.monthUpdates.clear();
|
|
||||||
ruf.dayUpdates.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
public long getUpdatesSize(String fileName){
|
public long getUpdatesSize(String fileName){
|
||||||
RegionUpdateFiles ruf = regions.get(fileName.toLowerCase());
|
RegionUpdateFiles ruf = regions.get(fileName.toLowerCase());
|
||||||
if(ruf == null) {
|
if(ruf == null) {
|
||||||
|
@ -375,6 +369,8 @@ public class IncrementalChangesManager {
|
||||||
resourceManager.closeFile(regionUpdate.file.getName());
|
resourceManager.closeFile(regionUpdate.file.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ruf.dayUpdates.clear();
|
||||||
|
ruf.monthUpdates.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTimestamp(String fileName) {
|
public long getTimestamp(String fileName) {
|
||||||
|
|
Loading…
Reference in a new issue