Merge pull request #3418 from brainbeanapps/master

Quick action - Add Favorite show dialog fix
This commit is contained in:
vshcherb 2017-01-12 16:27:46 +01:00 committed by GitHub
commit 56f9f38ad7
2 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ public class FavoritePointEditor extends PointEditor {
favorite.setDescription("");
favorite.setOriginObjectName(originObjectName);
FavoritePointEditorFragment.showAutoFillInstance(mapActivity);
FavoritePointEditorFragment.showAutoFillInstance(mapActivity, autoFill);
}
public void edit(FavouritePoint favorite) {

View file

@ -126,13 +126,13 @@ public class FavoritePointEditorFragment extends PointEditorFragment {
.addToBackStack(null).commit();
}
public static void showAutoFillInstance(final MapActivity mapActivity) {
public static void showAutoFillInstance(final MapActivity mapActivity, boolean autoFill) {
FavoritePointEditor editor = mapActivity.getContextMenu().getFavoritePointEditor();
//int slideInAnim = editor.getSlideInAnimation();
//int slideOutAnim = editor.getSlideOutAnimation();
FavoritePointEditorFragment fragment = new FavoritePointEditorFragment();
fragment.autoFill = true;
fragment.autoFill = autoFill;
mapActivity.getSupportFragmentManager().beginTransaction()
//.setCustomAnimations(slideInAnim, slideOutAnim, slideInAnim, slideOutAnim)