Skip to content

Commit

Permalink
Revert "NightDisplayController: report unavailable if livedisplay fea…
Browse files Browse the repository at this point in the history
…ture is present"

This reverts commit 5ef7a9b.

Change-Id: I4a23293088b65b62185002701113a62f32d495c6
  • Loading branch information
Rashed97 committed May 31, 2019
1 parent 93f33c9 commit b3e277d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,10 @@ private MetricsLogger getMetricsLogger() {
}

/**
* Returns {@code true} if Night display is supported by the device,
* unless LiveDisplay feature is available.
* Returns {@code true} if Night display is supported by the device.
*/
public static boolean isAvailable(Context context) {
return context.getResources().getBoolean(R.bool.config_nightDisplayAvailable) &&
!context.getPackageManager().hasSystemFeature("org.lineageos.livedisplay");
return context.getResources().getBoolean(R.bool.config_nightDisplayAvailable);
}

/**
Expand Down

0 comments on commit b3e277d

Please sign in to comment.