Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a652a44 authored by Jason Monk's avatar Jason Monk
Browse files

Make plugins have an application context

So things that use them don't crash.

Test: Plugin that uses getApplicationContext
Change-Id: I8673cb95544280f593479b014cd2620c2d02bf80
parent d371f982
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -305,6 +305,11 @@ public class PluginInstanceManager<T extends Plugin> {
            }
            }
            return getBaseContext().getSystemService(name);
            return getBaseContext().getSystemService(name);
        }
        }

        @Override
        public Context getApplicationContext() {
            return this;
        }
    }
    }


    private static class PluginInfo<T> {
    private static class PluginInfo<T> {