Search in sources :

Example 1 with TransactionBuilder

use of net.osmand.plus.dashboard.tools.TransactionBuilder in project Osmand by osmandapp.

the class DashboardOnMap method removeMapillaryFiltersFragment.

private void removeMapillaryFiltersFragment() {
    FragmentManager manager = mapActivity.getSupportFragmentManager();
    Fragment mapillaryFragment = manager.findFragmentByTag(MapillaryFiltersFragment.TAG);
    if (mapillaryFragment != null) {
        OsmandSettings settings = getMyApplication().getSettings();
        TransactionBuilder builder = new TransactionBuilder(manager, settings, mapActivity);
        builder.getFragmentTransaction().remove(mapillaryFragment).commit();
    }
}
Also used : FragmentManager(android.support.v4.app.FragmentManager) TransactionBuilder(net.osmand.plus.dashboard.tools.TransactionBuilder) MapillaryFirstDialogFragment(net.osmand.plus.mapillary.MapillaryPlugin.MapillaryFirstDialogFragment) Fragment(android.support.v4.app.Fragment) MapillaryFiltersFragment(net.osmand.plus.mapillary.MapillaryFiltersFragment) DashboardSettingsDialogFragment(net.osmand.plus.dashboard.tools.DashboardSettingsDialogFragment) OsmandSettings(net.osmand.plus.OsmandSettings)

Example 2 with TransactionBuilder

use of net.osmand.plus.dashboard.tools.TransactionBuilder in project Osmand by osmandapp.

the class DashboardOnMap method addOrUpdateDashboardFragments.

private void addOrUpdateDashboardFragments() {
    OsmandSettings settings = getMyApplication().getSettings();
    TransactionBuilder builder = new TransactionBuilder(mapActivity.getSupportFragmentManager(), settings, mapActivity);
    builder.addFragmentsData(fragmentsData).addFragmentsData(OsmandPlugin.getPluginsCardsList()).getFragmentTransaction().commit();
}
Also used : TransactionBuilder(net.osmand.plus.dashboard.tools.TransactionBuilder) OsmandSettings(net.osmand.plus.OsmandSettings)

Aggregations

OsmandSettings (net.osmand.plus.OsmandSettings)2 TransactionBuilder (net.osmand.plus.dashboard.tools.TransactionBuilder)2 Fragment (android.support.v4.app.Fragment)1 FragmentManager (android.support.v4.app.FragmentManager)1 DashboardSettingsDialogFragment (net.osmand.plus.dashboard.tools.DashboardSettingsDialogFragment)1 MapillaryFiltersFragment (net.osmand.plus.mapillary.MapillaryFiltersFragment)1 MapillaryFirstDialogFragment (net.osmand.plus.mapillary.MapillaryPlugin.MapillaryFirstDialogFragment)1