save app context to avoid leaking activity
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013 Hannes Janetzek
|
* Copyright 2013 Hannes Janetzek
|
||||||
|
* Copyright 2016 Stephan Leuschner
|
||||||
*
|
*
|
||||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||||
*
|
*
|
||||||
@@ -31,7 +32,7 @@ public class AndroidAssets extends AssetAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private AndroidAssets(Context ctx) {
|
private AndroidAssets(Context ctx) {
|
||||||
mContext = ctx;
|
mContext = ctx.getApplicationContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user