Upstream version 9.38.204.0
[platform/framework/web/crosswalk.git] / src / xwalk / app / android / runtime_client_embedded_shell / src / org / xwalk / runtime / client / embedded / shell / XWalkRuntimeClientEmbeddedShellActivity.java
index 75a8cc0..c0a7c03 100644 (file)
@@ -124,10 +124,10 @@ public class XWalkRuntimeClientEmbeddedShellActivity extends XWalkRuntimeActivit
 
     @Override
     protected void didTryLoadRuntimeView(View runtimeView) {
-        if (getRuntimeView().get() != null) {
+        if (runtimeView != null) {
             setContentView(R.layout.testshell_activity);
             LinearLayout container = (LinearLayout) findViewById(R.id.content_container);
-            container.addView(getRuntimeView().get(),
+            container.addView(runtimeView,
                               LayoutParams.MATCH_PARENT,
                               LayoutParams.MATCH_PARENT);
             initializeUrlField();