Skip to content

Commit 7cc380c

Browse files
committed
Simplify and fix split configs detection
1 parent 4429c52 commit 7cc380c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/java-runtime/java/mono/android/MonoPackageManager.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,7 @@ public static void LoadApplication (Context context, ApplicationInfo runtimePack
5858
// Should the order change here, src/monodroid/jni/SharedConstants.hh must be updated accordingly
5959
//
6060
String[] appDirs = new String[] {filesDir, cacheDir, dataDir};
61-
boolean haveSplitApks = false;
62-
63-
if (android.os.Build.VERSION.SDK_INT >= 21) {
64-
if (runtimePackage.splitSourceDirs != null) {
65-
haveSplitApks = runtimePackage.splitSourceDirs.length > 1;
66-
}
67-
}
61+
boolean haveSplitApks = runtimePackage.splitSourceDirs != null && runtimePackage.splitSourceDirs.length > 0;
6862

6963
//
7064
// Preload DSOs libmonodroid.so depends on so that the dynamic

0 commit comments

Comments
 (0)