Search in sources :

Example 1 with MapContextMenuFragment

use of net.osmand.plus.mapcontextmenu.MapContextMenuFragment in project Osmand by osmandapp.

the class MapActivity method newDownloadIndexes.

// DownloadEvents
@Override
public void newDownloadIndexes() {
    FirstUsageWizardFragment wizardFragment = getFirstUsageWizardFragment();
    if (wizardFragment != null) {
        wizardFragment.newDownloadIndexes();
    }
    WeakReference<MapContextMenuFragment> fragmentRef = getContextMenu().findMenuFragment();
    if (fragmentRef != null) {
        fragmentRef.get().newDownloadIndexes();
    }
    if (dashboardOnMap.isVisible()) {
        dashboardOnMap.onNewDownloadIndexes();
    }
    refreshMap();
}
Also used : FirstUsageWizardFragment(net.osmand.plus.firstusage.FirstUsageWizardFragment) MapContextMenuFragment(net.osmand.plus.mapcontextmenu.MapContextMenuFragment)

Example 2 with MapContextMenuFragment

use of net.osmand.plus.mapcontextmenu.MapContextMenuFragment in project Osmand by osmandapp.

the class MapActivity method downloadHasFinished.

@Override
public void downloadHasFinished() {
    FirstUsageWizardFragment wizardFragment = getFirstUsageWizardFragment();
    if (wizardFragment != null) {
        wizardFragment.downloadHasFinished();
    }
    WeakReference<MapContextMenuFragment> fragmentRef = getContextMenu().findMenuFragment();
    if (fragmentRef != null) {
        fragmentRef.get().downloadHasFinished();
    }
    if (dashboardOnMap.isVisible()) {
        dashboardOnMap.onDownloadHasFinished();
    }
    refreshMap();
}
Also used : FirstUsageWizardFragment(net.osmand.plus.firstusage.FirstUsageWizardFragment) MapContextMenuFragment(net.osmand.plus.mapcontextmenu.MapContextMenuFragment)

Example 3 with MapContextMenuFragment

use of net.osmand.plus.mapcontextmenu.MapContextMenuFragment in project Osmand by osmandapp.

the class MapActivity method downloadInProgress.

@Override
public void downloadInProgress() {
    FirstUsageWizardFragment wizardFragment = getFirstUsageWizardFragment();
    if (wizardFragment != null) {
        wizardFragment.downloadInProgress();
    }
    WeakReference<MapContextMenuFragment> fragmentRef = getContextMenu().findMenuFragment();
    if (fragmentRef != null) {
        fragmentRef.get().downloadInProgress();
    }
    if (dashboardOnMap.isVisible()) {
        dashboardOnMap.onDownloadInProgress();
    }
}
Also used : FirstUsageWizardFragment(net.osmand.plus.firstusage.FirstUsageWizardFragment) MapContextMenuFragment(net.osmand.plus.mapcontextmenu.MapContextMenuFragment)

Aggregations

FirstUsageWizardFragment (net.osmand.plus.firstusage.FirstUsageWizardFragment)3 MapContextMenuFragment (net.osmand.plus.mapcontextmenu.MapContextMenuFragment)3