mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[android] Fix bookmark edits not updating in PP on screen rotation
Resolves #2418 Signed-off-by: savsch <119003089+savsch@users.noreply.github.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
daab819110
commit
362154aedb
@@ -193,6 +193,14 @@ public class EditBookmarkFragment extends BaseMwmDialogFragment implements View.
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttach(@NonNull Context context)
|
||||
{
|
||||
super.onAttach(context);
|
||||
if (mListener == null && getParentFragment() instanceof EditBookmarkListener)
|
||||
mListener = (EditBookmarkListener) getParentFragment();
|
||||
}
|
||||
|
||||
private void initToolbar(View view)
|
||||
{
|
||||
Toolbar toolbar = view.findViewById(R.id.toolbar);
|
||||
|
||||
@@ -127,7 +127,7 @@ public class PlacePageBookmarkFragment extends Fragment implements View.OnClickL
|
||||
EditBookmarkFragment.editBookmark(currentBookmark.getCategoryId(),
|
||||
currentBookmark.getBookmarkId(),
|
||||
activity,
|
||||
activity.getSupportFragmentManager(),
|
||||
getChildFragmentManager(),
|
||||
PlacePageBookmarkFragment.this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user