Skip to content

Commit

Permalink
Revert "ContraintsHelper: disable check lineagehw feature"
Browse files Browse the repository at this point in the history
This reverts commit 42e4ec3.
  • Loading branch information
iamimmanuelraj committed Feb 13, 2023
1 parent e2ea501 commit 12f5249
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private boolean checkConstraints() {
}
}

/** Check if a system feature is available
// Check if a system feature is available
String rFeature = a.getString(R.styleable.lineage_SelfRemovingPreference_requiresFeature);
if (rFeature != null) {
boolean negated = isNegated(rFeature);
Expand All @@ -186,12 +186,12 @@ private boolean checkConstraints() {
}
boolean available = rFeature.startsWith("lineagehardware:") ?
LineageHardwareManager.getInstance(mContext).isSupported(
rFeature.substring(16)) :
rFeature.substring("lineagehardware:".length())) :
hasSystemFeature(mContext, rFeature);
if (available == negated) {
return false;
}
}**/
}

// Check a boolean system property
String rProperty = a.getString(R.styleable.lineage_SelfRemovingPreference_requiresProperty);
Expand Down

0 comments on commit 12f5249

Please sign in to comment.