From 645fa70055ac96fd8a2acee3b8215fb3dfa6ae11 Mon Sep 17 00:00:00 2001 From: Kirlif Date: Wed, 20 Mar 2024 10:30:18 +0100 Subject: [PATCH] fix: determination of the base module --- src/main/java/com/reandroid/apk/ApkModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/reandroid/apk/ApkModule.java b/src/main/java/com/reandroid/apk/ApkModule.java index 4b8e42783..bc8330aec 100644 --- a/src/main/java/com/reandroid/apk/ApkModule.java +++ b/src/main/java/com/reandroid/apk/ApkModule.java @@ -459,7 +459,7 @@ public boolean isBaseModule(){ AndroidManifestBlock manifest; try { manifest= getAndroidManifest(); - return manifest.getMainActivity()!=null; + return !(manifest.isSplit() || manifest.getMainActivity()==null); } catch (Exception ignored) { return false; }