mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
Revert "livedisplay: Detect accessibility_max for ReadingEnhancementExynos"
This reverts commit 1bb761b224
.
Change-Id: I5fc022272abb03b198376f18b61d3ea74ab18c02
This commit is contained in:
parent
7705719fb7
commit
925ec1a263
1 changed files with 0 additions and 11 deletions
|
@ -26,17 +26,6 @@ namespace samsung {
|
||||||
|
|
||||||
// Methods from ::vendor::lineage::livedisplay::V2_0::ISunlightEnhancement follow.
|
// Methods from ::vendor::lineage::livedisplay::V2_0::ISunlightEnhancement follow.
|
||||||
bool ReadingEnhancementExynos::isSupported() {
|
bool ReadingEnhancementExynos::isSupported() {
|
||||||
std::ifstream max_file("/sys/class/mdnie/mdnie/accessibility_max");
|
|
||||||
int max;
|
|
||||||
|
|
||||||
if (max_file.is_open()) {
|
|
||||||
max_file >> max;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (max_file.good()) {
|
|
||||||
return max > 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::ofstream file("/sys/class/mdnie/mdnie/accessibility");
|
std::ofstream file("/sys/class/mdnie/mdnie/accessibility");
|
||||||
return file.good();
|
return file.good();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue