[Nexus 7 Android Development] powerpoint45:
getting some errors in logcat on my rom(4.2 CyanogenMod) for the Kindle Fire 2 when enabling tablet mode. When I try to lift status bar thing i get this and systemui fc's:

D/OpenGLRenderer( 1808): Enabling debug mode 0
D/AndroidRuntime( 1808): Shutting down VM
W/dalvikvm( 1808): threadid=1: thread exiting with uncaught exception (group=0x41c2b930)
E/AndroidRuntime( 1808): FATAL EXCEPTION: main
E/AndroidRuntime( 1808): java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.RelativeLayout
E/AndroidRuntime( 1808): at com.android.systemui.statusbar.policy.DateView.onDraw(DateView.java:91)
E/AndroidRuntime( 1808): at android.view.View.draw(View.java:13707)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12645)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12689)
E/AndroidRuntime( 1808): at android.view.View.draw(View.java:13423)
E/AndroidRuntime( 1808): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
E/AndroidRuntime( 1808): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12643)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12689)
E/AndroidRuntime( 1808): at android.view.View.draw(View.java:13423)
E/AndroidRuntime( 1808): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
E/AndroidRuntime( 1808): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
E/AndroidRuntime( 1808): at android.view.View.draw(View.java:13710)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12645)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12689)
E/AndroidRuntime( 1808): at android.view.View.draw(View.java:13423)
E/AndroidRuntime( 1808): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
E/AndroidRuntime( 1808): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
E/AndroidRuntime( 1808): at android.view.View.draw(View.java:13710)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12645)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12689)
E/AndroidRuntime( 1808): at android.view.View.draw(View.java:13423)
E/AndroidRuntime( 1808): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
E/AndroidRuntime( 1808): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
E/AndroidRuntime( 1808): at android.view.View.draw(View.java:13710)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12645)
E/AndroidRuntime( 1808): at android.view.View.getHardwareLayerDisplayList(View.java:12674)
E/AndroidRuntime( 1808): at android.view.View.getHardwareLayer(View.java:12401)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12614)
E/AndroidRuntime( 1808): at android.view.View.getDisplayList(View.java:12689)
E/AndroidRuntime( 1808): at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1198)
E/AndroidRuntime( 1808): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2173)
E/AndroidRuntime( 1808): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2045)
E/AndroidRuntime( 1808): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1854)
E/AndroidRuntime( 1808): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
E/AndroidRuntime( 1808): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
E/AndroidRuntime( 1808): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
E/AndroidRuntime( 1808): at android.view.Choreographer.doCallbacks(Choreographer.java:562)
E/AndroidRuntime( 1808): at android.view.Choreographer.doFrame(Choreographer.java:532)
E/AndroidRuntime( 1808): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
E/AndroidRuntime( 1808): at android.os.Handler.handleCallback(Handler.java:725)
E/AndroidRuntime( 1808): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 1808): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1808): at android.app.ActivityThread.main(ActivityThread.java:5191)
E/AndroidRuntime( 1808): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1808): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1808): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 1808): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( 1808): at dalvik.system.NativeStart.main(Native Method)

I have been changing these files so far trying to get it to work:

file ******************************************************************************* estimated line #

frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java #1269-1287

frameworks/base/services/java/com/android/server/wm/WindowsManagerService.java #6839

frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavbarEditor.java #179

packages/apps/Settings/src/com/android/settings/Utils.java #653

frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java #1132

i