jmonkeyengine icon indicating copy to clipboard operation
jmonkeyengine copied to clipboard

AndroidHarnessFragment extends android.app.Fragment, android requires it to extend androidx.app.fragment.Fragment to use commitNow()

Open BharSat opened this issue 3 years ago • 4 comments

BharSat avatar May 04 '22 06:05 BharSat

Thank you for reporting this issue.

stephengold avatar May 04 '22 07:05 stephengold

I am really sorry I made a small mistake in the title (with potentially large consequences). to use function commitNow(), the class / Fragment needs to extend androidx.fragment.app.Fragment

BharSat avatar May 04 '22 07:05 BharSat

@BharSat I am still in the process of adding Androidx jetpack compose compatibility, so no worry, it might be available as of next releases....in the current time you might try JmeSurfaceView on androidx fragment, but after solving the package issue #1803 , if you would like i will ping you here when they are available !

pavly-gerges avatar May 04 '22 10:05 pavly-gerges