Search in sources :

Example 1 with OnActivityResultListener

use of com.android.settings.core.OnActivityResultListener in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class SettingsActivity method onActivityResult.

@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    final List<Fragment> fragments = getSupportFragmentManager().getFragments();
    if (fragments != null) {
        for (Fragment fragment : fragments) {
            if (fragment instanceof OnActivityResultListener) {
                fragment.onActivityResult(requestCode, resultCode, data);
            }
        }
    }
}
Also used : OnActivityResultListener(com.android.settings.core.OnActivityResultListener) Fragment(androidx.fragment.app.Fragment)

Example 2 with OnActivityResultListener

use of com.android.settings.core.OnActivityResultListener in project android_packages_apps_Settings by omnirom.

the class SettingsActivity method onActivityResult.

@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    final List<Fragment> fragments = getSupportFragmentManager().getFragments();
    if (fragments != null) {
        for (Fragment fragment : fragments) {
            if (fragment instanceof OnActivityResultListener) {
                fragment.onActivityResult(requestCode, resultCode, data);
            }
        }
    }
}
Also used : OnActivityResultListener(com.android.settings.core.OnActivityResultListener) Fragment(androidx.fragment.app.Fragment)

Aggregations

Fragment (androidx.fragment.app.Fragment)2 OnActivityResultListener (com.android.settings.core.OnActivityResultListener)2