This commit is contained in:
PavelRatushny 2017-05-23 13:10:06 +03:00
parent d3354ffa56
commit 4f22f23a35
3 changed files with 0 additions and 19 deletions

View file

@ -72,20 +72,6 @@ import btools.routingapp.BRouterServiceConnection;
import btools.routingapp.IBRouterService;
public class OsmandApplication extends MultiDexApplication {
public static boolean isActivityVisible() {
return activityVisible;
}
public static void activityResumed() {
activityVisible = true;
}
public static void activityPaused() {
activityVisible = false;
}
private static boolean activityVisible;
public static final String EXCEPTION_PATH = "exception.log"; //$NON-NLS-1$
private static final org.apache.commons.logging.Log LOG = PlatformUtil.getLog(OsmandApplication.class);

View file

@ -685,7 +685,6 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
new XMasDialogFragment().show(getSupportFragmentManager(), XMasDialogFragment.TAG);
}
FirstUsageWelcomeFragment.SHOW = false;
OsmandApplication.activityResumed();
}
@Override
@ -1030,7 +1029,6 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
getMyApplication().getAppCustomization().pauseActivity(MapActivity.class);
app.getResourceManager().interruptRendering();
OsmandPlugin.onMapActivityPause(this);
OsmandApplication.activityPaused();
}
public void updateApplicationModeSettings() {

View file

@ -224,9 +224,6 @@ public class DownloadFileHelper {
copyVoiceConfig(de);
}
toReIndex.add(de.targetFile);
if (OsmandApplication.isActivityVisible()) {
showWarningCallback.showWarning(ctx.getString(R.string.shared_string_download_successful));
}
return true;
} catch (IOException e) {
log.error("Exception ocurred", e); //$NON-NLS-1$