Use activity context in AppDetails, fixes #388

This commit is contained in:
Daniel Martí 2015-08-25 21:21:35 -07:00
parent 752c7c7022
commit bfcd88ebb2

View File

@ -1644,7 +1644,7 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
// the last opportunity to set the list adapter. As such, we use the headerView
// as a mechanism to optionally allow adding a header in the future.
if (headerView == null) {
headerView = new FrameLayout(getActivity().getApplicationContext());
headerView = new FrameLayout(getActivity());
headerView.setId(R.id.appDetailsSummaryHeader);
} else {
Fragment summaryFragment = getChildFragmentManager().findFragmentByTag(SUMMARY_TAG);