From bfcd88ebb2596575af84c37fd3c847162ce2d534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 25 Aug 2015 21:21:35 -0700 Subject: [PATCH] Use activity context in AppDetails, fixes #388 --- F-Droid/src/org/fdroid/fdroid/AppDetails.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/F-Droid/src/org/fdroid/fdroid/AppDetails.java b/F-Droid/src/org/fdroid/fdroid/AppDetails.java index 04df20534..134ddf0e8 100644 --- a/F-Droid/src/org/fdroid/fdroid/AppDetails.java +++ b/F-Droid/src/org/fdroid/fdroid/AppDetails.java @@ -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);