Called Init Native Framework In AA

Signed-off-by: Priyank Shankar <shankarpriyank312002@gmail.com>
This commit is contained in:
Priyank Shankar 2022-06-29 14:54:23 +05:30
parent ba402a4e26
commit be29292128
2 changed files with 3 additions and 2 deletions

View file

@ -60,6 +60,7 @@ public class HelloWorldScreen extends Screen implements SurfaceCallback
try
{
cat.initNativePlatform();
cat.initNativeFramework();
}
catch (IOException e)
{
@ -69,7 +70,7 @@ public class HelloWorldScreen extends Screen implements SurfaceCallback
int w = surfaceContainer.getWidth();
Canvas canvas = null;
if (surfaceContainer.getSurface() != null && MapFragment.nativeIsEngineCreated())
if (surfaceContainer.getSurface() != null)
{
canvas = surfaceContainer.getSurface()
.lockCanvas(new Rect(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE));

View file

@ -194,7 +194,7 @@ public class MwmApplication extends Application implements AppBackgroundTracker.
StorageUtils.requireDirectory(tempPath);
}
private void initNativeFramework()
public void initNativeFramework()
{
if (mFrameworkInitialized)
return;