Ali Nawaz
Ali Nawaz

Reputation: 2500

How to access getSupportFragmentManager in ComponentActivity?

I want access getSupportFragmentManager in ComponentActivity. Working with jetpack compose and I need to use a fragment which is available from a third party SDk.

Any help/clue is much appreciated. Thanks

Upvotes: 4

Views: 3721

Answers (1)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 364371

You have to extend AppCompatActivity or FragmentActivity instead of ComponentActivity.

Upvotes: 6

Related Questions