Uploaded image for project: 'Crosswalk Project'
  1. Crosswalk Project
  2. XWALK-7214

Android N: TextureView throws exception in XWalkView constructor

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Won't Fix
    • Affects Version/s: Crosswalk 20, Crosswalk 21
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Android N Developer Preview 5

      Description

      Impacted Cases
      ==============
      Using animatable XWalkView with Android N.

      Reproduce Test Steps
      ====================
      XWalkPreferences.setValue(XWalkPreferences.ANIMATABLE_XWALK_VIEW, true);
      new XWalkView(this)

      Expected Outcome
      ================
      No crash/exception.

      Actual Outcome
      ==============
      java.lang.RuntimeException: java.lang.UnsupportedOperationException: TextureView doesn't support displaying a background drawable
      at org.xwalk.core.ReflectConstructor.newInstance(ReflectConstructor.java:54)
      at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:1882)
      at org.xwalk.core.XWalkView.<init>(XWalkView.java:340)
      Caused by: java.lang.UnsupportedOperationException: TextureView doesn't support displaying a background drawable
      at android.view.TextureView.setBackgroundDrawable(TextureView.java:302)
      at android.view.View.setBackground(View.java:18120)
      at android.view.View.setBackgroundColor(View.java:18082)
      at org.chromium.content.browser.ContentViewRenderView.initTextureView(ContentViewRenderView.java:68)
      at org.chromium.content.browser.ContentViewRenderView.<init>(ContentViewRenderView.java:145)
      at org.xwalk.core.internal.XWalkContent$2.<init>(XWalkContent.java:177)
      at org.xwalk.core.internal.XWalkContent.setNativeContent(XWalkContent.java:177)
      at org.xwalk.core.internal.XWalkContent.<init>(XWalkContent.java:136)
      at org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(XWalkViewInternal.java:441)
      at org.xwalk.core.internal.XWalkViewInternal.<init>(XWalkViewInternal.java:386)
      at org.xwalk.core.internal.XWalkViewBridge.<init>(XWalkViewBridge.java:80)
      at java.lang.reflect.Constructor.newInstance0(Native Method)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
      at org.xwalk.core.ReflectConstructor.newInstance(ReflectConstructor.java:48)
      at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:1882) 
      at org.xwalk.core.XWalkView.<init>(XWalkView.java:340) 

      Test Case Source Code
      =====================

      Test Builds
      ===========
      20.50.533.12 failed
      21.51.546.3 failed

      Issue Analysis
      ==============
      android.view.TextireView.setBackgroundColor / setBackground / setBackgroundDrawable seems not to be supported on Android N

        Attachments

        1. AndroidManifest.xml
          0.9 kB
        2. build.gradle
          0.6 kB
        3. build.gradle
          0.7 kB
        4. Crosswalk-help Crosswalk 23 to be our last release.msg
          62 kB
        5. device-2016-08-08-162500.png
          device-2016-08-08-162500.png
          78 kB
        6. log.txt
          14 kB
        7. MainActivity.java
          0.6 kB

          Issue Links

            Activity

              People

              • Assignee:
                xzhan96 Zhang Xiaofeng (Inactive)
                Reporter:
                Julian Julian Dropmann (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: