save app context to avoid leaking activity

This commit is contained in:
Stephan Leuschner
2016-08-08 21:47:42 -04:00
committed by Emux
parent 1db23decca
commit 136c323a75

View File

@@ -1,5 +1,6 @@
/*
* Copyright 2013 Hannes Janetzek
* Copyright 2016 Stephan Leuschner
*
* 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) {
mContext = ctx;
mContext = ctx.getApplicationContext();
}
@Override