Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: xueqiushi <[email protected]>
  • Loading branch information
alhah committed Mar 19, 2019
1 parent 4a0ad08 commit 9a1a770
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions relinker/src/main/java/com/getkeepsafe/relinker/ReLinker.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package com.getkeepsafe.relinker;

import android.content.Context;
import android.os.Build;

import java.io.File;

Expand Down Expand Up @@ -67,6 +68,10 @@ public static void loadLibrary(final Context context,
final String library,
final String version,
final ReLinker.LoadListener listener) {
if ((Build.VERSION.SDK_INT < Build.VERSION_CODES.M)) {
new ReLinkerInstance().force().loadLibrary(context, library, null, listener);
return;
}
new ReLinkerInstance().loadLibrary(context, library, version, listener);
}

Expand Down

0 comments on commit 9a1a770

Please sign in to comment.