Called Init Native Framework In AA
Signed-off-by: Priyank Shankar <shankarpriyank312002@gmail.com>
This commit is contained in:
parent
ba402a4e26
commit
be29292128
2 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
|
|
|
@ -194,7 +194,7 @@ public class MwmApplication extends Application implements AppBackgroundTracker.
|
|||
StorageUtils.requireDirectory(tempPath);
|
||||
}
|
||||
|
||||
private void initNativeFramework()
|
||||
public void initNativeFramework()
|
||||
{
|
||||
if (mFrameworkInitialized)
|
||||
return;
|
||||
|
|
Reference in a new issue