Fix #3783
This commit is contained in:
parent
d3354ffa56
commit
4f22f23a35
3 changed files with 0 additions and 19 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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$
|
||||
|
|
Loading…
Reference in a new issue