Skip to content

Commit e8a68f7

Browse files
committed
Fix resource type variable not being initialized
1 parent a08d5cf commit e8a68f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/apk_installer.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ class ApkReader {
128128
((type ??= getResType(m.group(2)!)) == ResType.FILE) ? int.parse(m.group(3)!, radix: 16) : m.group(3)! );
129129
if (resCodes.isNotEmpty) {
130130
if (DEBUG) log("found RES-VALUES: $resCodes of RES-TYPE: $type for RES-ID: $resId");
131+
//Fix 'type' not resolved in release mode because of the lazy nature of the 'map' function
132+
resCodes.first;
131133
if (type == ResType.COLOR) return Resource(resCodes.map((e)=>e), type!);
132134
//resCodes as Iterable<int>;
133135
String strings = await stringDump;

0 commit comments

Comments
 (0)