Fix AppEntry.extraInfo ClassCastException

AppEntry's extraInfo is an Object class, force cast it to Boolean may
cause ClassCastException.

Bug: 279639370
Bug: 279333773
Test: local test
Change-Id: Ie135d9a49fdac6623f6b29a13ddf83896a911712
Merged-In: Iccbe9b669011c5061f1c8b3998632f05fbd8a02f
This commit is contained in:
Zoey Chen
2023-04-27 03:46:50 +00:00
parent c31cf3d3b4
commit fa5ea719de

View File

@@ -83,7 +83,7 @@ public class AppStateLocaleBridge extends AppStateBaseBridge {
Log.d(TAG, "[" + entry.info.packageName + "]" + " has No extra info.");
return false;
}
return (Boolean) entry.extraInfo;
return entry.extraInfo == Boolean.TRUE;
}
};