use of androidx.appcompat.app.AppCompatActivity 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.AppCompatActivity 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.AppCompatActivity in project prebid-mobile-android by prebid.
the class PrebidServerSettingsViewholder method openPrebidServerDialog.
private void openPrebidServerDialog() {
FragmentManager fragmentManager = ((AppCompatActivity) itemView.getContext()).getSupportFragmentManager();
PrebidServerDialog dialog = PrebidServerDialog.newInstance();
dialog.show(fragmentManager, PrebidServerDialog.TAG);
}
use of androidx.appcompat.app.AppCompatActivity in project prebid-mobile-android by prebid.
the class PrebidServerSettingsViewholder method openInputDialog.
private void openInputDialog(String title, int type, int format, boolean shouldShowQrScanner) {
FragmentManager fragmentManager = ((AppCompatActivity) itemView.getContext()).getSupportFragmentManager();
InputDialog dialog = InputDialog.newInstance(title, type, format, shouldShowQrScanner);
dialog.show(fragmentManager, InputDialog.TAG);
}
use of androidx.appcompat.app.AppCompatActivity 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);
}
}
}
Aggregations