Simplify context retrieving in GPLWaiverDialogFragment, Application context is not necessary in this case.
This commit is contained in:
parent
4b86d80408
commit
f162088238
|
@ -44,7 +44,7 @@ public final class GPLWaiverDialogFragment extends DialogFragment
|
||||||
final File[] libs = new File(getActivity().getApplicationInfo().dataDir, "/cores").listFiles();
|
final File[] libs = new File(getActivity().getApplicationInfo().dataDir, "/cores").listFiles();
|
||||||
for (final File lib : libs)
|
for (final File lib : libs)
|
||||||
{
|
{
|
||||||
ModuleWrapper module = new ModuleWrapper(getActivity().getApplicationContext(), lib);
|
ModuleWrapper module = new ModuleWrapper(getActivity(), lib);
|
||||||
|
|
||||||
boolean gplv3 = module.getCoreLicense().equals("GPLv3");
|
boolean gplv3 = module.getCoreLicense().equals("GPLv3");
|
||||||
boolean gplv2 = module.getCoreLicense().equals("GPLv2");
|
boolean gplv2 = module.getCoreLicense().equals("GPLv2");
|
||||||
|
|
Loading…
Reference in New Issue