use of android.app.FragmentManager in project android_frameworks_base by crdroidandroid.
the class BaseActivity method reloadSearch.
private void reloadSearch(String query) {
FragmentManager fm = getFragmentManager();
RootInfo root = getCurrentRoot();
DocumentInfo cwd = getCurrentDirectory();
DirectoryFragment.reloadSearch(fm, root, cwd, query);
}
use of android.app.FragmentManager in project meatspace-android by RomainPiel.
the class MainActivity method showSettings.
/**
* show settings dialog
*/
private void showSettings() {
FragmentManager fm = getFragmentManager();
new SettingsFragment().show(fm, null);
}
use of android.app.FragmentManager in project RxPermissions by tbruyelle.
the class RxPermissions method getRxPermissionsFragment.
private RxPermissionsFragment getRxPermissionsFragment(Activity activity) {
RxPermissionsFragment rxPermissionsFragment = findRxPermissionsFragment(activity);
boolean isNewInstance = rxPermissionsFragment == null;
if (isNewInstance) {
rxPermissionsFragment = new RxPermissionsFragment();
FragmentManager fragmentManager = activity.getFragmentManager();
fragmentManager.beginTransaction().add(rxPermissionsFragment, TAG).commitAllowingStateLoss();
fragmentManager.executePendingTransactions();
}
return rxPermissionsFragment;
}
use of android.app.FragmentManager in project AvoidOnResult by AnotherJack.
the class AvoidOnResult method getAvoidOnResultFragment.
private AvoidOnResultFragment getAvoidOnResultFragment(Activity activity) {
AvoidOnResultFragment avoidOnResultFragment = findAvoidOnResultFragment(activity);
if (avoidOnResultFragment == null) {
avoidOnResultFragment = new AvoidOnResultFragment();
FragmentManager fragmentManager = activity.getFragmentManager();
fragmentManager.beginTransaction().add(avoidOnResultFragment, TAG).commitAllowingStateLoss();
fragmentManager.executePendingTransactions();
}
return avoidOnResultFragment;
}
use of android.app.FragmentManager in project Klyph by jonathangerbaud.
the class DonateActivity method onActivityResult.
/**
* Needed for Google Play In-app Billing. It uses
* startIntentSenderForResult(). The result is not propagated to the
* Fragment like in startActivityForResult(). Thus we need to propagate
* manually to our Fragment.
*
* @param requestCode
* @param resultCode
* @param data
*/
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
FragmentManager fragmentManager = getFragmentManager();
Fragment fragment = fragmentManager.findFragmentByTag("donationsFragment");
if (fragment != null) {
((DonateFragment) fragment).onActivityResult(requestCode, resultCode, data);
}
}
Aggregations