From eb883818316d8a7852a89373a4477e3a61685e42 Mon Sep 17 00:00:00 2001 From: PaulStets Date: Fri, 22 Sep 2017 18:49:28 +0300 Subject: [PATCH] Fixed issue #4427 --- .../plus/liveupdates/LiveUpdatesSettingsDialogFragment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/liveupdates/LiveUpdatesSettingsDialogFragment.java b/OsmAnd/src/net/osmand/plus/liveupdates/LiveUpdatesSettingsDialogFragment.java index 0b847d2253..58f784ce69 100644 --- a/OsmAnd/src/net/osmand/plus/liveupdates/LiveUpdatesSettingsDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/liveupdates/LiveUpdatesSettingsDialogFragment.java @@ -239,9 +239,8 @@ public class LiveUpdatesSettingsDialogFragment extends DialogFragment { final IncrementalChangesManager changesManager = getMyApplication().getResourceManager().getChangesManager(); - final File baseFile = new File(localIndexInfo); final String fileNameWithoutExtension = - Algorithms.getFileNameWithoutExtension(baseFile); + Algorithms.getFileNameWithoutExtension(new File(localIndexInfo)); AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage(getString(R.string.clear_updates_proposition_message) + " " + getUpdatesSize(fileNameWithoutExtension, changesManager))