[android] Renamed method for setup navigation icon listener

This commit is contained in:
alexzatsepin 2020-08-03 18:02:21 +03:00 committed by Arsentiy Milchakov
parent 5db693c5ea
commit 135a638873
4 changed files with 5 additions and 5 deletions

View file

@ -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()));
}
}

View file

@ -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)

View file

@ -29,7 +29,7 @@ public class ToolbarController
if (useExtendedToolbar())
UiUtils.extendViewWithStatusBar(getToolbar());
UiUtils.setupNavigationUpListener(mToolbar, mNavigationClickListener);
UiUtils.setupNavigationIcon(mToolbar, mNavigationClickListener);
setSupportActionBar();
}

View file

@ -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)