mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-20 06:47:06 -04:00
Use activity context in AppDetails, fixes #388
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user