forked from upstream-mirrors/OpenTracks
Bugfix: application context does not provide access to theme attributes.
This commit is contained in:
@@ -23,7 +23,7 @@ public class AggregatedStatisticsActivity extends AbstractActivity {
|
|||||||
final AggregatedStatisticsModel viewModel = new ViewModelProvider(this).get(AggregatedStatisticsModel.class);
|
final AggregatedStatisticsModel viewModel = new ViewModelProvider(this).get(AggregatedStatisticsModel.class);
|
||||||
viewModel.getAggregatedStats().observe(this, aggregatedStatistics -> {
|
viewModel.getAggregatedStats().observe(this, aggregatedStatistics -> {
|
||||||
if (aggregatedStatistics != null) {
|
if (aggregatedStatistics != null) {
|
||||||
adapter = new AggregatedStatisticsAdapter(getApplicationContext(), aggregatedStatistics);
|
adapter = new AggregatedStatisticsAdapter(this, aggregatedStatistics);
|
||||||
listView.setAdapter(adapter);
|
listView.setAdapter(adapter);
|
||||||
}
|
}
|
||||||
adapter.notifyDataSetChanged();
|
adapter.notifyDataSetChanged();
|
||||||
|
|||||||
Reference in New Issue
Block a user