forked from organicmaps/organicmaps
[android] Renamed method for setup navigation icon listener
This commit is contained in:
parent
5db693c5ea
commit
135a638873
4 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ public abstract class BaseMwmListFragment extends ListFragment
|
|||
mToolbar = view.findViewById(R.id.toolbar);
|
||||
if (mToolbar != null)
|
||||
{
|
||||
UiUtils.setupNavigationUpListener(mToolbar, v -> Utils.navigateToParent(getActivity()));
|
||||
UiUtils.setupNavigationIcon(mToolbar, v -> Utils.navigateToParent(getActivity()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ public abstract class BaseMwmRecyclerFragment<T extends RecyclerView.Adapter> ex
|
|||
|
||||
mToolbar = view.findViewById(R.id.toolbar);
|
||||
if (mToolbar != null)
|
||||
UiUtils.setupNavigationUpListener(mToolbar, mNavigationClickListener);
|
||||
UiUtils.setupNavigationIcon(mToolbar, mNavigationClickListener);
|
||||
|
||||
mRecycler = view.findViewById(R.id.recycler);
|
||||
if (mRecycler == null)
|
||||
|
|
|
@ -29,7 +29,7 @@ public class ToolbarController
|
|||
|
||||
if (useExtendedToolbar())
|
||||
UiUtils.extendViewWithStatusBar(getToolbar());
|
||||
UiUtils.setupNavigationUpListener(mToolbar, mNavigationClickListener);
|
||||
UiUtils.setupNavigationIcon(mToolbar, mNavigationClickListener);
|
||||
setSupportActionBar();
|
||||
}
|
||||
|
||||
|
|
|
@ -476,8 +476,8 @@ public final class UiUtils
|
|||
window.setStatusBarColor(ContextCompat.getColor(activity, statusBarColor));
|
||||
}
|
||||
|
||||
public static void setupNavigationUpListener(@NonNull Toolbar toolbar,
|
||||
@NonNull View.OnClickListener listener)
|
||||
public static void setupNavigationIcon(@NonNull Toolbar toolbar,
|
||||
@NonNull View.OnClickListener listener)
|
||||
{
|
||||
View customNavigationButton = toolbar.findViewById(R.id.back);
|
||||
if (customNavigationButton != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue