use of com.orgzly.android.ui.fragments.SearchFragment in project orgzly-android by orgzly.
the class DisplayManager method getDisplayedQuery.
public static String getDisplayedQuery(FragmentManager fragmentManager) {
Fragment qf = fragmentManager.findFragmentByTag(SearchFragment.FRAGMENT_TAG);
Fragment af = fragmentManager.findFragmentByTag(AgendaFragment.FRAGMENT_TAG);
if (qf != null && qf.isVisible()) {
return ((SearchFragment) qf).getQuery();
} else if (af != null && af.isVisible()) {
return ((AgendaFragment) af).getQuery();
}
return null;
}
Aggregations