Open koncinar opened 7 months ago
Inspecting the stack trace and your code it seems that the SurveyFragment is expecting the LinearLayout with id
In the layout/wootric_footer.xml:36 it's present:
<LinearLayout android:id="@+id/wootric_powered_by" ...
While in the same file for large devices layout-sw600dp/wootric_footer.xml:10 the same layout has a different id:
<LinearLayout android:id="@+id/wootric_layout_powered_by" ...
Which then causes this code in the SurveyFragment.java:148 to return null and later cause a NPE.
mPoweredBy = (LinearLayout) view.findViewById(R.id.wootric_powered_by);
Note that wootric_layout_powered_by
is being used in SurveyLayoutTablet.java:261, so it can't simply be removed.
mPoweredByLayout = (LinearLayout) findViewById(R.id.wootric_layout_powered_by);
Our app is crashing on large devices (tablets and foldable) with the following stack trace:
The crash happens as soon as the survey is started.
We configure Wootric in the following way: