Answer the question
In order to leave comments, you need to log in
How to return from with a fragment in another activity that called it?
There are two activities containing lists. From these two lists, you can open the element itself, i.e. a separate activity with a fragment . It turns out that an activity with a fragment can have two entry points, either one list or another.
How to find out from which list we came from, so that we can return to it?
Answer the question
In order to leave comments, you need to log in
In theory, you just close the current activity and it returns to the previous activity.
Those. all you need is
getActivity().finish();
Twig is a great templating engine that even has a js implementation . The only thing I don't like is the _how_ it was implemented in yii2.
use in templates looks somehow off topic. :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question