use of com.orgzly.android.ui.notes.query.search.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).getCurrentQuery();
} else if (af != null && af.isVisible()) {
return ((AgendaFragment) af).getCurrentQuery();
}
return null;
}
Aggregations