small fixes

This commit is contained in:
Nazar-Kutz 2020-05-14 16:35:05 +03:00
parent 7095ecea2f
commit 377a892cf2

View file

@ -251,7 +251,7 @@ public class QuickActionsWidget extends LinearLayout {
@Override
public boolean onLongClick(View v) {
FragmentManager fm = ((AppCompatActivity) getContext()).getSupportFragmentManager();
if (action instanceof NewAction) {
if (action instanceof NewAction) {
fm.beginTransaction()
.add(R.id.fragmentContainer, new QuickActionListFragment(), QuickActionListFragment.TAG)
.addToBackStack(QuickActionListFragment.TAG).commitAllowingStateLoss();