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();
}
}
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();
}
Aggregations