Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface InteractionListener {
- void setToolbarTitle(@StringRes int title);
- }
- @Override
- public void setToolbarTitle(@StringRes int title) {
- if (getSupportActionBar() != null) {
- getSupportActionBar().setTitle(title);
- }
- }
- @Override
- public void onStart() {
- super.onStart();
- listener.setToolbarTitle(title);
- }
Add Comment
Please, Sign In to add comment