mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-24 08:25:00 -04:00
Use the same fragment id for portrait & landscape
To refresh the header, we retrieve the fragment from its id. But the landscape layout used another id for the same fragment, so it could not be retrieved, leading to a NullPointerException in landscape. Therefore, use the same fragment id as in the portrait layout.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<fragment
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/landscape_header"
|
||||
android:id="@+id/header"
|
||||
android:name="org.fdroid.fdroid.AppDetails$AppDetailsHeaderFragment"
|
||||
tools:layout="@layout/app_details_header"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user