use of nodomain.freeyourgadget.gadgetbridge.activities.ActivitySummariesChartFragment in project Gadgetbridge by Freeyourgadget.
the class ActivityListingDetail method onViewCreated.
@Override
public void onViewCreated(final View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
int tsFrom = getArguments().getInt("tsFrom");
int tsTo = getArguments().getInt("tsTo");
ActivitySession item = (ActivitySession) getArguments().getSerializable("item");
GBDevice gbDevice;
gbDevice = getArguments().getParcelable(GBDevice.EXTRA_DEVICE);
if (gbDevice == null) {
throw new IllegalArgumentException("Must provide a device when invoking this activity");
}
final ActivitySummariesChartFragment activitySummariesChartFragment = new ActivitySummariesChartFragment();
getChildFragmentManager().beginTransaction().replace(R.id.chartsFragmentHolder, activitySummariesChartFragment).commit();
activitySummariesChartFragment.setDateAndGetData(gbDevice, tsFrom, tsTo);
ActivityListingAdapter stepListAdapter = new ActivityListingAdapter(getContext());
View activityItem = view.findViewById(R.id.activityItemHolder);
stepListAdapter.fill_item(item, 0, activityItem, null);
}
Aggregations