use of androidx.appcompat.app.ActionBar in project Taskbar by farmerbb.
the class AboutFragment method onActivityCreated.
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
AppCompatActivity activity = (AppCompatActivity) getActivity();
activity.setTitle(((MainActivity) getActivity()).getAboutFragmentTitle());
ActionBar actionBar = activity.getSupportActionBar();
if (actionBar != null)
actionBar.setDisplayHomeAsUpEnabled(((MainActivity) getActivity()).getAboutFragmentBackArrow());
}
use of androidx.appcompat.app.ActionBar in project Taskbar by farmerbb.
the class DesktopModeFragment method onActivityCreated.
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
AppCompatActivity activity = (AppCompatActivity) getActivity();
activity.setTitle(R.string.tb_pref_header_desktop_mode);
ActionBar actionBar = activity.getSupportActionBar();
if (actionBar != null)
actionBar.setDisplayHomeAsUpEnabled(true);
}
use of androidx.appcompat.app.ActionBar in project prebid-mobile-android by prebid.
the class InfoActivity method onCreate.
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_info);
mWebView = findViewById(R.id.web_view);
Bundle extras = getIntent().getExtras();
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
}
if (extras != null && extras.containsKey(EXTRA_TITLE) && extras.containsKey(EXTRA_HTML_CONTENT)) {
setupUI(extras.getString(EXTRA_TITLE), extras.getString(EXTRA_HTML_CONTENT));
} else {
finish();
}
}
use of androidx.appcompat.app.ActionBar in project LabDayApp by jakdor.
the class TimetableFragment method onResume.
@Override
public void onResume() {
super.onResume();
if (testMode)
return;
if (getActivity() != null) {
ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();
if (actionBar != null) {
actionBar.show();
actionBar.setTitle(R.string.menu_title_timetable);
}
}
}
use of androidx.appcompat.app.ActionBar in project nextcloud-notes by stefan-niedermann.
the class AppendToNoteActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
receivedText = ShareUtil.extractSharedText(getIntent());
@Nullable final ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
getSupportActionBar().setTitle(R.string.append_to_note);
} else {
Log.e(TAG, "SupportActionBar is null. Expected toolbar to be present to set a title.");
}
binding.activityNotesListView.searchToolbar.setSubtitle(receivedText);
}
Aggregations