
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.