From 96db2c1aeec602481d8351075715a4ab2377e742 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Thu, 14 May 2020 15:59:22 +0200 Subject: [PATCH] Update QuickActionsWidget.java --- .../plus/quickaction/QuickActionsWidget.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/quickaction/QuickActionsWidget.java b/OsmAnd/src/net/osmand/plus/quickaction/QuickActionsWidget.java index 354d04484c..84392cebf0 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/QuickActionsWidget.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/QuickActionsWidget.java @@ -250,15 +250,15 @@ public class QuickActionsWidget extends LinearLayout { view.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { - FragmentManager fm = ((AppCompatActivity) getContext()).getSupportFragmentManager(); - if (action instanceof NewAction) { - fm.beginTransaction() - .add(R.id.fragmentContainer, new QuickActionListFragment(), QuickActionListFragment.TAG) - .addToBackStack(QuickActionListFragment.TAG).commitAllowingStateLoss(); - } else { - CreateEditActionDialog dialog = CreateEditActionDialog.newInstance(action.id); - dialog.show(fm, AddQuickActionDialog.TAG); - } + FragmentManager fm = ((AppCompatActivity) getContext()).getSupportFragmentManager(); + if (action instanceof NewAction) { + fm.beginTransaction() + .add(R.id.fragmentContainer, new QuickActionListFragment(), QuickActionListFragment.TAG) + .addToBackStack(QuickActionListFragment.TAG).commitAllowingStateLoss(); + } else { + CreateEditActionDialog dialog = CreateEditActionDialog.newInstance(action.id); + dialog.show(fm, AddQuickActionDialog.TAG); + } return true; } });