Skip to content

Instantly share code, notes, and snippets.

@kingjinho
Last active November 30, 2022 12:02
Show Gist options
  • Save kingjinho/7c0ed5220c4671a4ce5f014d2729d115 to your computer and use it in GitHub Desktop.
Save kingjinho/7c0ed5220c4671a4ce5f014d2729d115 to your computer and use it in GitHub Desktop.
FragmentActivity
public class FragmentActivity extends ComponentActivity implements
ActivityCompat.OnRequestPermissionsResultCallback,
ActivityCompat.RequestPermissionsRequestCodeValidator {
...
final FragmentController mFragments = FragmentController.createController(new HostCallbacks());
...
class HostCallbacks extends FragmentHostCallback<FragmentActivity> implements ... {
public HostCallbacks() {
super(FragmentActivity.this /*fragmentActivity*/);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment