()
| 65 | export let fragmentClass: any; |
| 66 | |
| 67 | export function ensureFragmentClass() { |
| 68 | if (fragmentClass) { |
| 69 | return; |
| 70 | } |
| 71 | |
| 72 | // this require will apply the FragmentClass implementation |
| 73 | // TODO: circular dependency issue with fragment require - check back on this when testing |
| 74 | // require('./fragment'); |
| 75 | |
| 76 | if (!fragmentClass) { |
| 77 | throw new Error('Failed to initialize the extended androidx.fragment.app.Fragment class'); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | export function setFragmentClass(clazz: any) { |
| 82 | if (fragmentClass) { |
nothing calls this directly
no outgoing calls
no test coverage detected