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

Commit b368535f authored by Elv1zz's avatar Elv1zz Committed by Tobias Kaminsky (Rebase PR Action)
Browse files

Get application context from context



We try to get the application context from the `Context` instance passed to `AdvancedX509KeyManager`. This mainly fixed the `AbstractIT` instrumented test, but should make things more robust for future use.

Signed-off-by: default avatarElv1zz <elv1zz.git@gmail.com>
parent da3921ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ public class AdvancedX509KeyManager implements X509KeyManager, Application.Activ
    * @param context application context (instance of Activity, Application, or Service)
    */
   public AdvancedX509KeyManager(@NonNull Context context) {
      this.context = context;
      this.context = context.getApplicationContext();
      init();
   }