Skip to content

Commit

Permalink
fix: correction #447
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinPostindustria committed May 18, 2022
1 parent 8b72555 commit 0797cd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.prebid.mobile.rendering.sdk;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import androidx.annotation.Nullable;
import org.prebid.mobile.LogUtil;
Expand Down Expand Up @@ -31,7 +31,7 @@ public static void init(
return;
}

if (context instanceof Activity) {
if (!(context instanceof Application)) {
Context applicationContext = context.getApplicationContext();
if (applicationContext != null) {
context = applicationContext;
Expand Down

0 comments on commit 0797cd4

Please sign in to comment.