dimagi/commcare-odk — pull request #68 by orangejenny (2014-11-03 07:22:27+00:00)
Title: Drop usage of new LayoutParams constructor

Fix for FB 144840.

Pre-KitKat devices are crashing because they don't have the constructor "public LinearLayout.LayoutParams (LinearLayout.LayoutParams source)"

Fixing by adding cast so the constructor "public LinearLayout.LayoutParams (ViewGroup.LayoutParams p)" will be used instead.

See http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#LinearLayout.LayoutParams(android.view.ViewGroup.LayoutParams)

and http://stackoverflow.com/questions/21200522/android-java-lang-nosuchmethoderror-on-linearlayoutlayoutparams-init