Fixed weird crash on emulator
This commit is contained in:
parent
628d684ab9
commit
793bd618ac
@ -34,6 +34,8 @@ public class CompatibilityChecker extends Compatibility {
|
|||||||
logMsg.append("Available device features:");
|
logMsg.append("Available device features:");
|
||||||
features = new HashSet<String>();
|
features = new HashSet<String>();
|
||||||
if (pm != null) {
|
if (pm != null) {
|
||||||
|
final FeatureInfo[] featureArray = pm.getSystemAvailableFeatures();
|
||||||
|
if (featureArray != null)
|
||||||
for (FeatureInfo fi : pm.getSystemAvailableFeatures()) {
|
for (FeatureInfo fi : pm.getSystemAvailableFeatures()) {
|
||||||
features.add(fi.name);
|
features.add(fi.name);
|
||||||
logMsg.append('\n');
|
logMsg.append('\n');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user