forked from upstream-mirrors/OpenTracks
Fixing intiialization before context is available.
This commit is contained in:
@@ -35,7 +35,6 @@ public class AggregatedStatsActivity extends Activity implements
|
|||||||
|
|
||||||
public AggregatedStatsActivity() {
|
public AggregatedStatsActivity() {
|
||||||
this.utils = new StatsUtilities(this);
|
this.utils = new StatsUtilities(this);
|
||||||
this.tracksProvider = MyTracksProviderUtils.Factory.get(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -58,6 +57,8 @@ public class AggregatedStatsActivity extends Activity implements
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
this.tracksProvider = MyTracksProviderUtils.Factory.get(this);
|
||||||
|
|
||||||
// We don't need a window title bar:
|
// We don't need a window title bar:
|
||||||
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||||
setContentView(R.layout.stats);
|
setContentView(R.layout.stats);
|
||||||
|
|||||||
Reference in New Issue
Block a user