@Override public void setTitle(CharSequence title) { super.setTitle(title); setTaskTitle(title); }
@Override public void setTitle(CharSequence title) { super.setTitle(title); ActionBar t = getSupportActionBar(); if (t != null) t.setTitle(title); }
@Override public void setTitle(CharSequence title) { super.setTitle(title); mTitleWebview.setTitleText(title); } }
@Override public void setTitle(@StringRes int titleId) { super.setTitle(titleId); ActionBar t = getSupportActionBar(); if (t != null) t.setTitle(titleId); }
@Override public void setTitle(CharSequence title) { super.setTitle(title); mTitleWebview.setTitleText(title); }
@Override public void setTitle(CharSequence title) { super.setTitle(title); getSupportActionBar().setTitle(title); }
@Override public void setTitle(CharSequence title) { super.setTitle(title); mTextSwitcher.setText(title); mTextSwitcher.setSelected(true); }
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { if (parentActivity.getSupportActionBar() != null) { parentActivity.getSupportActionBar().setDisplayHomeAsUpEnabled(false); parentActivity.getSupportActionBar().setHomeButtonEnabled(false); } parentActivity.setTitle(getString(R.string.app_profiles_tab_title)); setHasOptionsMenu(true); View view = inflater.inflate(R.layout.fragment_profiles, container, false); recyclerView = view.findViewById(R.id.profilesRecyclerView); return view; }
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); parentActivity.setTitle(getString(R.string.blog)); if (parentActivity.getSupportActionBar() != null) { parentActivity.getSupportActionBar().setDisplayHomeAsUpEnabled(true); parentActivity.getSupportActionBar().setHomeButtonEnabled(true); } View view = inflater.inflate(R.layout.fragment_blog, container, false); entryTextView = view.findViewById(R.id.entryTextView); return view; }
@Override public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { parentActivity.setTitle("Recent activity"); if (parentActivity.getSupportActionBar() != null) { parentActivity.getSupportActionBar().setDisplayHomeAsUpEnabled(true); parentActivity.getSupportActionBar().setHomeButtonEnabled(true); } View view = inflater.inflate(R.layout.fragment_adhell_reports, container, false); setHasOptionsMenu(true); ((MainActivity) Objects.requireNonNull(getActivity())).hideBottomBar(); SharedPreferences sharedPreferences = getActivity().getPreferences(Context.MODE_PRIVATE); Boolean blackTheme = sharedPreferences.getBoolean("blackTheme", false); lastDayBlockedTextView = view.findViewById(R.id.lastDayBlockedTextView); blockedDomainsListView = view.findViewById(R.id.blockedDomainsListView); lastDayInfoTextView = view.findViewById(R.id.lastDayInfoTextView); lastDayInfoTextView.setText("Blocked in the last " + Integer.toString(RecentActivityDays) + " day(s): "); refreshRecentActivity = view.findViewById(R.id.refreshRecentActivity); refreshRecentActivity.setOnRefreshListener(getSwipeRefreshListener()); AdhellReportViewModel adhellReportViewModel = ViewModelProviders.of(getActivity()).get(AdhellReportViewModel.class); adhellReportViewModel.getReportBlockedUrls().observe(this, reportBlockedUrls -> { assert reportBlockedUrls != null; ReportBlockedUrlAdapter reportBlockedUrlAdapter = new ReportBlockedUrlAdapter(Objects.requireNonNull(this.getContext()), reportBlockedUrls); blockedDomainsListView.setAdapter(reportBlockedUrlAdapter); lastDayBlockedTextView.setText(String.valueOf(reportBlockedUrls.size())); reportBlockedUrlAdapter.notifyDataSetChanged(); }); return view; }