diff options
author | alexzatsepin <az@mapswithme.com> | 2020-08-24 19:26:03 +0300 |
---|---|---|
committer | Maksim Andrianov <maksimandrianov1@gmail.com> | 2020-09-14 13:36:46 +0300 |
commit | 7df2aa7f563aed43e6cd3882e708a6b6cdf87db8 (patch) | |
tree | b710204e393943ee1b0e014ac6403404daa2d45e /android/src/com/mapswithme/maps/editor | |
parent | b7496adc7283717a2a67d9f1eabd66c6913f90f9 (diff) |
[android] Made toolbar controller detachable
Diffstat (limited to 'android/src/com/mapswithme/maps/editor')
-rw-r--r-- | android/src/com/mapswithme/maps/editor/AuthFragment.java | 2 | ||||
-rw-r--r-- | android/src/com/mapswithme/maps/editor/EditorHostFragment.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/android/src/com/mapswithme/maps/editor/AuthFragment.java b/android/src/com/mapswithme/maps/editor/AuthFragment.java index 9eb6abb614..600a4f912c 100644 --- a/android/src/com/mapswithme/maps/editor/AuthFragment.java +++ b/android/src/com/mapswithme/maps/editor/AuthFragment.java @@ -42,7 +42,7 @@ public class AuthFragment extends BaseMwmToolbarFragment @Override protected ToolbarController onCreateToolbarController(@NonNull View root) { - return new ToolbarController(root, getActivity()) + return new ToolbarController(root, requireActivity()) { @Override public void onUpClick() diff --git a/android/src/com/mapswithme/maps/editor/EditorHostFragment.java b/android/src/com/mapswithme/maps/editor/EditorHostFragment.java index ea92a99d49..c44973e7f9 100644 --- a/android/src/com/mapswithme/maps/editor/EditorHostFragment.java +++ b/android/src/com/mapswithme/maps/editor/EditorHostFragment.java @@ -156,7 +156,7 @@ public class EditorHostFragment extends BaseMwmToolbarFragment @Override protected ToolbarController onCreateToolbarController(@NonNull View root) { - return new SearchToolbarController(root, getActivity()) + return new SearchToolbarController(root, requireActivity()) { @Override protected void onTextChanged(String query) |